DataSet1.Designer.cs 1.2 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace IS31BorovikAleksandrStudents {
  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("DataSet1")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class DataSet1 : global::System.Data.DataSet {
  22. private billinDataTable tablebillin;
  23. private billingDataTable tablebilling;
  24. private OrderDataTable tableOrder;
  25. private OrderProductDataTable tableOrderProduct;
  26. private ProductDataTable tableProduct;
  27. private RoleDataTable tableRole;
  28. private tbl_categoriesDataTable tabletbl_categories;
  29. private tbl_dea_custDataTable tabletbl_dea_cust;
  30. private tbl_productsDataTable tabletbl_products;
  31. private tbl_transaction_detailDataTable tabletbl_transaction_detail;
  32. private tbl_transactionsDataTable tabletbl_transactions;
  33. private tbl_usersDataTable tabletbl_users;
  34. private TovariDataTable tableTovari;
  35. private UserDataTable tableUser;
  36. private woorkersDataTable tablewoorkers;
  37. private WorkerDataTable tableWorker;
  38. private WorkersDataTable tableWorkers;
  39. private ПродажиDataTable tableПродажи;
  40. private ТоварыDataTable tableТовары;
  41. private global::System.Data.DataRelation relationFK__OrderProd__Order__405A880E;
  42. private global::System.Data.DataRelation relationFK__OrderProd__Produ__414EAC47;
  43. private global::System.Data.DataRelation relationFK__User__UserRole__39AD8A7F;
  44. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  45. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  46. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  47. public DataSet1() {
  48. this.BeginInit();
  49. this.InitClass();
  50. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  51. base.Tables.CollectionChanged += schemaChangedHandler;
  52. base.Relations.CollectionChanged += schemaChangedHandler;
  53. this.EndInit();
  54. }
  55. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  56. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  57. protected DataSet1(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  58. base(info, context, false) {
  59. if ((this.IsBinarySerialized(info, context) == true)) {
  60. this.InitVars(false);
  61. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  62. this.Tables.CollectionChanged += schemaChangedHandler1;
  63. this.Relations.CollectionChanged += schemaChangedHandler1;
  64. return;
  65. }
  66. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  67. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  68. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  69. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  70. if ((ds.Tables["billin"] != null)) {
  71. base.Tables.Add(new billinDataTable(ds.Tables["billin"]));
  72. }
  73. if ((ds.Tables["billing"] != null)) {
  74. base.Tables.Add(new billingDataTable(ds.Tables["billing"]));
  75. }
  76. if ((ds.Tables["Order"] != null)) {
  77. base.Tables.Add(new OrderDataTable(ds.Tables["Order"]));
  78. }
  79. if ((ds.Tables["OrderProduct"] != null)) {
  80. base.Tables.Add(new OrderProductDataTable(ds.Tables["OrderProduct"]));
  81. }
  82. if ((ds.Tables["Product"] != null)) {
  83. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  84. }
  85. if ((ds.Tables["Role"] != null)) {
  86. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  87. }
  88. if ((ds.Tables["tbl_categories"] != null)) {
  89. base.Tables.Add(new tbl_categoriesDataTable(ds.Tables["tbl_categories"]));
  90. }
  91. if ((ds.Tables["tbl_dea_cust"] != null)) {
  92. base.Tables.Add(new tbl_dea_custDataTable(ds.Tables["tbl_dea_cust"]));
  93. }
  94. if ((ds.Tables["tbl_products"] != null)) {
  95. base.Tables.Add(new tbl_productsDataTable(ds.Tables["tbl_products"]));
  96. }
  97. if ((ds.Tables["tbl_transaction_detail"] != null)) {
  98. base.Tables.Add(new tbl_transaction_detailDataTable(ds.Tables["tbl_transaction_detail"]));
  99. }
  100. if ((ds.Tables["tbl_transactions"] != null)) {
  101. base.Tables.Add(new tbl_transactionsDataTable(ds.Tables["tbl_transactions"]));
  102. }
  103. if ((ds.Tables["tbl_users"] != null)) {
  104. base.Tables.Add(new tbl_usersDataTable(ds.Tables["tbl_users"]));
  105. }
  106. if ((ds.Tables["Tovari"] != null)) {
  107. base.Tables.Add(new TovariDataTable(ds.Tables["Tovari"]));
  108. }
  109. if ((ds.Tables["User"] != null)) {
  110. base.Tables.Add(new UserDataTable(ds.Tables["User"]));
  111. }
  112. if ((ds.Tables["woorkers"] != null)) {
  113. base.Tables.Add(new woorkersDataTable(ds.Tables["woorkers"]));
  114. }
  115. if ((ds.Tables["Worker"] != null)) {
  116. base.Tables.Add(new WorkerDataTable(ds.Tables["Worker"]));
  117. }
  118. if ((ds.Tables["Workers"] != null)) {
  119. base.Tables.Add(new WorkersDataTable(ds.Tables["Workers"]));
  120. }
  121. if ((ds.Tables["Продажи"] != null)) {
  122. base.Tables.Add(new ПродажиDataTable(ds.Tables["Продажи"]));
  123. }
  124. if ((ds.Tables["Товары"] != null)) {
  125. base.Tables.Add(new ТоварыDataTable(ds.Tables["Товары"]));
  126. }
  127. this.DataSetName = ds.DataSetName;
  128. this.Prefix = ds.Prefix;
  129. this.Namespace = ds.Namespace;
  130. this.Locale = ds.Locale;
  131. this.CaseSensitive = ds.CaseSensitive;
  132. this.EnforceConstraints = ds.EnforceConstraints;
  133. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  134. this.InitVars();
  135. }
  136. else {
  137. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  138. }
  139. this.GetSerializationData(info, context);
  140. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  141. base.Tables.CollectionChanged += schemaChangedHandler;
  142. this.Relations.CollectionChanged += schemaChangedHandler;
  143. }
  144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  146. [global::System.ComponentModel.Browsable(false)]
  147. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  148. public billinDataTable billin {
  149. get {
  150. return this.tablebillin;
  151. }
  152. }
  153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  155. [global::System.ComponentModel.Browsable(false)]
  156. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  157. public billingDataTable billing {
  158. get {
  159. return this.tablebilling;
  160. }
  161. }
  162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  164. [global::System.ComponentModel.Browsable(false)]
  165. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  166. public OrderDataTable Order {
  167. get {
  168. return this.tableOrder;
  169. }
  170. }
  171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  173. [global::System.ComponentModel.Browsable(false)]
  174. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  175. public OrderProductDataTable OrderProduct {
  176. get {
  177. return this.tableOrderProduct;
  178. }
  179. }
  180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  182. [global::System.ComponentModel.Browsable(false)]
  183. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  184. public ProductDataTable Product {
  185. get {
  186. return this.tableProduct;
  187. }
  188. }
  189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  191. [global::System.ComponentModel.Browsable(false)]
  192. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  193. public RoleDataTable Role {
  194. get {
  195. return this.tableRole;
  196. }
  197. }
  198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  200. [global::System.ComponentModel.Browsable(false)]
  201. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  202. public tbl_categoriesDataTable tbl_categories {
  203. get {
  204. return this.tabletbl_categories;
  205. }
  206. }
  207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  209. [global::System.ComponentModel.Browsable(false)]
  210. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  211. public tbl_dea_custDataTable tbl_dea_cust {
  212. get {
  213. return this.tabletbl_dea_cust;
  214. }
  215. }
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  218. [global::System.ComponentModel.Browsable(false)]
  219. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  220. public tbl_productsDataTable tbl_products {
  221. get {
  222. return this.tabletbl_products;
  223. }
  224. }
  225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  227. [global::System.ComponentModel.Browsable(false)]
  228. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  229. public tbl_transaction_detailDataTable tbl_transaction_detail {
  230. get {
  231. return this.tabletbl_transaction_detail;
  232. }
  233. }
  234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  236. [global::System.ComponentModel.Browsable(false)]
  237. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  238. public tbl_transactionsDataTable tbl_transactions {
  239. get {
  240. return this.tabletbl_transactions;
  241. }
  242. }
  243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  245. [global::System.ComponentModel.Browsable(false)]
  246. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  247. public tbl_usersDataTable tbl_users {
  248. get {
  249. return this.tabletbl_users;
  250. }
  251. }
  252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  254. [global::System.ComponentModel.Browsable(false)]
  255. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  256. public TovariDataTable Tovari {
  257. get {
  258. return this.tableTovari;
  259. }
  260. }
  261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  263. [global::System.ComponentModel.Browsable(false)]
  264. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  265. public UserDataTable User {
  266. get {
  267. return this.tableUser;
  268. }
  269. }
  270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  272. [global::System.ComponentModel.Browsable(false)]
  273. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  274. public woorkersDataTable woorkers {
  275. get {
  276. return this.tablewoorkers;
  277. }
  278. }
  279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  281. [global::System.ComponentModel.Browsable(false)]
  282. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  283. public WorkerDataTable Worker {
  284. get {
  285. return this.tableWorker;
  286. }
  287. }
  288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  290. [global::System.ComponentModel.Browsable(false)]
  291. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  292. public WorkersDataTable Workers {
  293. get {
  294. return this.tableWorkers;
  295. }
  296. }
  297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  299. [global::System.ComponentModel.Browsable(false)]
  300. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  301. public ПродажиDataTable Продажи {
  302. get {
  303. return this.tableПродажи;
  304. }
  305. }
  306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  308. [global::System.ComponentModel.Browsable(false)]
  309. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  310. public ТоварыDataTable Товары {
  311. get {
  312. return this.tableТовары;
  313. }
  314. }
  315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  317. [global::System.ComponentModel.BrowsableAttribute(true)]
  318. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  319. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  320. get {
  321. return this._schemaSerializationMode;
  322. }
  323. set {
  324. this._schemaSerializationMode = value;
  325. }
  326. }
  327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  329. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  330. public new global::System.Data.DataTableCollection Tables {
  331. get {
  332. return base.Tables;
  333. }
  334. }
  335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  337. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  338. public new global::System.Data.DataRelationCollection Relations {
  339. get {
  340. return base.Relations;
  341. }
  342. }
  343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  345. protected override void InitializeDerivedDataSet() {
  346. this.BeginInit();
  347. this.InitClass();
  348. this.EndInit();
  349. }
  350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  352. public override global::System.Data.DataSet Clone() {
  353. DataSet1 cln = ((DataSet1)(base.Clone()));
  354. cln.InitVars();
  355. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  356. return cln;
  357. }
  358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  360. protected override bool ShouldSerializeTables() {
  361. return false;
  362. }
  363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  365. protected override bool ShouldSerializeRelations() {
  366. return false;
  367. }
  368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  370. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  371. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  372. this.Reset();
  373. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  374. ds.ReadXml(reader);
  375. if ((ds.Tables["billin"] != null)) {
  376. base.Tables.Add(new billinDataTable(ds.Tables["billin"]));
  377. }
  378. if ((ds.Tables["billing"] != null)) {
  379. base.Tables.Add(new billingDataTable(ds.Tables["billing"]));
  380. }
  381. if ((ds.Tables["Order"] != null)) {
  382. base.Tables.Add(new OrderDataTable(ds.Tables["Order"]));
  383. }
  384. if ((ds.Tables["OrderProduct"] != null)) {
  385. base.Tables.Add(new OrderProductDataTable(ds.Tables["OrderProduct"]));
  386. }
  387. if ((ds.Tables["Product"] != null)) {
  388. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  389. }
  390. if ((ds.Tables["Role"] != null)) {
  391. base.Tables.Add(new RoleDataTable(ds.Tables["Role"]));
  392. }
  393. if ((ds.Tables["tbl_categories"] != null)) {
  394. base.Tables.Add(new tbl_categoriesDataTable(ds.Tables["tbl_categories"]));
  395. }
  396. if ((ds.Tables["tbl_dea_cust"] != null)) {
  397. base.Tables.Add(new tbl_dea_custDataTable(ds.Tables["tbl_dea_cust"]));
  398. }
  399. if ((ds.Tables["tbl_products"] != null)) {
  400. base.Tables.Add(new tbl_productsDataTable(ds.Tables["tbl_products"]));
  401. }
  402. if ((ds.Tables["tbl_transaction_detail"] != null)) {
  403. base.Tables.Add(new tbl_transaction_detailDataTable(ds.Tables["tbl_transaction_detail"]));
  404. }
  405. if ((ds.Tables["tbl_transactions"] != null)) {
  406. base.Tables.Add(new tbl_transactionsDataTable(ds.Tables["tbl_transactions"]));
  407. }
  408. if ((ds.Tables["tbl_users"] != null)) {
  409. base.Tables.Add(new tbl_usersDataTable(ds.Tables["tbl_users"]));
  410. }
  411. if ((ds.Tables["Tovari"] != null)) {
  412. base.Tables.Add(new TovariDataTable(ds.Tables["Tovari"]));
  413. }
  414. if ((ds.Tables["User"] != null)) {
  415. base.Tables.Add(new UserDataTable(ds.Tables["User"]));
  416. }
  417. if ((ds.Tables["woorkers"] != null)) {
  418. base.Tables.Add(new woorkersDataTable(ds.Tables["woorkers"]));
  419. }
  420. if ((ds.Tables["Worker"] != null)) {
  421. base.Tables.Add(new WorkerDataTable(ds.Tables["Worker"]));
  422. }
  423. if ((ds.Tables["Workers"] != null)) {
  424. base.Tables.Add(new WorkersDataTable(ds.Tables["Workers"]));
  425. }
  426. if ((ds.Tables["Продажи"] != null)) {
  427. base.Tables.Add(new ПродажиDataTable(ds.Tables["Продажи"]));
  428. }
  429. if ((ds.Tables["Товары"] != null)) {
  430. base.Tables.Add(new ТоварыDataTable(ds.Tables["Товары"]));
  431. }
  432. this.DataSetName = ds.DataSetName;
  433. this.Prefix = ds.Prefix;
  434. this.Namespace = ds.Namespace;
  435. this.Locale = ds.Locale;
  436. this.CaseSensitive = ds.CaseSensitive;
  437. this.EnforceConstraints = ds.EnforceConstraints;
  438. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  439. this.InitVars();
  440. }
  441. else {
  442. this.ReadXml(reader);
  443. this.InitVars();
  444. }
  445. }
  446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  448. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  449. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  450. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  451. stream.Position = 0;
  452. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  453. }
  454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  456. internal void InitVars() {
  457. this.InitVars(true);
  458. }
  459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  461. internal void InitVars(bool initTable) {
  462. this.tablebillin = ((billinDataTable)(base.Tables["billin"]));
  463. if ((initTable == true)) {
  464. if ((this.tablebillin != null)) {
  465. this.tablebillin.InitVars();
  466. }
  467. }
  468. this.tablebilling = ((billingDataTable)(base.Tables["billing"]));
  469. if ((initTable == true)) {
  470. if ((this.tablebilling != null)) {
  471. this.tablebilling.InitVars();
  472. }
  473. }
  474. this.tableOrder = ((OrderDataTable)(base.Tables["Order"]));
  475. if ((initTable == true)) {
  476. if ((this.tableOrder != null)) {
  477. this.tableOrder.InitVars();
  478. }
  479. }
  480. this.tableOrderProduct = ((OrderProductDataTable)(base.Tables["OrderProduct"]));
  481. if ((initTable == true)) {
  482. if ((this.tableOrderProduct != null)) {
  483. this.tableOrderProduct.InitVars();
  484. }
  485. }
  486. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  487. if ((initTable == true)) {
  488. if ((this.tableProduct != null)) {
  489. this.tableProduct.InitVars();
  490. }
  491. }
  492. this.tableRole = ((RoleDataTable)(base.Tables["Role"]));
  493. if ((initTable == true)) {
  494. if ((this.tableRole != null)) {
  495. this.tableRole.InitVars();
  496. }
  497. }
  498. this.tabletbl_categories = ((tbl_categoriesDataTable)(base.Tables["tbl_categories"]));
  499. if ((initTable == true)) {
  500. if ((this.tabletbl_categories != null)) {
  501. this.tabletbl_categories.InitVars();
  502. }
  503. }
  504. this.tabletbl_dea_cust = ((tbl_dea_custDataTable)(base.Tables["tbl_dea_cust"]));
  505. if ((initTable == true)) {
  506. if ((this.tabletbl_dea_cust != null)) {
  507. this.tabletbl_dea_cust.InitVars();
  508. }
  509. }
  510. this.tabletbl_products = ((tbl_productsDataTable)(base.Tables["tbl_products"]));
  511. if ((initTable == true)) {
  512. if ((this.tabletbl_products != null)) {
  513. this.tabletbl_products.InitVars();
  514. }
  515. }
  516. this.tabletbl_transaction_detail = ((tbl_transaction_detailDataTable)(base.Tables["tbl_transaction_detail"]));
  517. if ((initTable == true)) {
  518. if ((this.tabletbl_transaction_detail != null)) {
  519. this.tabletbl_transaction_detail.InitVars();
  520. }
  521. }
  522. this.tabletbl_transactions = ((tbl_transactionsDataTable)(base.Tables["tbl_transactions"]));
  523. if ((initTable == true)) {
  524. if ((this.tabletbl_transactions != null)) {
  525. this.tabletbl_transactions.InitVars();
  526. }
  527. }
  528. this.tabletbl_users = ((tbl_usersDataTable)(base.Tables["tbl_users"]));
  529. if ((initTable == true)) {
  530. if ((this.tabletbl_users != null)) {
  531. this.tabletbl_users.InitVars();
  532. }
  533. }
  534. this.tableTovari = ((TovariDataTable)(base.Tables["Tovari"]));
  535. if ((initTable == true)) {
  536. if ((this.tableTovari != null)) {
  537. this.tableTovari.InitVars();
  538. }
  539. }
  540. this.tableUser = ((UserDataTable)(base.Tables["User"]));
  541. if ((initTable == true)) {
  542. if ((this.tableUser != null)) {
  543. this.tableUser.InitVars();
  544. }
  545. }
  546. this.tablewoorkers = ((woorkersDataTable)(base.Tables["woorkers"]));
  547. if ((initTable == true)) {
  548. if ((this.tablewoorkers != null)) {
  549. this.tablewoorkers.InitVars();
  550. }
  551. }
  552. this.tableWorker = ((WorkerDataTable)(base.Tables["Worker"]));
  553. if ((initTable == true)) {
  554. if ((this.tableWorker != null)) {
  555. this.tableWorker.InitVars();
  556. }
  557. }
  558. this.tableWorkers = ((WorkersDataTable)(base.Tables["Workers"]));
  559. if ((initTable == true)) {
  560. if ((this.tableWorkers != null)) {
  561. this.tableWorkers.InitVars();
  562. }
  563. }
  564. this.tableПродажи = ((ПродажиDataTable)(base.Tables["Продажи"]));
  565. if ((initTable == true)) {
  566. if ((this.tableПродажи != null)) {
  567. this.tableПродажи.InitVars();
  568. }
  569. }
  570. this.tableТовары = ((ТоварыDataTable)(base.Tables["Товары"]));
  571. if ((initTable == true)) {
  572. if ((this.tableТовары != null)) {
  573. this.tableТовары.InitVars();
  574. }
  575. }
  576. this.relationFK__OrderProd__Order__405A880E = this.Relations["FK__OrderProd__Order__405A880E"];
  577. this.relationFK__OrderProd__Produ__414EAC47 = this.Relations["FK__OrderProd__Produ__414EAC47"];
  578. this.relationFK__User__UserRole__39AD8A7F = this.Relations["FK__User__UserRole__39AD8A7F"];
  579. }
  580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  582. private void InitClass() {
  583. this.DataSetName = "DataSet1";
  584. this.Prefix = "";
  585. this.Namespace = "http://tempuri.org/DataSet1.xsd";
  586. this.EnforceConstraints = true;
  587. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  588. this.tablebillin = new billinDataTable();
  589. base.Tables.Add(this.tablebillin);
  590. this.tablebilling = new billingDataTable();
  591. base.Tables.Add(this.tablebilling);
  592. this.tableOrder = new OrderDataTable();
  593. base.Tables.Add(this.tableOrder);
  594. this.tableOrderProduct = new OrderProductDataTable();
  595. base.Tables.Add(this.tableOrderProduct);
  596. this.tableProduct = new ProductDataTable();
  597. base.Tables.Add(this.tableProduct);
  598. this.tableRole = new RoleDataTable();
  599. base.Tables.Add(this.tableRole);
  600. this.tabletbl_categories = new tbl_categoriesDataTable();
  601. base.Tables.Add(this.tabletbl_categories);
  602. this.tabletbl_dea_cust = new tbl_dea_custDataTable();
  603. base.Tables.Add(this.tabletbl_dea_cust);
  604. this.tabletbl_products = new tbl_productsDataTable();
  605. base.Tables.Add(this.tabletbl_products);
  606. this.tabletbl_transaction_detail = new tbl_transaction_detailDataTable();
  607. base.Tables.Add(this.tabletbl_transaction_detail);
  608. this.tabletbl_transactions = new tbl_transactionsDataTable();
  609. base.Tables.Add(this.tabletbl_transactions);
  610. this.tabletbl_users = new tbl_usersDataTable();
  611. base.Tables.Add(this.tabletbl_users);
  612. this.tableTovari = new TovariDataTable();
  613. base.Tables.Add(this.tableTovari);
  614. this.tableUser = new UserDataTable();
  615. base.Tables.Add(this.tableUser);
  616. this.tablewoorkers = new woorkersDataTable();
  617. base.Tables.Add(this.tablewoorkers);
  618. this.tableWorker = new WorkerDataTable();
  619. base.Tables.Add(this.tableWorker);
  620. this.tableWorkers = new WorkersDataTable();
  621. base.Tables.Add(this.tableWorkers);
  622. this.tableПродажи = new ПродажиDataTable();
  623. base.Tables.Add(this.tableПродажи);
  624. this.tableТовары = new ТоварыDataTable();
  625. base.Tables.Add(this.tableТовары);
  626. this.relationFK__OrderProd__Order__405A880E = new global::System.Data.DataRelation("FK__OrderProd__Order__405A880E", new global::System.Data.DataColumn[] {
  627. this.tableOrder.OrderIDColumn}, new global::System.Data.DataColumn[] {
  628. this.tableOrderProduct.OrderIDColumn}, false);
  629. this.Relations.Add(this.relationFK__OrderProd__Order__405A880E);
  630. this.relationFK__OrderProd__Produ__414EAC47 = new global::System.Data.DataRelation("FK__OrderProd__Produ__414EAC47", new global::System.Data.DataColumn[] {
  631. this.tableProduct.ProductArticleNumberColumn}, new global::System.Data.DataColumn[] {
  632. this.tableOrderProduct.ProductArticleNumberColumn}, false);
  633. this.Relations.Add(this.relationFK__OrderProd__Produ__414EAC47);
  634. this.relationFK__User__UserRole__39AD8A7F = new global::System.Data.DataRelation("FK__User__UserRole__39AD8A7F", new global::System.Data.DataColumn[] {
  635. this.tableRole.RoleIDColumn}, new global::System.Data.DataColumn[] {
  636. this.tableUser.UserRoleColumn}, false);
  637. this.Relations.Add(this.relationFK__User__UserRole__39AD8A7F);
  638. }
  639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  641. private bool ShouldSerializebillin() {
  642. return false;
  643. }
  644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  646. private bool ShouldSerializebilling() {
  647. return false;
  648. }
  649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  651. private bool ShouldSerializeOrder() {
  652. return false;
  653. }
  654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  656. private bool ShouldSerializeOrderProduct() {
  657. return false;
  658. }
  659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  661. private bool ShouldSerializeProduct() {
  662. return false;
  663. }
  664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  666. private bool ShouldSerializeRole() {
  667. return false;
  668. }
  669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  671. private bool ShouldSerializetbl_categories() {
  672. return false;
  673. }
  674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  676. private bool ShouldSerializetbl_dea_cust() {
  677. return false;
  678. }
  679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  681. private bool ShouldSerializetbl_products() {
  682. return false;
  683. }
  684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  686. private bool ShouldSerializetbl_transaction_detail() {
  687. return false;
  688. }
  689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  691. private bool ShouldSerializetbl_transactions() {
  692. return false;
  693. }
  694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  696. private bool ShouldSerializetbl_users() {
  697. return false;
  698. }
  699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  701. private bool ShouldSerializeTovari() {
  702. return false;
  703. }
  704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  706. private bool ShouldSerializeUser() {
  707. return false;
  708. }
  709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  711. private bool ShouldSerializewoorkers() {
  712. return false;
  713. }
  714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  716. private bool ShouldSerializeWorker() {
  717. return false;
  718. }
  719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  721. private bool ShouldSerializeWorkers() {
  722. return false;
  723. }
  724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  726. private bool ShouldSerializeПродажи() {
  727. return false;
  728. }
  729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  731. private bool ShouldSerializeТовары() {
  732. return false;
  733. }
  734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  736. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  737. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  738. this.InitVars();
  739. }
  740. }
  741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  743. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  744. DataSet1 ds = new DataSet1();
  745. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  746. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  747. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  748. any.Namespace = ds.Namespace;
  749. sequence.Items.Add(any);
  750. type.Particle = sequence;
  751. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  752. if (xs.Contains(dsSchema.TargetNamespace)) {
  753. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  754. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  755. try {
  756. global::System.Xml.Schema.XmlSchema schema = null;
  757. dsSchema.Write(s1);
  758. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  759. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  760. s2.SetLength(0);
  761. schema.Write(s2);
  762. if ((s1.Length == s2.Length)) {
  763. s1.Position = 0;
  764. s2.Position = 0;
  765. for (; ((s1.Position != s1.Length)
  766. && (s1.ReadByte() == s2.ReadByte())); ) {
  767. ;
  768. }
  769. if ((s1.Position == s1.Length)) {
  770. return type;
  771. }
  772. }
  773. }
  774. }
  775. finally {
  776. if ((s1 != null)) {
  777. s1.Close();
  778. }
  779. if ((s2 != null)) {
  780. s2.Close();
  781. }
  782. }
  783. }
  784. xs.Add(dsSchema);
  785. return type;
  786. }
  787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  788. public delegate void billinRowChangeEventHandler(object sender, billinRowChangeEvent e);
  789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  790. public delegate void billingRowChangeEventHandler(object sender, billingRowChangeEvent e);
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  792. public delegate void OrderRowChangeEventHandler(object sender, OrderRowChangeEvent e);
  793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  794. public delegate void OrderProductRowChangeEventHandler(object sender, OrderProductRowChangeEvent e);
  795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  796. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  798. public delegate void RoleRowChangeEventHandler(object sender, RoleRowChangeEvent e);
  799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  800. public delegate void tbl_categoriesRowChangeEventHandler(object sender, tbl_categoriesRowChangeEvent e);
  801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  802. public delegate void tbl_dea_custRowChangeEventHandler(object sender, tbl_dea_custRowChangeEvent e);
  803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  804. public delegate void tbl_productsRowChangeEventHandler(object sender, tbl_productsRowChangeEvent e);
  805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  806. public delegate void tbl_transaction_detailRowChangeEventHandler(object sender, tbl_transaction_detailRowChangeEvent e);
  807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  808. public delegate void tbl_transactionsRowChangeEventHandler(object sender, tbl_transactionsRowChangeEvent e);
  809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  810. public delegate void tbl_usersRowChangeEventHandler(object sender, tbl_usersRowChangeEvent e);
  811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  812. public delegate void TovariRowChangeEventHandler(object sender, TovariRowChangeEvent e);
  813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  814. public delegate void UserRowChangeEventHandler(object sender, UserRowChangeEvent e);
  815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  816. public delegate void woorkersRowChangeEventHandler(object sender, woorkersRowChangeEvent e);
  817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  818. public delegate void WorkerRowChangeEventHandler(object sender, WorkerRowChangeEvent e);
  819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  820. public delegate void WorkersRowChangeEventHandler(object sender, WorkersRowChangeEvent e);
  821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  822. public delegate void ПродажиRowChangeEventHandler(object sender, ПродажиRowChangeEvent e);
  823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  824. public delegate void ТоварыRowChangeEventHandler(object sender, ТоварыRowChangeEvent e);
  825. /// <summary>
  826. ///Represents the strongly named DataTable class.
  827. ///</summary>
  828. [global::System.Serializable()]
  829. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  830. public partial class billinDataTable : global::System.Data.TypedTableBase<billinRow> {
  831. private global::System.Data.DataColumn columnemailpayer;
  832. private global::System.Data.DataColumn columnemailrecipient;
  833. private global::System.Data.DataColumn columnSUM;
  834. private global::System.Data.DataColumn columnCURRENCY;
  835. private global::System.Data.DataColumn columnBILLINGDATE;
  836. private global::System.Data.DataColumn columnCOMMENT;
  837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  839. public billinDataTable() {
  840. this.TableName = "billin";
  841. this.BeginInit();
  842. this.InitClass();
  843. this.EndInit();
  844. }
  845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  847. internal billinDataTable(global::System.Data.DataTable table) {
  848. this.TableName = table.TableName;
  849. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  850. this.CaseSensitive = table.CaseSensitive;
  851. }
  852. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  853. this.Locale = table.Locale;
  854. }
  855. if ((table.Namespace != table.DataSet.Namespace)) {
  856. this.Namespace = table.Namespace;
  857. }
  858. this.Prefix = table.Prefix;
  859. this.MinimumCapacity = table.MinimumCapacity;
  860. }
  861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  863. protected billinDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  864. base(info, context) {
  865. this.InitVars();
  866. }
  867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  869. public global::System.Data.DataColumn emailpayerColumn {
  870. get {
  871. return this.columnemailpayer;
  872. }
  873. }
  874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  876. public global::System.Data.DataColumn emailrecipientColumn {
  877. get {
  878. return this.columnemailrecipient;
  879. }
  880. }
  881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  883. public global::System.Data.DataColumn SUMColumn {
  884. get {
  885. return this.columnSUM;
  886. }
  887. }
  888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  890. public global::System.Data.DataColumn CURRENCYColumn {
  891. get {
  892. return this.columnCURRENCY;
  893. }
  894. }
  895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  897. public global::System.Data.DataColumn BILLINGDATEColumn {
  898. get {
  899. return this.columnBILLINGDATE;
  900. }
  901. }
  902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  904. public global::System.Data.DataColumn COMMENTColumn {
  905. get {
  906. return this.columnCOMMENT;
  907. }
  908. }
  909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  911. [global::System.ComponentModel.Browsable(false)]
  912. public int Count {
  913. get {
  914. return this.Rows.Count;
  915. }
  916. }
  917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  919. public billinRow this[int index] {
  920. get {
  921. return ((billinRow)(this.Rows[index]));
  922. }
  923. }
  924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  925. public event billinRowChangeEventHandler billinRowChanging;
  926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  927. public event billinRowChangeEventHandler billinRowChanged;
  928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  929. public event billinRowChangeEventHandler billinRowDeleting;
  930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  931. public event billinRowChangeEventHandler billinRowDeleted;
  932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  934. public void AddbillinRow(billinRow row) {
  935. this.Rows.Add(row);
  936. }
  937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  939. public billinRow AddbillinRow(string emailpayer, string emailrecipient, decimal SUM, string CURRENCY, System.DateTime BILLINGDATE, string COMMENT) {
  940. billinRow rowbillinRow = ((billinRow)(this.NewRow()));
  941. object[] columnValuesArray = new object[] {
  942. emailpayer,
  943. emailrecipient,
  944. SUM,
  945. CURRENCY,
  946. BILLINGDATE,
  947. COMMENT};
  948. rowbillinRow.ItemArray = columnValuesArray;
  949. this.Rows.Add(rowbillinRow);
  950. return rowbillinRow;
  951. }
  952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  954. public override global::System.Data.DataTable Clone() {
  955. billinDataTable cln = ((billinDataTable)(base.Clone()));
  956. cln.InitVars();
  957. return cln;
  958. }
  959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  961. protected override global::System.Data.DataTable CreateInstance() {
  962. return new billinDataTable();
  963. }
  964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  966. internal void InitVars() {
  967. this.columnemailpayer = base.Columns["emailpayer"];
  968. this.columnemailrecipient = base.Columns["emailrecipient"];
  969. this.columnSUM = base.Columns["SUM"];
  970. this.columnCURRENCY = base.Columns["CURRENCY"];
  971. this.columnBILLINGDATE = base.Columns["BILLINGDATE"];
  972. this.columnCOMMENT = base.Columns["COMMENT"];
  973. }
  974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  976. private void InitClass() {
  977. this.columnemailpayer = new global::System.Data.DataColumn("emailpayer", typeof(string), null, global::System.Data.MappingType.Element);
  978. base.Columns.Add(this.columnemailpayer);
  979. this.columnemailrecipient = new global::System.Data.DataColumn("emailrecipient", typeof(string), null, global::System.Data.MappingType.Element);
  980. base.Columns.Add(this.columnemailrecipient);
  981. this.columnSUM = new global::System.Data.DataColumn("SUM", typeof(decimal), null, global::System.Data.MappingType.Element);
  982. base.Columns.Add(this.columnSUM);
  983. this.columnCURRENCY = new global::System.Data.DataColumn("CURRENCY", typeof(string), null, global::System.Data.MappingType.Element);
  984. base.Columns.Add(this.columnCURRENCY);
  985. this.columnBILLINGDATE = new global::System.Data.DataColumn("BILLINGDATE", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  986. base.Columns.Add(this.columnBILLINGDATE);
  987. this.columnCOMMENT = new global::System.Data.DataColumn("COMMENT", typeof(string), null, global::System.Data.MappingType.Element);
  988. base.Columns.Add(this.columnCOMMENT);
  989. this.columnemailpayer.MaxLength = 255;
  990. this.columnemailrecipient.MaxLength = 255;
  991. this.columnCURRENCY.MaxLength = 3;
  992. this.columnCOMMENT.MaxLength = 2147483647;
  993. }
  994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  996. public billinRow NewbillinRow() {
  997. return ((billinRow)(this.NewRow()));
  998. }
  999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1001. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1002. return new billinRow(builder);
  1003. }
  1004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1006. protected override global::System.Type GetRowType() {
  1007. return typeof(billinRow);
  1008. }
  1009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1011. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1012. base.OnRowChanged(e);
  1013. if ((this.billinRowChanged != null)) {
  1014. this.billinRowChanged(this, new billinRowChangeEvent(((billinRow)(e.Row)), e.Action));
  1015. }
  1016. }
  1017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1019. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1020. base.OnRowChanging(e);
  1021. if ((this.billinRowChanging != null)) {
  1022. this.billinRowChanging(this, new billinRowChangeEvent(((billinRow)(e.Row)), e.Action));
  1023. }
  1024. }
  1025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1027. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1028. base.OnRowDeleted(e);
  1029. if ((this.billinRowDeleted != null)) {
  1030. this.billinRowDeleted(this, new billinRowChangeEvent(((billinRow)(e.Row)), e.Action));
  1031. }
  1032. }
  1033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1035. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1036. base.OnRowDeleting(e);
  1037. if ((this.billinRowDeleting != null)) {
  1038. this.billinRowDeleting(this, new billinRowChangeEvent(((billinRow)(e.Row)), e.Action));
  1039. }
  1040. }
  1041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1043. public void RemovebillinRow(billinRow row) {
  1044. this.Rows.Remove(row);
  1045. }
  1046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1048. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1049. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1050. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1051. DataSet1 ds = new DataSet1();
  1052. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1053. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1054. any1.MinOccurs = new decimal(0);
  1055. any1.MaxOccurs = decimal.MaxValue;
  1056. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1057. sequence.Items.Add(any1);
  1058. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1059. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1060. any2.MinOccurs = new decimal(1);
  1061. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1062. sequence.Items.Add(any2);
  1063. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1064. attribute1.Name = "namespace";
  1065. attribute1.FixedValue = ds.Namespace;
  1066. type.Attributes.Add(attribute1);
  1067. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1068. attribute2.Name = "tableTypeName";
  1069. attribute2.FixedValue = "billinDataTable";
  1070. type.Attributes.Add(attribute2);
  1071. type.Particle = sequence;
  1072. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1073. if (xs.Contains(dsSchema.TargetNamespace)) {
  1074. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1075. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1076. try {
  1077. global::System.Xml.Schema.XmlSchema schema = null;
  1078. dsSchema.Write(s1);
  1079. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1080. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1081. s2.SetLength(0);
  1082. schema.Write(s2);
  1083. if ((s1.Length == s2.Length)) {
  1084. s1.Position = 0;
  1085. s2.Position = 0;
  1086. for (; ((s1.Position != s1.Length)
  1087. && (s1.ReadByte() == s2.ReadByte())); ) {
  1088. ;
  1089. }
  1090. if ((s1.Position == s1.Length)) {
  1091. return type;
  1092. }
  1093. }
  1094. }
  1095. }
  1096. finally {
  1097. if ((s1 != null)) {
  1098. s1.Close();
  1099. }
  1100. if ((s2 != null)) {
  1101. s2.Close();
  1102. }
  1103. }
  1104. }
  1105. xs.Add(dsSchema);
  1106. return type;
  1107. }
  1108. }
  1109. /// <summary>
  1110. ///Represents the strongly named DataTable class.
  1111. ///</summary>
  1112. [global::System.Serializable()]
  1113. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1114. public partial class billingDataTable : global::System.Data.TypedTableBase<billingRow> {
  1115. private global::System.Data.DataColumn columnemailpayer;
  1116. private global::System.Data.DataColumn columnemailrecipient;
  1117. private global::System.Data.DataColumn columnSUM;
  1118. private global::System.Data.DataColumn columnCURRENCY;
  1119. private global::System.Data.DataColumn columnBILLINGDATE;
  1120. private global::System.Data.DataColumn columnCOMMENT;
  1121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1123. public billingDataTable() {
  1124. this.TableName = "billing";
  1125. this.BeginInit();
  1126. this.InitClass();
  1127. this.EndInit();
  1128. }
  1129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1131. internal billingDataTable(global::System.Data.DataTable table) {
  1132. this.TableName = table.TableName;
  1133. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1134. this.CaseSensitive = table.CaseSensitive;
  1135. }
  1136. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1137. this.Locale = table.Locale;
  1138. }
  1139. if ((table.Namespace != table.DataSet.Namespace)) {
  1140. this.Namespace = table.Namespace;
  1141. }
  1142. this.Prefix = table.Prefix;
  1143. this.MinimumCapacity = table.MinimumCapacity;
  1144. }
  1145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1147. protected billingDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1148. base(info, context) {
  1149. this.InitVars();
  1150. }
  1151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1153. public global::System.Data.DataColumn emailpayerColumn {
  1154. get {
  1155. return this.columnemailpayer;
  1156. }
  1157. }
  1158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1160. public global::System.Data.DataColumn emailrecipientColumn {
  1161. get {
  1162. return this.columnemailrecipient;
  1163. }
  1164. }
  1165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1167. public global::System.Data.DataColumn SUMColumn {
  1168. get {
  1169. return this.columnSUM;
  1170. }
  1171. }
  1172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1174. public global::System.Data.DataColumn CURRENCYColumn {
  1175. get {
  1176. return this.columnCURRENCY;
  1177. }
  1178. }
  1179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1181. public global::System.Data.DataColumn BILLINGDATEColumn {
  1182. get {
  1183. return this.columnBILLINGDATE;
  1184. }
  1185. }
  1186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1188. public global::System.Data.DataColumn COMMENTColumn {
  1189. get {
  1190. return this.columnCOMMENT;
  1191. }
  1192. }
  1193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1195. [global::System.ComponentModel.Browsable(false)]
  1196. public int Count {
  1197. get {
  1198. return this.Rows.Count;
  1199. }
  1200. }
  1201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1203. public billingRow this[int index] {
  1204. get {
  1205. return ((billingRow)(this.Rows[index]));
  1206. }
  1207. }
  1208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1209. public event billingRowChangeEventHandler billingRowChanging;
  1210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1211. public event billingRowChangeEventHandler billingRowChanged;
  1212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1213. public event billingRowChangeEventHandler billingRowDeleting;
  1214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1215. public event billingRowChangeEventHandler billingRowDeleted;
  1216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1218. public void AddbillingRow(billingRow row) {
  1219. this.Rows.Add(row);
  1220. }
  1221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1223. public billingRow AddbillingRow(string emailpayer, string emailrecipient, decimal SUM, string CURRENCY, System.DateTime BILLINGDATE, string COMMENT) {
  1224. billingRow rowbillingRow = ((billingRow)(this.NewRow()));
  1225. object[] columnValuesArray = new object[] {
  1226. emailpayer,
  1227. emailrecipient,
  1228. SUM,
  1229. CURRENCY,
  1230. BILLINGDATE,
  1231. COMMENT};
  1232. rowbillingRow.ItemArray = columnValuesArray;
  1233. this.Rows.Add(rowbillingRow);
  1234. return rowbillingRow;
  1235. }
  1236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1238. public override global::System.Data.DataTable Clone() {
  1239. billingDataTable cln = ((billingDataTable)(base.Clone()));
  1240. cln.InitVars();
  1241. return cln;
  1242. }
  1243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1245. protected override global::System.Data.DataTable CreateInstance() {
  1246. return new billingDataTable();
  1247. }
  1248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1250. internal void InitVars() {
  1251. this.columnemailpayer = base.Columns["emailpayer"];
  1252. this.columnemailrecipient = base.Columns["emailrecipient"];
  1253. this.columnSUM = base.Columns["SUM"];
  1254. this.columnCURRENCY = base.Columns["CURRENCY"];
  1255. this.columnBILLINGDATE = base.Columns["BILLINGDATE"];
  1256. this.columnCOMMENT = base.Columns["COMMENT"];
  1257. }
  1258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1260. private void InitClass() {
  1261. this.columnemailpayer = new global::System.Data.DataColumn("emailpayer", typeof(string), null, global::System.Data.MappingType.Element);
  1262. base.Columns.Add(this.columnemailpayer);
  1263. this.columnemailrecipient = new global::System.Data.DataColumn("emailrecipient", typeof(string), null, global::System.Data.MappingType.Element);
  1264. base.Columns.Add(this.columnemailrecipient);
  1265. this.columnSUM = new global::System.Data.DataColumn("SUM", typeof(decimal), null, global::System.Data.MappingType.Element);
  1266. base.Columns.Add(this.columnSUM);
  1267. this.columnCURRENCY = new global::System.Data.DataColumn("CURRENCY", typeof(string), null, global::System.Data.MappingType.Element);
  1268. base.Columns.Add(this.columnCURRENCY);
  1269. this.columnBILLINGDATE = new global::System.Data.DataColumn("BILLINGDATE", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1270. base.Columns.Add(this.columnBILLINGDATE);
  1271. this.columnCOMMENT = new global::System.Data.DataColumn("COMMENT", typeof(string), null, global::System.Data.MappingType.Element);
  1272. base.Columns.Add(this.columnCOMMENT);
  1273. this.columnemailpayer.MaxLength = 255;
  1274. this.columnemailrecipient.MaxLength = 255;
  1275. this.columnCURRENCY.MaxLength = 3;
  1276. this.columnCOMMENT.MaxLength = 2147483647;
  1277. }
  1278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1280. public billingRow NewbillingRow() {
  1281. return ((billingRow)(this.NewRow()));
  1282. }
  1283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1285. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1286. return new billingRow(builder);
  1287. }
  1288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1290. protected override global::System.Type GetRowType() {
  1291. return typeof(billingRow);
  1292. }
  1293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1295. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1296. base.OnRowChanged(e);
  1297. if ((this.billingRowChanged != null)) {
  1298. this.billingRowChanged(this, new billingRowChangeEvent(((billingRow)(e.Row)), e.Action));
  1299. }
  1300. }
  1301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1303. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1304. base.OnRowChanging(e);
  1305. if ((this.billingRowChanging != null)) {
  1306. this.billingRowChanging(this, new billingRowChangeEvent(((billingRow)(e.Row)), e.Action));
  1307. }
  1308. }
  1309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1311. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1312. base.OnRowDeleted(e);
  1313. if ((this.billingRowDeleted != null)) {
  1314. this.billingRowDeleted(this, new billingRowChangeEvent(((billingRow)(e.Row)), e.Action));
  1315. }
  1316. }
  1317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1319. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1320. base.OnRowDeleting(e);
  1321. if ((this.billingRowDeleting != null)) {
  1322. this.billingRowDeleting(this, new billingRowChangeEvent(((billingRow)(e.Row)), e.Action));
  1323. }
  1324. }
  1325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1327. public void RemovebillingRow(billingRow row) {
  1328. this.Rows.Remove(row);
  1329. }
  1330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1332. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1333. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1334. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1335. DataSet1 ds = new DataSet1();
  1336. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1337. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1338. any1.MinOccurs = new decimal(0);
  1339. any1.MaxOccurs = decimal.MaxValue;
  1340. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1341. sequence.Items.Add(any1);
  1342. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1343. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1344. any2.MinOccurs = new decimal(1);
  1345. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1346. sequence.Items.Add(any2);
  1347. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1348. attribute1.Name = "namespace";
  1349. attribute1.FixedValue = ds.Namespace;
  1350. type.Attributes.Add(attribute1);
  1351. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1352. attribute2.Name = "tableTypeName";
  1353. attribute2.FixedValue = "billingDataTable";
  1354. type.Attributes.Add(attribute2);
  1355. type.Particle = sequence;
  1356. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1357. if (xs.Contains(dsSchema.TargetNamespace)) {
  1358. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1359. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1360. try {
  1361. global::System.Xml.Schema.XmlSchema schema = null;
  1362. dsSchema.Write(s1);
  1363. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1364. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1365. s2.SetLength(0);
  1366. schema.Write(s2);
  1367. if ((s1.Length == s2.Length)) {
  1368. s1.Position = 0;
  1369. s2.Position = 0;
  1370. for (; ((s1.Position != s1.Length)
  1371. && (s1.ReadByte() == s2.ReadByte())); ) {
  1372. ;
  1373. }
  1374. if ((s1.Position == s1.Length)) {
  1375. return type;
  1376. }
  1377. }
  1378. }
  1379. }
  1380. finally {
  1381. if ((s1 != null)) {
  1382. s1.Close();
  1383. }
  1384. if ((s2 != null)) {
  1385. s2.Close();
  1386. }
  1387. }
  1388. }
  1389. xs.Add(dsSchema);
  1390. return type;
  1391. }
  1392. }
  1393. /// <summary>
  1394. ///Represents the strongly named DataTable class.
  1395. ///</summary>
  1396. [global::System.Serializable()]
  1397. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1398. public partial class OrderDataTable : global::System.Data.TypedTableBase<OrderRow> {
  1399. private global::System.Data.DataColumn columnOrderID;
  1400. private global::System.Data.DataColumn columnOrderStatus;
  1401. private global::System.Data.DataColumn columnOrderDeliveryDate;
  1402. private global::System.Data.DataColumn columnOrderPickupPoint;
  1403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1405. public OrderDataTable() {
  1406. this.TableName = "Order";
  1407. this.BeginInit();
  1408. this.InitClass();
  1409. this.EndInit();
  1410. }
  1411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1413. internal OrderDataTable(global::System.Data.DataTable table) {
  1414. this.TableName = table.TableName;
  1415. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1416. this.CaseSensitive = table.CaseSensitive;
  1417. }
  1418. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1419. this.Locale = table.Locale;
  1420. }
  1421. if ((table.Namespace != table.DataSet.Namespace)) {
  1422. this.Namespace = table.Namespace;
  1423. }
  1424. this.Prefix = table.Prefix;
  1425. this.MinimumCapacity = table.MinimumCapacity;
  1426. }
  1427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1429. protected OrderDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1430. base(info, context) {
  1431. this.InitVars();
  1432. }
  1433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1435. public global::System.Data.DataColumn OrderIDColumn {
  1436. get {
  1437. return this.columnOrderID;
  1438. }
  1439. }
  1440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1442. public global::System.Data.DataColumn OrderStatusColumn {
  1443. get {
  1444. return this.columnOrderStatus;
  1445. }
  1446. }
  1447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1449. public global::System.Data.DataColumn OrderDeliveryDateColumn {
  1450. get {
  1451. return this.columnOrderDeliveryDate;
  1452. }
  1453. }
  1454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1456. public global::System.Data.DataColumn OrderPickupPointColumn {
  1457. get {
  1458. return this.columnOrderPickupPoint;
  1459. }
  1460. }
  1461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1463. [global::System.ComponentModel.Browsable(false)]
  1464. public int Count {
  1465. get {
  1466. return this.Rows.Count;
  1467. }
  1468. }
  1469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1471. public OrderRow this[int index] {
  1472. get {
  1473. return ((OrderRow)(this.Rows[index]));
  1474. }
  1475. }
  1476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1477. public event OrderRowChangeEventHandler OrderRowChanging;
  1478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1479. public event OrderRowChangeEventHandler OrderRowChanged;
  1480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1481. public event OrderRowChangeEventHandler OrderRowDeleting;
  1482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1483. public event OrderRowChangeEventHandler OrderRowDeleted;
  1484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1486. public void AddOrderRow(OrderRow row) {
  1487. this.Rows.Add(row);
  1488. }
  1489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1491. public OrderRow AddOrderRow(string OrderStatus, System.DateTime OrderDeliveryDate, string OrderPickupPoint) {
  1492. OrderRow rowOrderRow = ((OrderRow)(this.NewRow()));
  1493. object[] columnValuesArray = new object[] {
  1494. null,
  1495. OrderStatus,
  1496. OrderDeliveryDate,
  1497. OrderPickupPoint};
  1498. rowOrderRow.ItemArray = columnValuesArray;
  1499. this.Rows.Add(rowOrderRow);
  1500. return rowOrderRow;
  1501. }
  1502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1504. public OrderRow FindByOrderID(int OrderID) {
  1505. return ((OrderRow)(this.Rows.Find(new object[] {
  1506. OrderID})));
  1507. }
  1508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1510. public override global::System.Data.DataTable Clone() {
  1511. OrderDataTable cln = ((OrderDataTable)(base.Clone()));
  1512. cln.InitVars();
  1513. return cln;
  1514. }
  1515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1517. protected override global::System.Data.DataTable CreateInstance() {
  1518. return new OrderDataTable();
  1519. }
  1520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1522. internal void InitVars() {
  1523. this.columnOrderID = base.Columns["OrderID"];
  1524. this.columnOrderStatus = base.Columns["OrderStatus"];
  1525. this.columnOrderDeliveryDate = base.Columns["OrderDeliveryDate"];
  1526. this.columnOrderPickupPoint = base.Columns["OrderPickupPoint"];
  1527. }
  1528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1530. private void InitClass() {
  1531. this.columnOrderID = new global::System.Data.DataColumn("OrderID", typeof(int), null, global::System.Data.MappingType.Element);
  1532. base.Columns.Add(this.columnOrderID);
  1533. this.columnOrderStatus = new global::System.Data.DataColumn("OrderStatus", typeof(string), null, global::System.Data.MappingType.Element);
  1534. base.Columns.Add(this.columnOrderStatus);
  1535. this.columnOrderDeliveryDate = new global::System.Data.DataColumn("OrderDeliveryDate", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1536. base.Columns.Add(this.columnOrderDeliveryDate);
  1537. this.columnOrderPickupPoint = new global::System.Data.DataColumn("OrderPickupPoint", typeof(string), null, global::System.Data.MappingType.Element);
  1538. base.Columns.Add(this.columnOrderPickupPoint);
  1539. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1540. this.columnOrderID}, true));
  1541. this.columnOrderID.AutoIncrement = true;
  1542. this.columnOrderID.AutoIncrementSeed = -1;
  1543. this.columnOrderID.AutoIncrementStep = -1;
  1544. this.columnOrderID.AllowDBNull = false;
  1545. this.columnOrderID.ReadOnly = true;
  1546. this.columnOrderID.Unique = true;
  1547. this.columnOrderStatus.AllowDBNull = false;
  1548. this.columnOrderStatus.MaxLength = 2147483647;
  1549. this.columnOrderDeliveryDate.AllowDBNull = false;
  1550. this.columnOrderPickupPoint.AllowDBNull = false;
  1551. this.columnOrderPickupPoint.MaxLength = 2147483647;
  1552. }
  1553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1555. public OrderRow NewOrderRow() {
  1556. return ((OrderRow)(this.NewRow()));
  1557. }
  1558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1560. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1561. return new OrderRow(builder);
  1562. }
  1563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1565. protected override global::System.Type GetRowType() {
  1566. return typeof(OrderRow);
  1567. }
  1568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1570. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1571. base.OnRowChanged(e);
  1572. if ((this.OrderRowChanged != null)) {
  1573. this.OrderRowChanged(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  1574. }
  1575. }
  1576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1578. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1579. base.OnRowChanging(e);
  1580. if ((this.OrderRowChanging != null)) {
  1581. this.OrderRowChanging(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  1582. }
  1583. }
  1584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1586. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1587. base.OnRowDeleted(e);
  1588. if ((this.OrderRowDeleted != null)) {
  1589. this.OrderRowDeleted(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  1590. }
  1591. }
  1592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1594. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1595. base.OnRowDeleting(e);
  1596. if ((this.OrderRowDeleting != null)) {
  1597. this.OrderRowDeleting(this, new OrderRowChangeEvent(((OrderRow)(e.Row)), e.Action));
  1598. }
  1599. }
  1600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1602. public void RemoveOrderRow(OrderRow row) {
  1603. this.Rows.Remove(row);
  1604. }
  1605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1607. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1608. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1609. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1610. DataSet1 ds = new DataSet1();
  1611. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1612. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1613. any1.MinOccurs = new decimal(0);
  1614. any1.MaxOccurs = decimal.MaxValue;
  1615. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1616. sequence.Items.Add(any1);
  1617. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1618. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1619. any2.MinOccurs = new decimal(1);
  1620. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1621. sequence.Items.Add(any2);
  1622. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1623. attribute1.Name = "namespace";
  1624. attribute1.FixedValue = ds.Namespace;
  1625. type.Attributes.Add(attribute1);
  1626. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1627. attribute2.Name = "tableTypeName";
  1628. attribute2.FixedValue = "OrderDataTable";
  1629. type.Attributes.Add(attribute2);
  1630. type.Particle = sequence;
  1631. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1632. if (xs.Contains(dsSchema.TargetNamespace)) {
  1633. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1634. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1635. try {
  1636. global::System.Xml.Schema.XmlSchema schema = null;
  1637. dsSchema.Write(s1);
  1638. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1639. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1640. s2.SetLength(0);
  1641. schema.Write(s2);
  1642. if ((s1.Length == s2.Length)) {
  1643. s1.Position = 0;
  1644. s2.Position = 0;
  1645. for (; ((s1.Position != s1.Length)
  1646. && (s1.ReadByte() == s2.ReadByte())); ) {
  1647. ;
  1648. }
  1649. if ((s1.Position == s1.Length)) {
  1650. return type;
  1651. }
  1652. }
  1653. }
  1654. }
  1655. finally {
  1656. if ((s1 != null)) {
  1657. s1.Close();
  1658. }
  1659. if ((s2 != null)) {
  1660. s2.Close();
  1661. }
  1662. }
  1663. }
  1664. xs.Add(dsSchema);
  1665. return type;
  1666. }
  1667. }
  1668. /// <summary>
  1669. ///Represents the strongly named DataTable class.
  1670. ///</summary>
  1671. [global::System.Serializable()]
  1672. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1673. public partial class OrderProductDataTable : global::System.Data.TypedTableBase<OrderProductRow> {
  1674. private global::System.Data.DataColumn columnOrderID;
  1675. private global::System.Data.DataColumn columnProductArticleNumber;
  1676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1678. public OrderProductDataTable() {
  1679. this.TableName = "OrderProduct";
  1680. this.BeginInit();
  1681. this.InitClass();
  1682. this.EndInit();
  1683. }
  1684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1686. internal OrderProductDataTable(global::System.Data.DataTable table) {
  1687. this.TableName = table.TableName;
  1688. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1689. this.CaseSensitive = table.CaseSensitive;
  1690. }
  1691. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1692. this.Locale = table.Locale;
  1693. }
  1694. if ((table.Namespace != table.DataSet.Namespace)) {
  1695. this.Namespace = table.Namespace;
  1696. }
  1697. this.Prefix = table.Prefix;
  1698. this.MinimumCapacity = table.MinimumCapacity;
  1699. }
  1700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1702. protected OrderProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1703. base(info, context) {
  1704. this.InitVars();
  1705. }
  1706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1708. public global::System.Data.DataColumn OrderIDColumn {
  1709. get {
  1710. return this.columnOrderID;
  1711. }
  1712. }
  1713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1715. public global::System.Data.DataColumn ProductArticleNumberColumn {
  1716. get {
  1717. return this.columnProductArticleNumber;
  1718. }
  1719. }
  1720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1722. [global::System.ComponentModel.Browsable(false)]
  1723. public int Count {
  1724. get {
  1725. return this.Rows.Count;
  1726. }
  1727. }
  1728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1730. public OrderProductRow this[int index] {
  1731. get {
  1732. return ((OrderProductRow)(this.Rows[index]));
  1733. }
  1734. }
  1735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1736. public event OrderProductRowChangeEventHandler OrderProductRowChanging;
  1737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1738. public event OrderProductRowChangeEventHandler OrderProductRowChanged;
  1739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1740. public event OrderProductRowChangeEventHandler OrderProductRowDeleting;
  1741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1742. public event OrderProductRowChangeEventHandler OrderProductRowDeleted;
  1743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1745. public void AddOrderProductRow(OrderProductRow row) {
  1746. this.Rows.Add(row);
  1747. }
  1748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1750. public OrderProductRow AddOrderProductRow(OrderRow parentOrderRowByFK__OrderProd__Order__405A880E, ProductRow parentProductRowByFK__OrderProd__Produ__414EAC47) {
  1751. OrderProductRow rowOrderProductRow = ((OrderProductRow)(this.NewRow()));
  1752. object[] columnValuesArray = new object[] {
  1753. null,
  1754. null};
  1755. if ((parentOrderRowByFK__OrderProd__Order__405A880E != null)) {
  1756. columnValuesArray[0] = parentOrderRowByFK__OrderProd__Order__405A880E[0];
  1757. }
  1758. if ((parentProductRowByFK__OrderProd__Produ__414EAC47 != null)) {
  1759. columnValuesArray[1] = parentProductRowByFK__OrderProd__Produ__414EAC47[0];
  1760. }
  1761. rowOrderProductRow.ItemArray = columnValuesArray;
  1762. this.Rows.Add(rowOrderProductRow);
  1763. return rowOrderProductRow;
  1764. }
  1765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1767. public OrderProductRow FindByOrderIDProductArticleNumber(int OrderID, string ProductArticleNumber) {
  1768. return ((OrderProductRow)(this.Rows.Find(new object[] {
  1769. OrderID,
  1770. ProductArticleNumber})));
  1771. }
  1772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1774. public override global::System.Data.DataTable Clone() {
  1775. OrderProductDataTable cln = ((OrderProductDataTable)(base.Clone()));
  1776. cln.InitVars();
  1777. return cln;
  1778. }
  1779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1781. protected override global::System.Data.DataTable CreateInstance() {
  1782. return new OrderProductDataTable();
  1783. }
  1784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1786. internal void InitVars() {
  1787. this.columnOrderID = base.Columns["OrderID"];
  1788. this.columnProductArticleNumber = base.Columns["ProductArticleNumber"];
  1789. }
  1790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1792. private void InitClass() {
  1793. this.columnOrderID = new global::System.Data.DataColumn("OrderID", typeof(int), null, global::System.Data.MappingType.Element);
  1794. base.Columns.Add(this.columnOrderID);
  1795. this.columnProductArticleNumber = new global::System.Data.DataColumn("ProductArticleNumber", typeof(string), null, global::System.Data.MappingType.Element);
  1796. base.Columns.Add(this.columnProductArticleNumber);
  1797. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1798. this.columnOrderID,
  1799. this.columnProductArticleNumber}, true));
  1800. this.columnOrderID.AllowDBNull = false;
  1801. this.columnProductArticleNumber.AllowDBNull = false;
  1802. this.columnProductArticleNumber.MaxLength = 100;
  1803. }
  1804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1806. public OrderProductRow NewOrderProductRow() {
  1807. return ((OrderProductRow)(this.NewRow()));
  1808. }
  1809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1811. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1812. return new OrderProductRow(builder);
  1813. }
  1814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1816. protected override global::System.Type GetRowType() {
  1817. return typeof(OrderProductRow);
  1818. }
  1819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1821. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1822. base.OnRowChanged(e);
  1823. if ((this.OrderProductRowChanged != null)) {
  1824. this.OrderProductRowChanged(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  1825. }
  1826. }
  1827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1829. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1830. base.OnRowChanging(e);
  1831. if ((this.OrderProductRowChanging != null)) {
  1832. this.OrderProductRowChanging(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  1833. }
  1834. }
  1835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1837. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1838. base.OnRowDeleted(e);
  1839. if ((this.OrderProductRowDeleted != null)) {
  1840. this.OrderProductRowDeleted(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  1841. }
  1842. }
  1843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1845. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1846. base.OnRowDeleting(e);
  1847. if ((this.OrderProductRowDeleting != null)) {
  1848. this.OrderProductRowDeleting(this, new OrderProductRowChangeEvent(((OrderProductRow)(e.Row)), e.Action));
  1849. }
  1850. }
  1851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1853. public void RemoveOrderProductRow(OrderProductRow row) {
  1854. this.Rows.Remove(row);
  1855. }
  1856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1858. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1859. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1860. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1861. DataSet1 ds = new DataSet1();
  1862. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1863. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1864. any1.MinOccurs = new decimal(0);
  1865. any1.MaxOccurs = decimal.MaxValue;
  1866. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1867. sequence.Items.Add(any1);
  1868. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1869. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1870. any2.MinOccurs = new decimal(1);
  1871. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1872. sequence.Items.Add(any2);
  1873. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1874. attribute1.Name = "namespace";
  1875. attribute1.FixedValue = ds.Namespace;
  1876. type.Attributes.Add(attribute1);
  1877. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1878. attribute2.Name = "tableTypeName";
  1879. attribute2.FixedValue = "OrderProductDataTable";
  1880. type.Attributes.Add(attribute2);
  1881. type.Particle = sequence;
  1882. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1883. if (xs.Contains(dsSchema.TargetNamespace)) {
  1884. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1885. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1886. try {
  1887. global::System.Xml.Schema.XmlSchema schema = null;
  1888. dsSchema.Write(s1);
  1889. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1890. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1891. s2.SetLength(0);
  1892. schema.Write(s2);
  1893. if ((s1.Length == s2.Length)) {
  1894. s1.Position = 0;
  1895. s2.Position = 0;
  1896. for (; ((s1.Position != s1.Length)
  1897. && (s1.ReadByte() == s2.ReadByte())); ) {
  1898. ;
  1899. }
  1900. if ((s1.Position == s1.Length)) {
  1901. return type;
  1902. }
  1903. }
  1904. }
  1905. }
  1906. finally {
  1907. if ((s1 != null)) {
  1908. s1.Close();
  1909. }
  1910. if ((s2 != null)) {
  1911. s2.Close();
  1912. }
  1913. }
  1914. }
  1915. xs.Add(dsSchema);
  1916. return type;
  1917. }
  1918. }
  1919. /// <summary>
  1920. ///Represents the strongly named DataTable class.
  1921. ///</summary>
  1922. [global::System.Serializable()]
  1923. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1924. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  1925. private global::System.Data.DataColumn columnProductArticleNumber;
  1926. private global::System.Data.DataColumn columnProductName;
  1927. private global::System.Data.DataColumn columnProductDescription;
  1928. private global::System.Data.DataColumn columnProductCategory;
  1929. private global::System.Data.DataColumn columnProductPhoto;
  1930. private global::System.Data.DataColumn columnProductManufacturer;
  1931. private global::System.Data.DataColumn columnProductCost;
  1932. private global::System.Data.DataColumn columnProductDiscountAmount;
  1933. private global::System.Data.DataColumn columnProductQuantityInStock;
  1934. private global::System.Data.DataColumn columnProductStatus;
  1935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1937. public ProductDataTable() {
  1938. this.TableName = "Product";
  1939. this.BeginInit();
  1940. this.InitClass();
  1941. this.EndInit();
  1942. }
  1943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1945. internal ProductDataTable(global::System.Data.DataTable table) {
  1946. this.TableName = table.TableName;
  1947. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1948. this.CaseSensitive = table.CaseSensitive;
  1949. }
  1950. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1951. this.Locale = table.Locale;
  1952. }
  1953. if ((table.Namespace != table.DataSet.Namespace)) {
  1954. this.Namespace = table.Namespace;
  1955. }
  1956. this.Prefix = table.Prefix;
  1957. this.MinimumCapacity = table.MinimumCapacity;
  1958. }
  1959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1961. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1962. base(info, context) {
  1963. this.InitVars();
  1964. }
  1965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1967. public global::System.Data.DataColumn ProductArticleNumberColumn {
  1968. get {
  1969. return this.columnProductArticleNumber;
  1970. }
  1971. }
  1972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1974. public global::System.Data.DataColumn ProductNameColumn {
  1975. get {
  1976. return this.columnProductName;
  1977. }
  1978. }
  1979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1981. public global::System.Data.DataColumn ProductDescriptionColumn {
  1982. get {
  1983. return this.columnProductDescription;
  1984. }
  1985. }
  1986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1988. public global::System.Data.DataColumn ProductCategoryColumn {
  1989. get {
  1990. return this.columnProductCategory;
  1991. }
  1992. }
  1993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1995. public global::System.Data.DataColumn ProductPhotoColumn {
  1996. get {
  1997. return this.columnProductPhoto;
  1998. }
  1999. }
  2000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2002. public global::System.Data.DataColumn ProductManufacturerColumn {
  2003. get {
  2004. return this.columnProductManufacturer;
  2005. }
  2006. }
  2007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2009. public global::System.Data.DataColumn ProductCostColumn {
  2010. get {
  2011. return this.columnProductCost;
  2012. }
  2013. }
  2014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2016. public global::System.Data.DataColumn ProductDiscountAmountColumn {
  2017. get {
  2018. return this.columnProductDiscountAmount;
  2019. }
  2020. }
  2021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2023. public global::System.Data.DataColumn ProductQuantityInStockColumn {
  2024. get {
  2025. return this.columnProductQuantityInStock;
  2026. }
  2027. }
  2028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2030. public global::System.Data.DataColumn ProductStatusColumn {
  2031. get {
  2032. return this.columnProductStatus;
  2033. }
  2034. }
  2035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2037. [global::System.ComponentModel.Browsable(false)]
  2038. public int Count {
  2039. get {
  2040. return this.Rows.Count;
  2041. }
  2042. }
  2043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2045. public ProductRow this[int index] {
  2046. get {
  2047. return ((ProductRow)(this.Rows[index]));
  2048. }
  2049. }
  2050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2051. public event ProductRowChangeEventHandler ProductRowChanging;
  2052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2053. public event ProductRowChangeEventHandler ProductRowChanged;
  2054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2055. public event ProductRowChangeEventHandler ProductRowDeleting;
  2056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2057. public event ProductRowChangeEventHandler ProductRowDeleted;
  2058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2060. public void AddProductRow(ProductRow row) {
  2061. this.Rows.Add(row);
  2062. }
  2063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2065. public ProductRow AddProductRow(string ProductArticleNumber, string ProductName, string ProductDescription, string ProductCategory, byte[] ProductPhoto, string ProductManufacturer, decimal ProductCost, byte ProductDiscountAmount, int ProductQuantityInStock, string ProductStatus) {
  2066. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  2067. object[] columnValuesArray = new object[] {
  2068. ProductArticleNumber,
  2069. ProductName,
  2070. ProductDescription,
  2071. ProductCategory,
  2072. ProductPhoto,
  2073. ProductManufacturer,
  2074. ProductCost,
  2075. ProductDiscountAmount,
  2076. ProductQuantityInStock,
  2077. ProductStatus};
  2078. rowProductRow.ItemArray = columnValuesArray;
  2079. this.Rows.Add(rowProductRow);
  2080. return rowProductRow;
  2081. }
  2082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2084. public ProductRow FindByProductArticleNumber(string ProductArticleNumber) {
  2085. return ((ProductRow)(this.Rows.Find(new object[] {
  2086. ProductArticleNumber})));
  2087. }
  2088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2090. public override global::System.Data.DataTable Clone() {
  2091. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  2092. cln.InitVars();
  2093. return cln;
  2094. }
  2095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2097. protected override global::System.Data.DataTable CreateInstance() {
  2098. return new ProductDataTable();
  2099. }
  2100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2102. internal void InitVars() {
  2103. this.columnProductArticleNumber = base.Columns["ProductArticleNumber"];
  2104. this.columnProductName = base.Columns["ProductName"];
  2105. this.columnProductDescription = base.Columns["ProductDescription"];
  2106. this.columnProductCategory = base.Columns["ProductCategory"];
  2107. this.columnProductPhoto = base.Columns["ProductPhoto"];
  2108. this.columnProductManufacturer = base.Columns["ProductManufacturer"];
  2109. this.columnProductCost = base.Columns["ProductCost"];
  2110. this.columnProductDiscountAmount = base.Columns["ProductDiscountAmount"];
  2111. this.columnProductQuantityInStock = base.Columns["ProductQuantityInStock"];
  2112. this.columnProductStatus = base.Columns["ProductStatus"];
  2113. }
  2114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2116. private void InitClass() {
  2117. this.columnProductArticleNumber = new global::System.Data.DataColumn("ProductArticleNumber", typeof(string), null, global::System.Data.MappingType.Element);
  2118. base.Columns.Add(this.columnProductArticleNumber);
  2119. this.columnProductName = new global::System.Data.DataColumn("ProductName", typeof(string), null, global::System.Data.MappingType.Element);
  2120. base.Columns.Add(this.columnProductName);
  2121. this.columnProductDescription = new global::System.Data.DataColumn("ProductDescription", typeof(string), null, global::System.Data.MappingType.Element);
  2122. base.Columns.Add(this.columnProductDescription);
  2123. this.columnProductCategory = new global::System.Data.DataColumn("ProductCategory", typeof(string), null, global::System.Data.MappingType.Element);
  2124. base.Columns.Add(this.columnProductCategory);
  2125. this.columnProductPhoto = new global::System.Data.DataColumn("ProductPhoto", typeof(byte[]), null, global::System.Data.MappingType.Element);
  2126. base.Columns.Add(this.columnProductPhoto);
  2127. this.columnProductManufacturer = new global::System.Data.DataColumn("ProductManufacturer", typeof(string), null, global::System.Data.MappingType.Element);
  2128. base.Columns.Add(this.columnProductManufacturer);
  2129. this.columnProductCost = new global::System.Data.DataColumn("ProductCost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2130. base.Columns.Add(this.columnProductCost);
  2131. this.columnProductDiscountAmount = new global::System.Data.DataColumn("ProductDiscountAmount", typeof(byte), null, global::System.Data.MappingType.Element);
  2132. base.Columns.Add(this.columnProductDiscountAmount);
  2133. this.columnProductQuantityInStock = new global::System.Data.DataColumn("ProductQuantityInStock", typeof(int), null, global::System.Data.MappingType.Element);
  2134. base.Columns.Add(this.columnProductQuantityInStock);
  2135. this.columnProductStatus = new global::System.Data.DataColumn("ProductStatus", typeof(string), null, global::System.Data.MappingType.Element);
  2136. base.Columns.Add(this.columnProductStatus);
  2137. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2138. this.columnProductArticleNumber}, true));
  2139. this.columnProductArticleNumber.AllowDBNull = false;
  2140. this.columnProductArticleNumber.Unique = true;
  2141. this.columnProductArticleNumber.MaxLength = 100;
  2142. this.columnProductName.AllowDBNull = false;
  2143. this.columnProductName.MaxLength = 2147483647;
  2144. this.columnProductDescription.AllowDBNull = false;
  2145. this.columnProductDescription.MaxLength = 2147483647;
  2146. this.columnProductCategory.AllowDBNull = false;
  2147. this.columnProductCategory.MaxLength = 2147483647;
  2148. this.columnProductPhoto.AllowDBNull = false;
  2149. this.columnProductManufacturer.AllowDBNull = false;
  2150. this.columnProductManufacturer.MaxLength = 2147483647;
  2151. this.columnProductCost.AllowDBNull = false;
  2152. this.columnProductQuantityInStock.AllowDBNull = false;
  2153. this.columnProductStatus.AllowDBNull = false;
  2154. this.columnProductStatus.MaxLength = 2147483647;
  2155. }
  2156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2158. public ProductRow NewProductRow() {
  2159. return ((ProductRow)(this.NewRow()));
  2160. }
  2161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2163. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2164. return new ProductRow(builder);
  2165. }
  2166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2168. protected override global::System.Type GetRowType() {
  2169. return typeof(ProductRow);
  2170. }
  2171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2173. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2174. base.OnRowChanged(e);
  2175. if ((this.ProductRowChanged != null)) {
  2176. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2177. }
  2178. }
  2179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2181. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2182. base.OnRowChanging(e);
  2183. if ((this.ProductRowChanging != null)) {
  2184. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2185. }
  2186. }
  2187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2189. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2190. base.OnRowDeleted(e);
  2191. if ((this.ProductRowDeleted != null)) {
  2192. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2193. }
  2194. }
  2195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2197. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2198. base.OnRowDeleting(e);
  2199. if ((this.ProductRowDeleting != null)) {
  2200. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2201. }
  2202. }
  2203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2205. public void RemoveProductRow(ProductRow row) {
  2206. this.Rows.Remove(row);
  2207. }
  2208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2210. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2211. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2212. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2213. DataSet1 ds = new DataSet1();
  2214. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2215. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2216. any1.MinOccurs = new decimal(0);
  2217. any1.MaxOccurs = decimal.MaxValue;
  2218. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2219. sequence.Items.Add(any1);
  2220. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2221. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2222. any2.MinOccurs = new decimal(1);
  2223. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2224. sequence.Items.Add(any2);
  2225. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2226. attribute1.Name = "namespace";
  2227. attribute1.FixedValue = ds.Namespace;
  2228. type.Attributes.Add(attribute1);
  2229. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2230. attribute2.Name = "tableTypeName";
  2231. attribute2.FixedValue = "ProductDataTable";
  2232. type.Attributes.Add(attribute2);
  2233. type.Particle = sequence;
  2234. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2235. if (xs.Contains(dsSchema.TargetNamespace)) {
  2236. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2237. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2238. try {
  2239. global::System.Xml.Schema.XmlSchema schema = null;
  2240. dsSchema.Write(s1);
  2241. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2242. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2243. s2.SetLength(0);
  2244. schema.Write(s2);
  2245. if ((s1.Length == s2.Length)) {
  2246. s1.Position = 0;
  2247. s2.Position = 0;
  2248. for (; ((s1.Position != s1.Length)
  2249. && (s1.ReadByte() == s2.ReadByte())); ) {
  2250. ;
  2251. }
  2252. if ((s1.Position == s1.Length)) {
  2253. return type;
  2254. }
  2255. }
  2256. }
  2257. }
  2258. finally {
  2259. if ((s1 != null)) {
  2260. s1.Close();
  2261. }
  2262. if ((s2 != null)) {
  2263. s2.Close();
  2264. }
  2265. }
  2266. }
  2267. xs.Add(dsSchema);
  2268. return type;
  2269. }
  2270. }
  2271. /// <summary>
  2272. ///Represents the strongly named DataTable class.
  2273. ///</summary>
  2274. [global::System.Serializable()]
  2275. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2276. public partial class RoleDataTable : global::System.Data.TypedTableBase<RoleRow> {
  2277. private global::System.Data.DataColumn columnRoleID;
  2278. private global::System.Data.DataColumn columnRoleName;
  2279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2281. public RoleDataTable() {
  2282. this.TableName = "Role";
  2283. this.BeginInit();
  2284. this.InitClass();
  2285. this.EndInit();
  2286. }
  2287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2289. internal RoleDataTable(global::System.Data.DataTable table) {
  2290. this.TableName = table.TableName;
  2291. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2292. this.CaseSensitive = table.CaseSensitive;
  2293. }
  2294. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2295. this.Locale = table.Locale;
  2296. }
  2297. if ((table.Namespace != table.DataSet.Namespace)) {
  2298. this.Namespace = table.Namespace;
  2299. }
  2300. this.Prefix = table.Prefix;
  2301. this.MinimumCapacity = table.MinimumCapacity;
  2302. }
  2303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2305. protected RoleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2306. base(info, context) {
  2307. this.InitVars();
  2308. }
  2309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2311. public global::System.Data.DataColumn RoleIDColumn {
  2312. get {
  2313. return this.columnRoleID;
  2314. }
  2315. }
  2316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2318. public global::System.Data.DataColumn RoleNameColumn {
  2319. get {
  2320. return this.columnRoleName;
  2321. }
  2322. }
  2323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2325. [global::System.ComponentModel.Browsable(false)]
  2326. public int Count {
  2327. get {
  2328. return this.Rows.Count;
  2329. }
  2330. }
  2331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2333. public RoleRow this[int index] {
  2334. get {
  2335. return ((RoleRow)(this.Rows[index]));
  2336. }
  2337. }
  2338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2339. public event RoleRowChangeEventHandler RoleRowChanging;
  2340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2341. public event RoleRowChangeEventHandler RoleRowChanged;
  2342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2343. public event RoleRowChangeEventHandler RoleRowDeleting;
  2344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2345. public event RoleRowChangeEventHandler RoleRowDeleted;
  2346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2348. public void AddRoleRow(RoleRow row) {
  2349. this.Rows.Add(row);
  2350. }
  2351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2353. public RoleRow AddRoleRow(string RoleName) {
  2354. RoleRow rowRoleRow = ((RoleRow)(this.NewRow()));
  2355. object[] columnValuesArray = new object[] {
  2356. null,
  2357. RoleName};
  2358. rowRoleRow.ItemArray = columnValuesArray;
  2359. this.Rows.Add(rowRoleRow);
  2360. return rowRoleRow;
  2361. }
  2362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2364. public RoleRow FindByRoleID(int RoleID) {
  2365. return ((RoleRow)(this.Rows.Find(new object[] {
  2366. RoleID})));
  2367. }
  2368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2370. public override global::System.Data.DataTable Clone() {
  2371. RoleDataTable cln = ((RoleDataTable)(base.Clone()));
  2372. cln.InitVars();
  2373. return cln;
  2374. }
  2375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2377. protected override global::System.Data.DataTable CreateInstance() {
  2378. return new RoleDataTable();
  2379. }
  2380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2382. internal void InitVars() {
  2383. this.columnRoleID = base.Columns["RoleID"];
  2384. this.columnRoleName = base.Columns["RoleName"];
  2385. }
  2386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2388. private void InitClass() {
  2389. this.columnRoleID = new global::System.Data.DataColumn("RoleID", typeof(int), null, global::System.Data.MappingType.Element);
  2390. base.Columns.Add(this.columnRoleID);
  2391. this.columnRoleName = new global::System.Data.DataColumn("RoleName", typeof(string), null, global::System.Data.MappingType.Element);
  2392. base.Columns.Add(this.columnRoleName);
  2393. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2394. this.columnRoleID}, true));
  2395. this.columnRoleID.AutoIncrement = true;
  2396. this.columnRoleID.AutoIncrementSeed = -1;
  2397. this.columnRoleID.AutoIncrementStep = -1;
  2398. this.columnRoleID.AllowDBNull = false;
  2399. this.columnRoleID.ReadOnly = true;
  2400. this.columnRoleID.Unique = true;
  2401. this.columnRoleName.AllowDBNull = false;
  2402. this.columnRoleName.MaxLength = 100;
  2403. }
  2404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2406. public RoleRow NewRoleRow() {
  2407. return ((RoleRow)(this.NewRow()));
  2408. }
  2409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2411. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2412. return new RoleRow(builder);
  2413. }
  2414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2416. protected override global::System.Type GetRowType() {
  2417. return typeof(RoleRow);
  2418. }
  2419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2421. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2422. base.OnRowChanged(e);
  2423. if ((this.RoleRowChanged != null)) {
  2424. this.RoleRowChanged(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  2425. }
  2426. }
  2427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2429. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2430. base.OnRowChanging(e);
  2431. if ((this.RoleRowChanging != null)) {
  2432. this.RoleRowChanging(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  2433. }
  2434. }
  2435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2437. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2438. base.OnRowDeleted(e);
  2439. if ((this.RoleRowDeleted != null)) {
  2440. this.RoleRowDeleted(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  2441. }
  2442. }
  2443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2445. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2446. base.OnRowDeleting(e);
  2447. if ((this.RoleRowDeleting != null)) {
  2448. this.RoleRowDeleting(this, new RoleRowChangeEvent(((RoleRow)(e.Row)), e.Action));
  2449. }
  2450. }
  2451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2453. public void RemoveRoleRow(RoleRow row) {
  2454. this.Rows.Remove(row);
  2455. }
  2456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2458. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2459. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2460. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2461. DataSet1 ds = new DataSet1();
  2462. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2463. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2464. any1.MinOccurs = new decimal(0);
  2465. any1.MaxOccurs = decimal.MaxValue;
  2466. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2467. sequence.Items.Add(any1);
  2468. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2469. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2470. any2.MinOccurs = new decimal(1);
  2471. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2472. sequence.Items.Add(any2);
  2473. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2474. attribute1.Name = "namespace";
  2475. attribute1.FixedValue = ds.Namespace;
  2476. type.Attributes.Add(attribute1);
  2477. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2478. attribute2.Name = "tableTypeName";
  2479. attribute2.FixedValue = "RoleDataTable";
  2480. type.Attributes.Add(attribute2);
  2481. type.Particle = sequence;
  2482. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2483. if (xs.Contains(dsSchema.TargetNamespace)) {
  2484. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2485. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2486. try {
  2487. global::System.Xml.Schema.XmlSchema schema = null;
  2488. dsSchema.Write(s1);
  2489. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2490. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2491. s2.SetLength(0);
  2492. schema.Write(s2);
  2493. if ((s1.Length == s2.Length)) {
  2494. s1.Position = 0;
  2495. s2.Position = 0;
  2496. for (; ((s1.Position != s1.Length)
  2497. && (s1.ReadByte() == s2.ReadByte())); ) {
  2498. ;
  2499. }
  2500. if ((s1.Position == s1.Length)) {
  2501. return type;
  2502. }
  2503. }
  2504. }
  2505. }
  2506. finally {
  2507. if ((s1 != null)) {
  2508. s1.Close();
  2509. }
  2510. if ((s2 != null)) {
  2511. s2.Close();
  2512. }
  2513. }
  2514. }
  2515. xs.Add(dsSchema);
  2516. return type;
  2517. }
  2518. }
  2519. /// <summary>
  2520. ///Represents the strongly named DataTable class.
  2521. ///</summary>
  2522. [global::System.Serializable()]
  2523. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2524. public partial class tbl_categoriesDataTable : global::System.Data.TypedTableBase<tbl_categoriesRow> {
  2525. private global::System.Data.DataColumn columnid;
  2526. private global::System.Data.DataColumn columntitle;
  2527. private global::System.Data.DataColumn columndescription;
  2528. private global::System.Data.DataColumn columnadded_date;
  2529. private global::System.Data.DataColumn columnadded_by;
  2530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2532. public tbl_categoriesDataTable() {
  2533. this.TableName = "tbl_categories";
  2534. this.BeginInit();
  2535. this.InitClass();
  2536. this.EndInit();
  2537. }
  2538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2540. internal tbl_categoriesDataTable(global::System.Data.DataTable table) {
  2541. this.TableName = table.TableName;
  2542. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2543. this.CaseSensitive = table.CaseSensitive;
  2544. }
  2545. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2546. this.Locale = table.Locale;
  2547. }
  2548. if ((table.Namespace != table.DataSet.Namespace)) {
  2549. this.Namespace = table.Namespace;
  2550. }
  2551. this.Prefix = table.Prefix;
  2552. this.MinimumCapacity = table.MinimumCapacity;
  2553. }
  2554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2556. protected tbl_categoriesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2557. base(info, context) {
  2558. this.InitVars();
  2559. }
  2560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2562. public global::System.Data.DataColumn idColumn {
  2563. get {
  2564. return this.columnid;
  2565. }
  2566. }
  2567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2569. public global::System.Data.DataColumn titleColumn {
  2570. get {
  2571. return this.columntitle;
  2572. }
  2573. }
  2574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2576. public global::System.Data.DataColumn descriptionColumn {
  2577. get {
  2578. return this.columndescription;
  2579. }
  2580. }
  2581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2583. public global::System.Data.DataColumn added_dateColumn {
  2584. get {
  2585. return this.columnadded_date;
  2586. }
  2587. }
  2588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2590. public global::System.Data.DataColumn added_byColumn {
  2591. get {
  2592. return this.columnadded_by;
  2593. }
  2594. }
  2595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2597. [global::System.ComponentModel.Browsable(false)]
  2598. public int Count {
  2599. get {
  2600. return this.Rows.Count;
  2601. }
  2602. }
  2603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2605. public tbl_categoriesRow this[int index] {
  2606. get {
  2607. return ((tbl_categoriesRow)(this.Rows[index]));
  2608. }
  2609. }
  2610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2611. public event tbl_categoriesRowChangeEventHandler tbl_categoriesRowChanging;
  2612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2613. public event tbl_categoriesRowChangeEventHandler tbl_categoriesRowChanged;
  2614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2615. public event tbl_categoriesRowChangeEventHandler tbl_categoriesRowDeleting;
  2616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2617. public event tbl_categoriesRowChangeEventHandler tbl_categoriesRowDeleted;
  2618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2620. public void Addtbl_categoriesRow(tbl_categoriesRow row) {
  2621. this.Rows.Add(row);
  2622. }
  2623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2625. public tbl_categoriesRow Addtbl_categoriesRow(string title, string description, System.DateTime added_date, int added_by) {
  2626. tbl_categoriesRow rowtbl_categoriesRow = ((tbl_categoriesRow)(this.NewRow()));
  2627. object[] columnValuesArray = new object[] {
  2628. null,
  2629. title,
  2630. description,
  2631. added_date,
  2632. added_by};
  2633. rowtbl_categoriesRow.ItemArray = columnValuesArray;
  2634. this.Rows.Add(rowtbl_categoriesRow);
  2635. return rowtbl_categoriesRow;
  2636. }
  2637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2639. public tbl_categoriesRow FindByid(int id) {
  2640. return ((tbl_categoriesRow)(this.Rows.Find(new object[] {
  2641. id})));
  2642. }
  2643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2645. public override global::System.Data.DataTable Clone() {
  2646. tbl_categoriesDataTable cln = ((tbl_categoriesDataTable)(base.Clone()));
  2647. cln.InitVars();
  2648. return cln;
  2649. }
  2650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2652. protected override global::System.Data.DataTable CreateInstance() {
  2653. return new tbl_categoriesDataTable();
  2654. }
  2655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2657. internal void InitVars() {
  2658. this.columnid = base.Columns["id"];
  2659. this.columntitle = base.Columns["title"];
  2660. this.columndescription = base.Columns["description"];
  2661. this.columnadded_date = base.Columns["added_date"];
  2662. this.columnadded_by = base.Columns["added_by"];
  2663. }
  2664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2666. private void InitClass() {
  2667. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  2668. base.Columns.Add(this.columnid);
  2669. this.columntitle = new global::System.Data.DataColumn("title", typeof(string), null, global::System.Data.MappingType.Element);
  2670. base.Columns.Add(this.columntitle);
  2671. this.columndescription = new global::System.Data.DataColumn("description", typeof(string), null, global::System.Data.MappingType.Element);
  2672. base.Columns.Add(this.columndescription);
  2673. this.columnadded_date = new global::System.Data.DataColumn("added_date", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2674. base.Columns.Add(this.columnadded_date);
  2675. this.columnadded_by = new global::System.Data.DataColumn("added_by", typeof(int), null, global::System.Data.MappingType.Element);
  2676. base.Columns.Add(this.columnadded_by);
  2677. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2678. this.columnid}, true));
  2679. this.columnid.AutoIncrement = true;
  2680. this.columnid.AutoIncrementSeed = -1;
  2681. this.columnid.AutoIncrementStep = -1;
  2682. this.columnid.AllowDBNull = false;
  2683. this.columnid.ReadOnly = true;
  2684. this.columnid.Unique = true;
  2685. this.columntitle.MaxLength = 50;
  2686. this.columndescription.MaxLength = 2147483647;
  2687. }
  2688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2690. public tbl_categoriesRow Newtbl_categoriesRow() {
  2691. return ((tbl_categoriesRow)(this.NewRow()));
  2692. }
  2693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2695. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2696. return new tbl_categoriesRow(builder);
  2697. }
  2698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2700. protected override global::System.Type GetRowType() {
  2701. return typeof(tbl_categoriesRow);
  2702. }
  2703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2705. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2706. base.OnRowChanged(e);
  2707. if ((this.tbl_categoriesRowChanged != null)) {
  2708. this.tbl_categoriesRowChanged(this, new tbl_categoriesRowChangeEvent(((tbl_categoriesRow)(e.Row)), e.Action));
  2709. }
  2710. }
  2711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2713. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2714. base.OnRowChanging(e);
  2715. if ((this.tbl_categoriesRowChanging != null)) {
  2716. this.tbl_categoriesRowChanging(this, new tbl_categoriesRowChangeEvent(((tbl_categoriesRow)(e.Row)), e.Action));
  2717. }
  2718. }
  2719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2721. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2722. base.OnRowDeleted(e);
  2723. if ((this.tbl_categoriesRowDeleted != null)) {
  2724. this.tbl_categoriesRowDeleted(this, new tbl_categoriesRowChangeEvent(((tbl_categoriesRow)(e.Row)), e.Action));
  2725. }
  2726. }
  2727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2729. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2730. base.OnRowDeleting(e);
  2731. if ((this.tbl_categoriesRowDeleting != null)) {
  2732. this.tbl_categoriesRowDeleting(this, new tbl_categoriesRowChangeEvent(((tbl_categoriesRow)(e.Row)), e.Action));
  2733. }
  2734. }
  2735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2737. public void Removetbl_categoriesRow(tbl_categoriesRow row) {
  2738. this.Rows.Remove(row);
  2739. }
  2740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2742. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2743. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2744. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2745. DataSet1 ds = new DataSet1();
  2746. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2747. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2748. any1.MinOccurs = new decimal(0);
  2749. any1.MaxOccurs = decimal.MaxValue;
  2750. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2751. sequence.Items.Add(any1);
  2752. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2753. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2754. any2.MinOccurs = new decimal(1);
  2755. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2756. sequence.Items.Add(any2);
  2757. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2758. attribute1.Name = "namespace";
  2759. attribute1.FixedValue = ds.Namespace;
  2760. type.Attributes.Add(attribute1);
  2761. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2762. attribute2.Name = "tableTypeName";
  2763. attribute2.FixedValue = "tbl_categoriesDataTable";
  2764. type.Attributes.Add(attribute2);
  2765. type.Particle = sequence;
  2766. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2767. if (xs.Contains(dsSchema.TargetNamespace)) {
  2768. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2769. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2770. try {
  2771. global::System.Xml.Schema.XmlSchema schema = null;
  2772. dsSchema.Write(s1);
  2773. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2774. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2775. s2.SetLength(0);
  2776. schema.Write(s2);
  2777. if ((s1.Length == s2.Length)) {
  2778. s1.Position = 0;
  2779. s2.Position = 0;
  2780. for (; ((s1.Position != s1.Length)
  2781. && (s1.ReadByte() == s2.ReadByte())); ) {
  2782. ;
  2783. }
  2784. if ((s1.Position == s1.Length)) {
  2785. return type;
  2786. }
  2787. }
  2788. }
  2789. }
  2790. finally {
  2791. if ((s1 != null)) {
  2792. s1.Close();
  2793. }
  2794. if ((s2 != null)) {
  2795. s2.Close();
  2796. }
  2797. }
  2798. }
  2799. xs.Add(dsSchema);
  2800. return type;
  2801. }
  2802. }
  2803. /// <summary>
  2804. ///Represents the strongly named DataTable class.
  2805. ///</summary>
  2806. [global::System.Serializable()]
  2807. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2808. public partial class tbl_dea_custDataTable : global::System.Data.TypedTableBase<tbl_dea_custRow> {
  2809. private global::System.Data.DataColumn columnid;
  2810. private global::System.Data.DataColumn columntype;
  2811. private global::System.Data.DataColumn columnname;
  2812. private global::System.Data.DataColumn columnemail;
  2813. private global::System.Data.DataColumn columncontact;
  2814. private global::System.Data.DataColumn columnaddress;
  2815. private global::System.Data.DataColumn columnadded_date;
  2816. private global::System.Data.DataColumn columnadded_by;
  2817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2819. public tbl_dea_custDataTable() {
  2820. this.TableName = "tbl_dea_cust";
  2821. this.BeginInit();
  2822. this.InitClass();
  2823. this.EndInit();
  2824. }
  2825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2827. internal tbl_dea_custDataTable(global::System.Data.DataTable table) {
  2828. this.TableName = table.TableName;
  2829. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2830. this.CaseSensitive = table.CaseSensitive;
  2831. }
  2832. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2833. this.Locale = table.Locale;
  2834. }
  2835. if ((table.Namespace != table.DataSet.Namespace)) {
  2836. this.Namespace = table.Namespace;
  2837. }
  2838. this.Prefix = table.Prefix;
  2839. this.MinimumCapacity = table.MinimumCapacity;
  2840. }
  2841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2843. protected tbl_dea_custDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2844. base(info, context) {
  2845. this.InitVars();
  2846. }
  2847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2849. public global::System.Data.DataColumn idColumn {
  2850. get {
  2851. return this.columnid;
  2852. }
  2853. }
  2854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2856. public global::System.Data.DataColumn typeColumn {
  2857. get {
  2858. return this.columntype;
  2859. }
  2860. }
  2861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2863. public global::System.Data.DataColumn nameColumn {
  2864. get {
  2865. return this.columnname;
  2866. }
  2867. }
  2868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2870. public global::System.Data.DataColumn emailColumn {
  2871. get {
  2872. return this.columnemail;
  2873. }
  2874. }
  2875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2877. public global::System.Data.DataColumn contactColumn {
  2878. get {
  2879. return this.columncontact;
  2880. }
  2881. }
  2882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2884. public global::System.Data.DataColumn addressColumn {
  2885. get {
  2886. return this.columnaddress;
  2887. }
  2888. }
  2889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2891. public global::System.Data.DataColumn added_dateColumn {
  2892. get {
  2893. return this.columnadded_date;
  2894. }
  2895. }
  2896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2898. public global::System.Data.DataColumn added_byColumn {
  2899. get {
  2900. return this.columnadded_by;
  2901. }
  2902. }
  2903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2905. [global::System.ComponentModel.Browsable(false)]
  2906. public int Count {
  2907. get {
  2908. return this.Rows.Count;
  2909. }
  2910. }
  2911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2913. public tbl_dea_custRow this[int index] {
  2914. get {
  2915. return ((tbl_dea_custRow)(this.Rows[index]));
  2916. }
  2917. }
  2918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2919. public event tbl_dea_custRowChangeEventHandler tbl_dea_custRowChanging;
  2920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2921. public event tbl_dea_custRowChangeEventHandler tbl_dea_custRowChanged;
  2922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2923. public event tbl_dea_custRowChangeEventHandler tbl_dea_custRowDeleting;
  2924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2925. public event tbl_dea_custRowChangeEventHandler tbl_dea_custRowDeleted;
  2926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2928. public void Addtbl_dea_custRow(tbl_dea_custRow row) {
  2929. this.Rows.Add(row);
  2930. }
  2931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2933. public tbl_dea_custRow Addtbl_dea_custRow(string type, string name, string email, string contact, string address, System.DateTime added_date, int added_by) {
  2934. tbl_dea_custRow rowtbl_dea_custRow = ((tbl_dea_custRow)(this.NewRow()));
  2935. object[] columnValuesArray = new object[] {
  2936. null,
  2937. type,
  2938. name,
  2939. email,
  2940. contact,
  2941. address,
  2942. added_date,
  2943. added_by};
  2944. rowtbl_dea_custRow.ItemArray = columnValuesArray;
  2945. this.Rows.Add(rowtbl_dea_custRow);
  2946. return rowtbl_dea_custRow;
  2947. }
  2948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2950. public tbl_dea_custRow FindByid(int id) {
  2951. return ((tbl_dea_custRow)(this.Rows.Find(new object[] {
  2952. id})));
  2953. }
  2954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2956. public override global::System.Data.DataTable Clone() {
  2957. tbl_dea_custDataTable cln = ((tbl_dea_custDataTable)(base.Clone()));
  2958. cln.InitVars();
  2959. return cln;
  2960. }
  2961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2963. protected override global::System.Data.DataTable CreateInstance() {
  2964. return new tbl_dea_custDataTable();
  2965. }
  2966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2968. internal void InitVars() {
  2969. this.columnid = base.Columns["id"];
  2970. this.columntype = base.Columns["type"];
  2971. this.columnname = base.Columns["name"];
  2972. this.columnemail = base.Columns["email"];
  2973. this.columncontact = base.Columns["contact"];
  2974. this.columnaddress = base.Columns["address"];
  2975. this.columnadded_date = base.Columns["added_date"];
  2976. this.columnadded_by = base.Columns["added_by"];
  2977. }
  2978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2980. private void InitClass() {
  2981. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  2982. base.Columns.Add(this.columnid);
  2983. this.columntype = new global::System.Data.DataColumn("type", typeof(string), null, global::System.Data.MappingType.Element);
  2984. base.Columns.Add(this.columntype);
  2985. this.columnname = new global::System.Data.DataColumn("name", typeof(string), null, global::System.Data.MappingType.Element);
  2986. base.Columns.Add(this.columnname);
  2987. this.columnemail = new global::System.Data.DataColumn("email", typeof(string), null, global::System.Data.MappingType.Element);
  2988. base.Columns.Add(this.columnemail);
  2989. this.columncontact = new global::System.Data.DataColumn("contact", typeof(string), null, global::System.Data.MappingType.Element);
  2990. base.Columns.Add(this.columncontact);
  2991. this.columnaddress = new global::System.Data.DataColumn("address", typeof(string), null, global::System.Data.MappingType.Element);
  2992. base.Columns.Add(this.columnaddress);
  2993. this.columnadded_date = new global::System.Data.DataColumn("added_date", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2994. base.Columns.Add(this.columnadded_date);
  2995. this.columnadded_by = new global::System.Data.DataColumn("added_by", typeof(int), null, global::System.Data.MappingType.Element);
  2996. base.Columns.Add(this.columnadded_by);
  2997. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2998. this.columnid}, true));
  2999. this.columnid.AutoIncrement = true;
  3000. this.columnid.AutoIncrementSeed = -1;
  3001. this.columnid.AutoIncrementStep = -1;
  3002. this.columnid.AllowDBNull = false;
  3003. this.columnid.ReadOnly = true;
  3004. this.columnid.Unique = true;
  3005. this.columntype.MaxLength = 50;
  3006. this.columnname.MaxLength = 150;
  3007. this.columnemail.MaxLength = 150;
  3008. this.columncontact.MaxLength = 15;
  3009. this.columnaddress.MaxLength = 2147483647;
  3010. }
  3011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3013. public tbl_dea_custRow Newtbl_dea_custRow() {
  3014. return ((tbl_dea_custRow)(this.NewRow()));
  3015. }
  3016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3018. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3019. return new tbl_dea_custRow(builder);
  3020. }
  3021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3023. protected override global::System.Type GetRowType() {
  3024. return typeof(tbl_dea_custRow);
  3025. }
  3026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3028. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3029. base.OnRowChanged(e);
  3030. if ((this.tbl_dea_custRowChanged != null)) {
  3031. this.tbl_dea_custRowChanged(this, new tbl_dea_custRowChangeEvent(((tbl_dea_custRow)(e.Row)), e.Action));
  3032. }
  3033. }
  3034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3036. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3037. base.OnRowChanging(e);
  3038. if ((this.tbl_dea_custRowChanging != null)) {
  3039. this.tbl_dea_custRowChanging(this, new tbl_dea_custRowChangeEvent(((tbl_dea_custRow)(e.Row)), e.Action));
  3040. }
  3041. }
  3042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3044. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3045. base.OnRowDeleted(e);
  3046. if ((this.tbl_dea_custRowDeleted != null)) {
  3047. this.tbl_dea_custRowDeleted(this, new tbl_dea_custRowChangeEvent(((tbl_dea_custRow)(e.Row)), e.Action));
  3048. }
  3049. }
  3050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3052. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3053. base.OnRowDeleting(e);
  3054. if ((this.tbl_dea_custRowDeleting != null)) {
  3055. this.tbl_dea_custRowDeleting(this, new tbl_dea_custRowChangeEvent(((tbl_dea_custRow)(e.Row)), e.Action));
  3056. }
  3057. }
  3058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3060. public void Removetbl_dea_custRow(tbl_dea_custRow row) {
  3061. this.Rows.Remove(row);
  3062. }
  3063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3065. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3066. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3067. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3068. DataSet1 ds = new DataSet1();
  3069. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3070. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3071. any1.MinOccurs = new decimal(0);
  3072. any1.MaxOccurs = decimal.MaxValue;
  3073. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3074. sequence.Items.Add(any1);
  3075. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3076. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3077. any2.MinOccurs = new decimal(1);
  3078. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3079. sequence.Items.Add(any2);
  3080. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3081. attribute1.Name = "namespace";
  3082. attribute1.FixedValue = ds.Namespace;
  3083. type.Attributes.Add(attribute1);
  3084. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3085. attribute2.Name = "tableTypeName";
  3086. attribute2.FixedValue = "tbl_dea_custDataTable";
  3087. type.Attributes.Add(attribute2);
  3088. type.Particle = sequence;
  3089. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3090. if (xs.Contains(dsSchema.TargetNamespace)) {
  3091. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3092. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3093. try {
  3094. global::System.Xml.Schema.XmlSchema schema = null;
  3095. dsSchema.Write(s1);
  3096. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3097. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3098. s2.SetLength(0);
  3099. schema.Write(s2);
  3100. if ((s1.Length == s2.Length)) {
  3101. s1.Position = 0;
  3102. s2.Position = 0;
  3103. for (; ((s1.Position != s1.Length)
  3104. && (s1.ReadByte() == s2.ReadByte())); ) {
  3105. ;
  3106. }
  3107. if ((s1.Position == s1.Length)) {
  3108. return type;
  3109. }
  3110. }
  3111. }
  3112. }
  3113. finally {
  3114. if ((s1 != null)) {
  3115. s1.Close();
  3116. }
  3117. if ((s2 != null)) {
  3118. s2.Close();
  3119. }
  3120. }
  3121. }
  3122. xs.Add(dsSchema);
  3123. return type;
  3124. }
  3125. }
  3126. /// <summary>
  3127. ///Represents the strongly named DataTable class.
  3128. ///</summary>
  3129. [global::System.Serializable()]
  3130. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3131. public partial class tbl_productsDataTable : global::System.Data.TypedTableBase<tbl_productsRow> {
  3132. private global::System.Data.DataColumn columnid;
  3133. private global::System.Data.DataColumn columnname;
  3134. private global::System.Data.DataColumn columncategory;
  3135. private global::System.Data.DataColumn columndescription;
  3136. private global::System.Data.DataColumn columnrate;
  3137. private global::System.Data.DataColumn columnqty;
  3138. private global::System.Data.DataColumn columnadded_date;
  3139. private global::System.Data.DataColumn columnadded_by;
  3140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3142. public tbl_productsDataTable() {
  3143. this.TableName = "tbl_products";
  3144. this.BeginInit();
  3145. this.InitClass();
  3146. this.EndInit();
  3147. }
  3148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3150. internal tbl_productsDataTable(global::System.Data.DataTable table) {
  3151. this.TableName = table.TableName;
  3152. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3153. this.CaseSensitive = table.CaseSensitive;
  3154. }
  3155. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3156. this.Locale = table.Locale;
  3157. }
  3158. if ((table.Namespace != table.DataSet.Namespace)) {
  3159. this.Namespace = table.Namespace;
  3160. }
  3161. this.Prefix = table.Prefix;
  3162. this.MinimumCapacity = table.MinimumCapacity;
  3163. }
  3164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3166. protected tbl_productsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3167. base(info, context) {
  3168. this.InitVars();
  3169. }
  3170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3172. public global::System.Data.DataColumn idColumn {
  3173. get {
  3174. return this.columnid;
  3175. }
  3176. }
  3177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3179. public global::System.Data.DataColumn nameColumn {
  3180. get {
  3181. return this.columnname;
  3182. }
  3183. }
  3184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3186. public global::System.Data.DataColumn categoryColumn {
  3187. get {
  3188. return this.columncategory;
  3189. }
  3190. }
  3191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3193. public global::System.Data.DataColumn descriptionColumn {
  3194. get {
  3195. return this.columndescription;
  3196. }
  3197. }
  3198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3200. public global::System.Data.DataColumn rateColumn {
  3201. get {
  3202. return this.columnrate;
  3203. }
  3204. }
  3205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3207. public global::System.Data.DataColumn qtyColumn {
  3208. get {
  3209. return this.columnqty;
  3210. }
  3211. }
  3212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3214. public global::System.Data.DataColumn added_dateColumn {
  3215. get {
  3216. return this.columnadded_date;
  3217. }
  3218. }
  3219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3221. public global::System.Data.DataColumn added_byColumn {
  3222. get {
  3223. return this.columnadded_by;
  3224. }
  3225. }
  3226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3228. [global::System.ComponentModel.Browsable(false)]
  3229. public int Count {
  3230. get {
  3231. return this.Rows.Count;
  3232. }
  3233. }
  3234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3236. public tbl_productsRow this[int index] {
  3237. get {
  3238. return ((tbl_productsRow)(this.Rows[index]));
  3239. }
  3240. }
  3241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3242. public event tbl_productsRowChangeEventHandler tbl_productsRowChanging;
  3243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3244. public event tbl_productsRowChangeEventHandler tbl_productsRowChanged;
  3245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3246. public event tbl_productsRowChangeEventHandler tbl_productsRowDeleting;
  3247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3248. public event tbl_productsRowChangeEventHandler tbl_productsRowDeleted;
  3249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3251. public void Addtbl_productsRow(tbl_productsRow row) {
  3252. this.Rows.Add(row);
  3253. }
  3254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3256. public tbl_productsRow Addtbl_productsRow(string name, string category, string description, decimal rate, decimal qty, System.DateTime added_date, int added_by) {
  3257. tbl_productsRow rowtbl_productsRow = ((tbl_productsRow)(this.NewRow()));
  3258. object[] columnValuesArray = new object[] {
  3259. null,
  3260. name,
  3261. category,
  3262. description,
  3263. rate,
  3264. qty,
  3265. added_date,
  3266. added_by};
  3267. rowtbl_productsRow.ItemArray = columnValuesArray;
  3268. this.Rows.Add(rowtbl_productsRow);
  3269. return rowtbl_productsRow;
  3270. }
  3271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3273. public tbl_productsRow FindByid(int id) {
  3274. return ((tbl_productsRow)(this.Rows.Find(new object[] {
  3275. id})));
  3276. }
  3277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3279. public override global::System.Data.DataTable Clone() {
  3280. tbl_productsDataTable cln = ((tbl_productsDataTable)(base.Clone()));
  3281. cln.InitVars();
  3282. return cln;
  3283. }
  3284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3286. protected override global::System.Data.DataTable CreateInstance() {
  3287. return new tbl_productsDataTable();
  3288. }
  3289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3291. internal void InitVars() {
  3292. this.columnid = base.Columns["id"];
  3293. this.columnname = base.Columns["name"];
  3294. this.columncategory = base.Columns["category"];
  3295. this.columndescription = base.Columns["description"];
  3296. this.columnrate = base.Columns["rate"];
  3297. this.columnqty = base.Columns["qty"];
  3298. this.columnadded_date = base.Columns["added_date"];
  3299. this.columnadded_by = base.Columns["added_by"];
  3300. }
  3301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3303. private void InitClass() {
  3304. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  3305. base.Columns.Add(this.columnid);
  3306. this.columnname = new global::System.Data.DataColumn("name", typeof(string), null, global::System.Data.MappingType.Element);
  3307. base.Columns.Add(this.columnname);
  3308. this.columncategory = new global::System.Data.DataColumn("category", typeof(string), null, global::System.Data.MappingType.Element);
  3309. base.Columns.Add(this.columncategory);
  3310. this.columndescription = new global::System.Data.DataColumn("description", typeof(string), null, global::System.Data.MappingType.Element);
  3311. base.Columns.Add(this.columndescription);
  3312. this.columnrate = new global::System.Data.DataColumn("rate", typeof(decimal), null, global::System.Data.MappingType.Element);
  3313. base.Columns.Add(this.columnrate);
  3314. this.columnqty = new global::System.Data.DataColumn("qty", typeof(decimal), null, global::System.Data.MappingType.Element);
  3315. base.Columns.Add(this.columnqty);
  3316. this.columnadded_date = new global::System.Data.DataColumn("added_date", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3317. base.Columns.Add(this.columnadded_date);
  3318. this.columnadded_by = new global::System.Data.DataColumn("added_by", typeof(int), null, global::System.Data.MappingType.Element);
  3319. base.Columns.Add(this.columnadded_by);
  3320. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3321. this.columnid}, true));
  3322. this.columnid.AutoIncrement = true;
  3323. this.columnid.AutoIncrementSeed = -1;
  3324. this.columnid.AutoIncrementStep = -1;
  3325. this.columnid.AllowDBNull = false;
  3326. this.columnid.ReadOnly = true;
  3327. this.columnid.Unique = true;
  3328. this.columnname.MaxLength = 50;
  3329. this.columncategory.MaxLength = 50;
  3330. this.columndescription.MaxLength = 2147483647;
  3331. }
  3332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3334. public tbl_productsRow Newtbl_productsRow() {
  3335. return ((tbl_productsRow)(this.NewRow()));
  3336. }
  3337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3339. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3340. return new tbl_productsRow(builder);
  3341. }
  3342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3344. protected override global::System.Type GetRowType() {
  3345. return typeof(tbl_productsRow);
  3346. }
  3347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3349. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3350. base.OnRowChanged(e);
  3351. if ((this.tbl_productsRowChanged != null)) {
  3352. this.tbl_productsRowChanged(this, new tbl_productsRowChangeEvent(((tbl_productsRow)(e.Row)), e.Action));
  3353. }
  3354. }
  3355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3357. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3358. base.OnRowChanging(e);
  3359. if ((this.tbl_productsRowChanging != null)) {
  3360. this.tbl_productsRowChanging(this, new tbl_productsRowChangeEvent(((tbl_productsRow)(e.Row)), e.Action));
  3361. }
  3362. }
  3363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3365. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3366. base.OnRowDeleted(e);
  3367. if ((this.tbl_productsRowDeleted != null)) {
  3368. this.tbl_productsRowDeleted(this, new tbl_productsRowChangeEvent(((tbl_productsRow)(e.Row)), e.Action));
  3369. }
  3370. }
  3371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3373. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3374. base.OnRowDeleting(e);
  3375. if ((this.tbl_productsRowDeleting != null)) {
  3376. this.tbl_productsRowDeleting(this, new tbl_productsRowChangeEvent(((tbl_productsRow)(e.Row)), e.Action));
  3377. }
  3378. }
  3379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3381. public void Removetbl_productsRow(tbl_productsRow row) {
  3382. this.Rows.Remove(row);
  3383. }
  3384. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3385. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3386. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3387. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3388. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3389. DataSet1 ds = new DataSet1();
  3390. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3391. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3392. any1.MinOccurs = new decimal(0);
  3393. any1.MaxOccurs = decimal.MaxValue;
  3394. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3395. sequence.Items.Add(any1);
  3396. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3397. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3398. any2.MinOccurs = new decimal(1);
  3399. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3400. sequence.Items.Add(any2);
  3401. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3402. attribute1.Name = "namespace";
  3403. attribute1.FixedValue = ds.Namespace;
  3404. type.Attributes.Add(attribute1);
  3405. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3406. attribute2.Name = "tableTypeName";
  3407. attribute2.FixedValue = "tbl_productsDataTable";
  3408. type.Attributes.Add(attribute2);
  3409. type.Particle = sequence;
  3410. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3411. if (xs.Contains(dsSchema.TargetNamespace)) {
  3412. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3413. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3414. try {
  3415. global::System.Xml.Schema.XmlSchema schema = null;
  3416. dsSchema.Write(s1);
  3417. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3418. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3419. s2.SetLength(0);
  3420. schema.Write(s2);
  3421. if ((s1.Length == s2.Length)) {
  3422. s1.Position = 0;
  3423. s2.Position = 0;
  3424. for (; ((s1.Position != s1.Length)
  3425. && (s1.ReadByte() == s2.ReadByte())); ) {
  3426. ;
  3427. }
  3428. if ((s1.Position == s1.Length)) {
  3429. return type;
  3430. }
  3431. }
  3432. }
  3433. }
  3434. finally {
  3435. if ((s1 != null)) {
  3436. s1.Close();
  3437. }
  3438. if ((s2 != null)) {
  3439. s2.Close();
  3440. }
  3441. }
  3442. }
  3443. xs.Add(dsSchema);
  3444. return type;
  3445. }
  3446. }
  3447. /// <summary>
  3448. ///Represents the strongly named DataTable class.
  3449. ///</summary>
  3450. [global::System.Serializable()]
  3451. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3452. public partial class tbl_transaction_detailDataTable : global::System.Data.TypedTableBase<tbl_transaction_detailRow> {
  3453. private global::System.Data.DataColumn columnid;
  3454. private global::System.Data.DataColumn columnproduct_id;
  3455. private global::System.Data.DataColumn columnrate;
  3456. private global::System.Data.DataColumn columnqty;
  3457. private global::System.Data.DataColumn columntotal;
  3458. private global::System.Data.DataColumn columndea_cust_id;
  3459. private global::System.Data.DataColumn columnadded_date;
  3460. private global::System.Data.DataColumn columnadded_by;
  3461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3463. public tbl_transaction_detailDataTable() {
  3464. this.TableName = "tbl_transaction_detail";
  3465. this.BeginInit();
  3466. this.InitClass();
  3467. this.EndInit();
  3468. }
  3469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3471. internal tbl_transaction_detailDataTable(global::System.Data.DataTable table) {
  3472. this.TableName = table.TableName;
  3473. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3474. this.CaseSensitive = table.CaseSensitive;
  3475. }
  3476. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3477. this.Locale = table.Locale;
  3478. }
  3479. if ((table.Namespace != table.DataSet.Namespace)) {
  3480. this.Namespace = table.Namespace;
  3481. }
  3482. this.Prefix = table.Prefix;
  3483. this.MinimumCapacity = table.MinimumCapacity;
  3484. }
  3485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3487. protected tbl_transaction_detailDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3488. base(info, context) {
  3489. this.InitVars();
  3490. }
  3491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3493. public global::System.Data.DataColumn idColumn {
  3494. get {
  3495. return this.columnid;
  3496. }
  3497. }
  3498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3500. public global::System.Data.DataColumn product_idColumn {
  3501. get {
  3502. return this.columnproduct_id;
  3503. }
  3504. }
  3505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3507. public global::System.Data.DataColumn rateColumn {
  3508. get {
  3509. return this.columnrate;
  3510. }
  3511. }
  3512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3514. public global::System.Data.DataColumn qtyColumn {
  3515. get {
  3516. return this.columnqty;
  3517. }
  3518. }
  3519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3521. public global::System.Data.DataColumn totalColumn {
  3522. get {
  3523. return this.columntotal;
  3524. }
  3525. }
  3526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3528. public global::System.Data.DataColumn dea_cust_idColumn {
  3529. get {
  3530. return this.columndea_cust_id;
  3531. }
  3532. }
  3533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3535. public global::System.Data.DataColumn added_dateColumn {
  3536. get {
  3537. return this.columnadded_date;
  3538. }
  3539. }
  3540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3542. public global::System.Data.DataColumn added_byColumn {
  3543. get {
  3544. return this.columnadded_by;
  3545. }
  3546. }
  3547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3549. [global::System.ComponentModel.Browsable(false)]
  3550. public int Count {
  3551. get {
  3552. return this.Rows.Count;
  3553. }
  3554. }
  3555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3557. public tbl_transaction_detailRow this[int index] {
  3558. get {
  3559. return ((tbl_transaction_detailRow)(this.Rows[index]));
  3560. }
  3561. }
  3562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3563. public event tbl_transaction_detailRowChangeEventHandler tbl_transaction_detailRowChanging;
  3564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3565. public event tbl_transaction_detailRowChangeEventHandler tbl_transaction_detailRowChanged;
  3566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3567. public event tbl_transaction_detailRowChangeEventHandler tbl_transaction_detailRowDeleting;
  3568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3569. public event tbl_transaction_detailRowChangeEventHandler tbl_transaction_detailRowDeleted;
  3570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3572. public void Addtbl_transaction_detailRow(tbl_transaction_detailRow row) {
  3573. this.Rows.Add(row);
  3574. }
  3575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3577. public tbl_transaction_detailRow Addtbl_transaction_detailRow(int product_id, decimal rate, decimal qty, decimal total, int dea_cust_id, System.DateTime added_date, int added_by) {
  3578. tbl_transaction_detailRow rowtbl_transaction_detailRow = ((tbl_transaction_detailRow)(this.NewRow()));
  3579. object[] columnValuesArray = new object[] {
  3580. null,
  3581. product_id,
  3582. rate,
  3583. qty,
  3584. total,
  3585. dea_cust_id,
  3586. added_date,
  3587. added_by};
  3588. rowtbl_transaction_detailRow.ItemArray = columnValuesArray;
  3589. this.Rows.Add(rowtbl_transaction_detailRow);
  3590. return rowtbl_transaction_detailRow;
  3591. }
  3592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3594. public tbl_transaction_detailRow FindByid(int id) {
  3595. return ((tbl_transaction_detailRow)(this.Rows.Find(new object[] {
  3596. id})));
  3597. }
  3598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3600. public override global::System.Data.DataTable Clone() {
  3601. tbl_transaction_detailDataTable cln = ((tbl_transaction_detailDataTable)(base.Clone()));
  3602. cln.InitVars();
  3603. return cln;
  3604. }
  3605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3607. protected override global::System.Data.DataTable CreateInstance() {
  3608. return new tbl_transaction_detailDataTable();
  3609. }
  3610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3612. internal void InitVars() {
  3613. this.columnid = base.Columns["id"];
  3614. this.columnproduct_id = base.Columns["product_id"];
  3615. this.columnrate = base.Columns["rate"];
  3616. this.columnqty = base.Columns["qty"];
  3617. this.columntotal = base.Columns["total"];
  3618. this.columndea_cust_id = base.Columns["dea_cust_id"];
  3619. this.columnadded_date = base.Columns["added_date"];
  3620. this.columnadded_by = base.Columns["added_by"];
  3621. }
  3622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3624. private void InitClass() {
  3625. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  3626. base.Columns.Add(this.columnid);
  3627. this.columnproduct_id = new global::System.Data.DataColumn("product_id", typeof(int), null, global::System.Data.MappingType.Element);
  3628. base.Columns.Add(this.columnproduct_id);
  3629. this.columnrate = new global::System.Data.DataColumn("rate", typeof(decimal), null, global::System.Data.MappingType.Element);
  3630. base.Columns.Add(this.columnrate);
  3631. this.columnqty = new global::System.Data.DataColumn("qty", typeof(decimal), null, global::System.Data.MappingType.Element);
  3632. base.Columns.Add(this.columnqty);
  3633. this.columntotal = new global::System.Data.DataColumn("total", typeof(decimal), null, global::System.Data.MappingType.Element);
  3634. base.Columns.Add(this.columntotal);
  3635. this.columndea_cust_id = new global::System.Data.DataColumn("dea_cust_id", typeof(int), null, global::System.Data.MappingType.Element);
  3636. base.Columns.Add(this.columndea_cust_id);
  3637. this.columnadded_date = new global::System.Data.DataColumn("added_date", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3638. base.Columns.Add(this.columnadded_date);
  3639. this.columnadded_by = new global::System.Data.DataColumn("added_by", typeof(int), null, global::System.Data.MappingType.Element);
  3640. base.Columns.Add(this.columnadded_by);
  3641. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3642. this.columnid}, true));
  3643. this.columnid.AutoIncrement = true;
  3644. this.columnid.AutoIncrementSeed = -1;
  3645. this.columnid.AutoIncrementStep = -1;
  3646. this.columnid.AllowDBNull = false;
  3647. this.columnid.ReadOnly = true;
  3648. this.columnid.Unique = true;
  3649. }
  3650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3652. public tbl_transaction_detailRow Newtbl_transaction_detailRow() {
  3653. return ((tbl_transaction_detailRow)(this.NewRow()));
  3654. }
  3655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3657. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3658. return new tbl_transaction_detailRow(builder);
  3659. }
  3660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3662. protected override global::System.Type GetRowType() {
  3663. return typeof(tbl_transaction_detailRow);
  3664. }
  3665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3667. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3668. base.OnRowChanged(e);
  3669. if ((this.tbl_transaction_detailRowChanged != null)) {
  3670. this.tbl_transaction_detailRowChanged(this, new tbl_transaction_detailRowChangeEvent(((tbl_transaction_detailRow)(e.Row)), e.Action));
  3671. }
  3672. }
  3673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3674. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3675. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3676. base.OnRowChanging(e);
  3677. if ((this.tbl_transaction_detailRowChanging != null)) {
  3678. this.tbl_transaction_detailRowChanging(this, new tbl_transaction_detailRowChangeEvent(((tbl_transaction_detailRow)(e.Row)), e.Action));
  3679. }
  3680. }
  3681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3683. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3684. base.OnRowDeleted(e);
  3685. if ((this.tbl_transaction_detailRowDeleted != null)) {
  3686. this.tbl_transaction_detailRowDeleted(this, new tbl_transaction_detailRowChangeEvent(((tbl_transaction_detailRow)(e.Row)), e.Action));
  3687. }
  3688. }
  3689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3691. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3692. base.OnRowDeleting(e);
  3693. if ((this.tbl_transaction_detailRowDeleting != null)) {
  3694. this.tbl_transaction_detailRowDeleting(this, new tbl_transaction_detailRowChangeEvent(((tbl_transaction_detailRow)(e.Row)), e.Action));
  3695. }
  3696. }
  3697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3699. public void Removetbl_transaction_detailRow(tbl_transaction_detailRow row) {
  3700. this.Rows.Remove(row);
  3701. }
  3702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3704. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3705. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3706. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3707. DataSet1 ds = new DataSet1();
  3708. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3709. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3710. any1.MinOccurs = new decimal(0);
  3711. any1.MaxOccurs = decimal.MaxValue;
  3712. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3713. sequence.Items.Add(any1);
  3714. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3715. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3716. any2.MinOccurs = new decimal(1);
  3717. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3718. sequence.Items.Add(any2);
  3719. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3720. attribute1.Name = "namespace";
  3721. attribute1.FixedValue = ds.Namespace;
  3722. type.Attributes.Add(attribute1);
  3723. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3724. attribute2.Name = "tableTypeName";
  3725. attribute2.FixedValue = "tbl_transaction_detailDataTable";
  3726. type.Attributes.Add(attribute2);
  3727. type.Particle = sequence;
  3728. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3729. if (xs.Contains(dsSchema.TargetNamespace)) {
  3730. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3731. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3732. try {
  3733. global::System.Xml.Schema.XmlSchema schema = null;
  3734. dsSchema.Write(s1);
  3735. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3736. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3737. s2.SetLength(0);
  3738. schema.Write(s2);
  3739. if ((s1.Length == s2.Length)) {
  3740. s1.Position = 0;
  3741. s2.Position = 0;
  3742. for (; ((s1.Position != s1.Length)
  3743. && (s1.ReadByte() == s2.ReadByte())); ) {
  3744. ;
  3745. }
  3746. if ((s1.Position == s1.Length)) {
  3747. return type;
  3748. }
  3749. }
  3750. }
  3751. }
  3752. finally {
  3753. if ((s1 != null)) {
  3754. s1.Close();
  3755. }
  3756. if ((s2 != null)) {
  3757. s2.Close();
  3758. }
  3759. }
  3760. }
  3761. xs.Add(dsSchema);
  3762. return type;
  3763. }
  3764. }
  3765. /// <summary>
  3766. ///Represents the strongly named DataTable class.
  3767. ///</summary>
  3768. [global::System.Serializable()]
  3769. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3770. public partial class tbl_transactionsDataTable : global::System.Data.TypedTableBase<tbl_transactionsRow> {
  3771. private global::System.Data.DataColumn columnid;
  3772. private global::System.Data.DataColumn columntype;
  3773. private global::System.Data.DataColumn columndea_cust_id;
  3774. private global::System.Data.DataColumn columngrandTotal;
  3775. private global::System.Data.DataColumn columntransaction_date;
  3776. private global::System.Data.DataColumn columntax;
  3777. private global::System.Data.DataColumn columndiscount;
  3778. private global::System.Data.DataColumn columnadded_by;
  3779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3781. public tbl_transactionsDataTable() {
  3782. this.TableName = "tbl_transactions";
  3783. this.BeginInit();
  3784. this.InitClass();
  3785. this.EndInit();
  3786. }
  3787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3789. internal tbl_transactionsDataTable(global::System.Data.DataTable table) {
  3790. this.TableName = table.TableName;
  3791. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3792. this.CaseSensitive = table.CaseSensitive;
  3793. }
  3794. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3795. this.Locale = table.Locale;
  3796. }
  3797. if ((table.Namespace != table.DataSet.Namespace)) {
  3798. this.Namespace = table.Namespace;
  3799. }
  3800. this.Prefix = table.Prefix;
  3801. this.MinimumCapacity = table.MinimumCapacity;
  3802. }
  3803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3805. protected tbl_transactionsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3806. base(info, context) {
  3807. this.InitVars();
  3808. }
  3809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3811. public global::System.Data.DataColumn idColumn {
  3812. get {
  3813. return this.columnid;
  3814. }
  3815. }
  3816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3818. public global::System.Data.DataColumn typeColumn {
  3819. get {
  3820. return this.columntype;
  3821. }
  3822. }
  3823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3825. public global::System.Data.DataColumn dea_cust_idColumn {
  3826. get {
  3827. return this.columndea_cust_id;
  3828. }
  3829. }
  3830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3832. public global::System.Data.DataColumn grandTotalColumn {
  3833. get {
  3834. return this.columngrandTotal;
  3835. }
  3836. }
  3837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3839. public global::System.Data.DataColumn transaction_dateColumn {
  3840. get {
  3841. return this.columntransaction_date;
  3842. }
  3843. }
  3844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3846. public global::System.Data.DataColumn taxColumn {
  3847. get {
  3848. return this.columntax;
  3849. }
  3850. }
  3851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3853. public global::System.Data.DataColumn discountColumn {
  3854. get {
  3855. return this.columndiscount;
  3856. }
  3857. }
  3858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3860. public global::System.Data.DataColumn added_byColumn {
  3861. get {
  3862. return this.columnadded_by;
  3863. }
  3864. }
  3865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3867. [global::System.ComponentModel.Browsable(false)]
  3868. public int Count {
  3869. get {
  3870. return this.Rows.Count;
  3871. }
  3872. }
  3873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3875. public tbl_transactionsRow this[int index] {
  3876. get {
  3877. return ((tbl_transactionsRow)(this.Rows[index]));
  3878. }
  3879. }
  3880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3881. public event tbl_transactionsRowChangeEventHandler tbl_transactionsRowChanging;
  3882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3883. public event tbl_transactionsRowChangeEventHandler tbl_transactionsRowChanged;
  3884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3885. public event tbl_transactionsRowChangeEventHandler tbl_transactionsRowDeleting;
  3886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3887. public event tbl_transactionsRowChangeEventHandler tbl_transactionsRowDeleted;
  3888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3890. public void Addtbl_transactionsRow(tbl_transactionsRow row) {
  3891. this.Rows.Add(row);
  3892. }
  3893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3895. public tbl_transactionsRow Addtbl_transactionsRow(string type, int dea_cust_id, decimal grandTotal, System.DateTime transaction_date, decimal tax, decimal discount, int added_by) {
  3896. tbl_transactionsRow rowtbl_transactionsRow = ((tbl_transactionsRow)(this.NewRow()));
  3897. object[] columnValuesArray = new object[] {
  3898. null,
  3899. type,
  3900. dea_cust_id,
  3901. grandTotal,
  3902. transaction_date,
  3903. tax,
  3904. discount,
  3905. added_by};
  3906. rowtbl_transactionsRow.ItemArray = columnValuesArray;
  3907. this.Rows.Add(rowtbl_transactionsRow);
  3908. return rowtbl_transactionsRow;
  3909. }
  3910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3912. public tbl_transactionsRow FindByid(int id) {
  3913. return ((tbl_transactionsRow)(this.Rows.Find(new object[] {
  3914. id})));
  3915. }
  3916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3918. public override global::System.Data.DataTable Clone() {
  3919. tbl_transactionsDataTable cln = ((tbl_transactionsDataTable)(base.Clone()));
  3920. cln.InitVars();
  3921. return cln;
  3922. }
  3923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3925. protected override global::System.Data.DataTable CreateInstance() {
  3926. return new tbl_transactionsDataTable();
  3927. }
  3928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3930. internal void InitVars() {
  3931. this.columnid = base.Columns["id"];
  3932. this.columntype = base.Columns["type"];
  3933. this.columndea_cust_id = base.Columns["dea_cust_id"];
  3934. this.columngrandTotal = base.Columns["grandTotal"];
  3935. this.columntransaction_date = base.Columns["transaction_date"];
  3936. this.columntax = base.Columns["tax"];
  3937. this.columndiscount = base.Columns["discount"];
  3938. this.columnadded_by = base.Columns["added_by"];
  3939. }
  3940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3942. private void InitClass() {
  3943. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  3944. base.Columns.Add(this.columnid);
  3945. this.columntype = new global::System.Data.DataColumn("type", typeof(string), null, global::System.Data.MappingType.Element);
  3946. base.Columns.Add(this.columntype);
  3947. this.columndea_cust_id = new global::System.Data.DataColumn("dea_cust_id", typeof(int), null, global::System.Data.MappingType.Element);
  3948. base.Columns.Add(this.columndea_cust_id);
  3949. this.columngrandTotal = new global::System.Data.DataColumn("grandTotal", typeof(decimal), null, global::System.Data.MappingType.Element);
  3950. base.Columns.Add(this.columngrandTotal);
  3951. this.columntransaction_date = new global::System.Data.DataColumn("transaction_date", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  3952. base.Columns.Add(this.columntransaction_date);
  3953. this.columntax = new global::System.Data.DataColumn("tax", typeof(decimal), null, global::System.Data.MappingType.Element);
  3954. base.Columns.Add(this.columntax);
  3955. this.columndiscount = new global::System.Data.DataColumn("discount", typeof(decimal), null, global::System.Data.MappingType.Element);
  3956. base.Columns.Add(this.columndiscount);
  3957. this.columnadded_by = new global::System.Data.DataColumn("added_by", typeof(int), null, global::System.Data.MappingType.Element);
  3958. base.Columns.Add(this.columnadded_by);
  3959. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3960. this.columnid}, true));
  3961. this.columnid.AutoIncrement = true;
  3962. this.columnid.AutoIncrementSeed = -1;
  3963. this.columnid.AutoIncrementStep = -1;
  3964. this.columnid.AllowDBNull = false;
  3965. this.columnid.ReadOnly = true;
  3966. this.columnid.Unique = true;
  3967. this.columntype.MaxLength = 50;
  3968. }
  3969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3971. public tbl_transactionsRow Newtbl_transactionsRow() {
  3972. return ((tbl_transactionsRow)(this.NewRow()));
  3973. }
  3974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3976. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3977. return new tbl_transactionsRow(builder);
  3978. }
  3979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3981. protected override global::System.Type GetRowType() {
  3982. return typeof(tbl_transactionsRow);
  3983. }
  3984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3986. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3987. base.OnRowChanged(e);
  3988. if ((this.tbl_transactionsRowChanged != null)) {
  3989. this.tbl_transactionsRowChanged(this, new tbl_transactionsRowChangeEvent(((tbl_transactionsRow)(e.Row)), e.Action));
  3990. }
  3991. }
  3992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3994. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3995. base.OnRowChanging(e);
  3996. if ((this.tbl_transactionsRowChanging != null)) {
  3997. this.tbl_transactionsRowChanging(this, new tbl_transactionsRowChangeEvent(((tbl_transactionsRow)(e.Row)), e.Action));
  3998. }
  3999. }
  4000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4002. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4003. base.OnRowDeleted(e);
  4004. if ((this.tbl_transactionsRowDeleted != null)) {
  4005. this.tbl_transactionsRowDeleted(this, new tbl_transactionsRowChangeEvent(((tbl_transactionsRow)(e.Row)), e.Action));
  4006. }
  4007. }
  4008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4010. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4011. base.OnRowDeleting(e);
  4012. if ((this.tbl_transactionsRowDeleting != null)) {
  4013. this.tbl_transactionsRowDeleting(this, new tbl_transactionsRowChangeEvent(((tbl_transactionsRow)(e.Row)), e.Action));
  4014. }
  4015. }
  4016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4018. public void Removetbl_transactionsRow(tbl_transactionsRow row) {
  4019. this.Rows.Remove(row);
  4020. }
  4021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4023. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4024. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4025. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4026. DataSet1 ds = new DataSet1();
  4027. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4028. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4029. any1.MinOccurs = new decimal(0);
  4030. any1.MaxOccurs = decimal.MaxValue;
  4031. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4032. sequence.Items.Add(any1);
  4033. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4034. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4035. any2.MinOccurs = new decimal(1);
  4036. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4037. sequence.Items.Add(any2);
  4038. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4039. attribute1.Name = "namespace";
  4040. attribute1.FixedValue = ds.Namespace;
  4041. type.Attributes.Add(attribute1);
  4042. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4043. attribute2.Name = "tableTypeName";
  4044. attribute2.FixedValue = "tbl_transactionsDataTable";
  4045. type.Attributes.Add(attribute2);
  4046. type.Particle = sequence;
  4047. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4048. if (xs.Contains(dsSchema.TargetNamespace)) {
  4049. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4050. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4051. try {
  4052. global::System.Xml.Schema.XmlSchema schema = null;
  4053. dsSchema.Write(s1);
  4054. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4055. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4056. s2.SetLength(0);
  4057. schema.Write(s2);
  4058. if ((s1.Length == s2.Length)) {
  4059. s1.Position = 0;
  4060. s2.Position = 0;
  4061. for (; ((s1.Position != s1.Length)
  4062. && (s1.ReadByte() == s2.ReadByte())); ) {
  4063. ;
  4064. }
  4065. if ((s1.Position == s1.Length)) {
  4066. return type;
  4067. }
  4068. }
  4069. }
  4070. }
  4071. finally {
  4072. if ((s1 != null)) {
  4073. s1.Close();
  4074. }
  4075. if ((s2 != null)) {
  4076. s2.Close();
  4077. }
  4078. }
  4079. }
  4080. xs.Add(dsSchema);
  4081. return type;
  4082. }
  4083. }
  4084. /// <summary>
  4085. ///Represents the strongly named DataTable class.
  4086. ///</summary>
  4087. [global::System.Serializable()]
  4088. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4089. public partial class tbl_usersDataTable : global::System.Data.TypedTableBase<tbl_usersRow> {
  4090. private global::System.Data.DataColumn columnid;
  4091. private global::System.Data.DataColumn columnfirst_name;
  4092. private global::System.Data.DataColumn columnlast_name;
  4093. private global::System.Data.DataColumn columnemail;
  4094. private global::System.Data.DataColumn columnusername;
  4095. private global::System.Data.DataColumn columnpassword;
  4096. private global::System.Data.DataColumn columncontact;
  4097. private global::System.Data.DataColumn columnaddress;
  4098. private global::System.Data.DataColumn columngender;
  4099. private global::System.Data.DataColumn columnuser_type;
  4100. private global::System.Data.DataColumn columnadded_date;
  4101. private global::System.Data.DataColumn columnadded_by;
  4102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4104. public tbl_usersDataTable() {
  4105. this.TableName = "tbl_users";
  4106. this.BeginInit();
  4107. this.InitClass();
  4108. this.EndInit();
  4109. }
  4110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4112. internal tbl_usersDataTable(global::System.Data.DataTable table) {
  4113. this.TableName = table.TableName;
  4114. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4115. this.CaseSensitive = table.CaseSensitive;
  4116. }
  4117. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4118. this.Locale = table.Locale;
  4119. }
  4120. if ((table.Namespace != table.DataSet.Namespace)) {
  4121. this.Namespace = table.Namespace;
  4122. }
  4123. this.Prefix = table.Prefix;
  4124. this.MinimumCapacity = table.MinimumCapacity;
  4125. }
  4126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4128. protected tbl_usersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4129. base(info, context) {
  4130. this.InitVars();
  4131. }
  4132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4134. public global::System.Data.DataColumn idColumn {
  4135. get {
  4136. return this.columnid;
  4137. }
  4138. }
  4139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4141. public global::System.Data.DataColumn first_nameColumn {
  4142. get {
  4143. return this.columnfirst_name;
  4144. }
  4145. }
  4146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4148. public global::System.Data.DataColumn last_nameColumn {
  4149. get {
  4150. return this.columnlast_name;
  4151. }
  4152. }
  4153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4155. public global::System.Data.DataColumn emailColumn {
  4156. get {
  4157. return this.columnemail;
  4158. }
  4159. }
  4160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4162. public global::System.Data.DataColumn usernameColumn {
  4163. get {
  4164. return this.columnusername;
  4165. }
  4166. }
  4167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4169. public global::System.Data.DataColumn passwordColumn {
  4170. get {
  4171. return this.columnpassword;
  4172. }
  4173. }
  4174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4176. public global::System.Data.DataColumn contactColumn {
  4177. get {
  4178. return this.columncontact;
  4179. }
  4180. }
  4181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4183. public global::System.Data.DataColumn addressColumn {
  4184. get {
  4185. return this.columnaddress;
  4186. }
  4187. }
  4188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4190. public global::System.Data.DataColumn genderColumn {
  4191. get {
  4192. return this.columngender;
  4193. }
  4194. }
  4195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4197. public global::System.Data.DataColumn user_typeColumn {
  4198. get {
  4199. return this.columnuser_type;
  4200. }
  4201. }
  4202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4204. public global::System.Data.DataColumn added_dateColumn {
  4205. get {
  4206. return this.columnadded_date;
  4207. }
  4208. }
  4209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4211. public global::System.Data.DataColumn added_byColumn {
  4212. get {
  4213. return this.columnadded_by;
  4214. }
  4215. }
  4216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4218. [global::System.ComponentModel.Browsable(false)]
  4219. public int Count {
  4220. get {
  4221. return this.Rows.Count;
  4222. }
  4223. }
  4224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4226. public tbl_usersRow this[int index] {
  4227. get {
  4228. return ((tbl_usersRow)(this.Rows[index]));
  4229. }
  4230. }
  4231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4232. public event tbl_usersRowChangeEventHandler tbl_usersRowChanging;
  4233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4234. public event tbl_usersRowChangeEventHandler tbl_usersRowChanged;
  4235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4236. public event tbl_usersRowChangeEventHandler tbl_usersRowDeleting;
  4237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4238. public event tbl_usersRowChangeEventHandler tbl_usersRowDeleted;
  4239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4241. public void Addtbl_usersRow(tbl_usersRow row) {
  4242. this.Rows.Add(row);
  4243. }
  4244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4246. public tbl_usersRow Addtbl_usersRow(string first_name, string last_name, string email, string username, string password, string contact, string address, string gender, string user_type, System.DateTime added_date, int added_by) {
  4247. tbl_usersRow rowtbl_usersRow = ((tbl_usersRow)(this.NewRow()));
  4248. object[] columnValuesArray = new object[] {
  4249. null,
  4250. first_name,
  4251. last_name,
  4252. email,
  4253. username,
  4254. password,
  4255. contact,
  4256. address,
  4257. gender,
  4258. user_type,
  4259. added_date,
  4260. added_by};
  4261. rowtbl_usersRow.ItemArray = columnValuesArray;
  4262. this.Rows.Add(rowtbl_usersRow);
  4263. return rowtbl_usersRow;
  4264. }
  4265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4267. public tbl_usersRow FindByid(int id) {
  4268. return ((tbl_usersRow)(this.Rows.Find(new object[] {
  4269. id})));
  4270. }
  4271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4273. public override global::System.Data.DataTable Clone() {
  4274. tbl_usersDataTable cln = ((tbl_usersDataTable)(base.Clone()));
  4275. cln.InitVars();
  4276. return cln;
  4277. }
  4278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4280. protected override global::System.Data.DataTable CreateInstance() {
  4281. return new tbl_usersDataTable();
  4282. }
  4283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4285. internal void InitVars() {
  4286. this.columnid = base.Columns["id"];
  4287. this.columnfirst_name = base.Columns["first_name"];
  4288. this.columnlast_name = base.Columns["last_name"];
  4289. this.columnemail = base.Columns["email"];
  4290. this.columnusername = base.Columns["username"];
  4291. this.columnpassword = base.Columns["password"];
  4292. this.columncontact = base.Columns["contact"];
  4293. this.columnaddress = base.Columns["address"];
  4294. this.columngender = base.Columns["gender"];
  4295. this.columnuser_type = base.Columns["user_type"];
  4296. this.columnadded_date = base.Columns["added_date"];
  4297. this.columnadded_by = base.Columns["added_by"];
  4298. }
  4299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4301. private void InitClass() {
  4302. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  4303. base.Columns.Add(this.columnid);
  4304. this.columnfirst_name = new global::System.Data.DataColumn("first_name", typeof(string), null, global::System.Data.MappingType.Element);
  4305. base.Columns.Add(this.columnfirst_name);
  4306. this.columnlast_name = new global::System.Data.DataColumn("last_name", typeof(string), null, global::System.Data.MappingType.Element);
  4307. base.Columns.Add(this.columnlast_name);
  4308. this.columnemail = new global::System.Data.DataColumn("email", typeof(string), null, global::System.Data.MappingType.Element);
  4309. base.Columns.Add(this.columnemail);
  4310. this.columnusername = new global::System.Data.DataColumn("username", typeof(string), null, global::System.Data.MappingType.Element);
  4311. base.Columns.Add(this.columnusername);
  4312. this.columnpassword = new global::System.Data.DataColumn("password", typeof(string), null, global::System.Data.MappingType.Element);
  4313. base.Columns.Add(this.columnpassword);
  4314. this.columncontact = new global::System.Data.DataColumn("contact", typeof(string), null, global::System.Data.MappingType.Element);
  4315. base.Columns.Add(this.columncontact);
  4316. this.columnaddress = new global::System.Data.DataColumn("address", typeof(string), null, global::System.Data.MappingType.Element);
  4317. base.Columns.Add(this.columnaddress);
  4318. this.columngender = new global::System.Data.DataColumn("gender", typeof(string), null, global::System.Data.MappingType.Element);
  4319. base.Columns.Add(this.columngender);
  4320. this.columnuser_type = new global::System.Data.DataColumn("user_type", typeof(string), null, global::System.Data.MappingType.Element);
  4321. base.Columns.Add(this.columnuser_type);
  4322. this.columnadded_date = new global::System.Data.DataColumn("added_date", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  4323. base.Columns.Add(this.columnadded_date);
  4324. this.columnadded_by = new global::System.Data.DataColumn("added_by", typeof(int), null, global::System.Data.MappingType.Element);
  4325. base.Columns.Add(this.columnadded_by);
  4326. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4327. this.columnid}, true));
  4328. this.columnid.AutoIncrement = true;
  4329. this.columnid.AutoIncrementSeed = -1;
  4330. this.columnid.AutoIncrementStep = -1;
  4331. this.columnid.AllowDBNull = false;
  4332. this.columnid.ReadOnly = true;
  4333. this.columnid.Unique = true;
  4334. this.columnfirst_name.MaxLength = 50;
  4335. this.columnlast_name.MaxLength = 50;
  4336. this.columnemail.MaxLength = 150;
  4337. this.columnusername.MaxLength = 50;
  4338. this.columnpassword.MaxLength = 50;
  4339. this.columncontact.MaxLength = 15;
  4340. this.columnaddress.MaxLength = 2147483647;
  4341. this.columngender.MaxLength = 10;
  4342. this.columnuser_type.MaxLength = 15;
  4343. }
  4344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4346. public tbl_usersRow Newtbl_usersRow() {
  4347. return ((tbl_usersRow)(this.NewRow()));
  4348. }
  4349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4351. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4352. return new tbl_usersRow(builder);
  4353. }
  4354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4356. protected override global::System.Type GetRowType() {
  4357. return typeof(tbl_usersRow);
  4358. }
  4359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4361. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4362. base.OnRowChanged(e);
  4363. if ((this.tbl_usersRowChanged != null)) {
  4364. this.tbl_usersRowChanged(this, new tbl_usersRowChangeEvent(((tbl_usersRow)(e.Row)), e.Action));
  4365. }
  4366. }
  4367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4369. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4370. base.OnRowChanging(e);
  4371. if ((this.tbl_usersRowChanging != null)) {
  4372. this.tbl_usersRowChanging(this, new tbl_usersRowChangeEvent(((tbl_usersRow)(e.Row)), e.Action));
  4373. }
  4374. }
  4375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4377. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4378. base.OnRowDeleted(e);
  4379. if ((this.tbl_usersRowDeleted != null)) {
  4380. this.tbl_usersRowDeleted(this, new tbl_usersRowChangeEvent(((tbl_usersRow)(e.Row)), e.Action));
  4381. }
  4382. }
  4383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4385. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4386. base.OnRowDeleting(e);
  4387. if ((this.tbl_usersRowDeleting != null)) {
  4388. this.tbl_usersRowDeleting(this, new tbl_usersRowChangeEvent(((tbl_usersRow)(e.Row)), e.Action));
  4389. }
  4390. }
  4391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4393. public void Removetbl_usersRow(tbl_usersRow row) {
  4394. this.Rows.Remove(row);
  4395. }
  4396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4398. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4399. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4400. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4401. DataSet1 ds = new DataSet1();
  4402. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4403. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4404. any1.MinOccurs = new decimal(0);
  4405. any1.MaxOccurs = decimal.MaxValue;
  4406. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4407. sequence.Items.Add(any1);
  4408. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4409. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4410. any2.MinOccurs = new decimal(1);
  4411. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4412. sequence.Items.Add(any2);
  4413. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4414. attribute1.Name = "namespace";
  4415. attribute1.FixedValue = ds.Namespace;
  4416. type.Attributes.Add(attribute1);
  4417. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4418. attribute2.Name = "tableTypeName";
  4419. attribute2.FixedValue = "tbl_usersDataTable";
  4420. type.Attributes.Add(attribute2);
  4421. type.Particle = sequence;
  4422. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4423. if (xs.Contains(dsSchema.TargetNamespace)) {
  4424. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4425. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4426. try {
  4427. global::System.Xml.Schema.XmlSchema schema = null;
  4428. dsSchema.Write(s1);
  4429. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4430. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4431. s2.SetLength(0);
  4432. schema.Write(s2);
  4433. if ((s1.Length == s2.Length)) {
  4434. s1.Position = 0;
  4435. s2.Position = 0;
  4436. for (; ((s1.Position != s1.Length)
  4437. && (s1.ReadByte() == s2.ReadByte())); ) {
  4438. ;
  4439. }
  4440. if ((s1.Position == s1.Length)) {
  4441. return type;
  4442. }
  4443. }
  4444. }
  4445. }
  4446. finally {
  4447. if ((s1 != null)) {
  4448. s1.Close();
  4449. }
  4450. if ((s2 != null)) {
  4451. s2.Close();
  4452. }
  4453. }
  4454. }
  4455. xs.Add(dsSchema);
  4456. return type;
  4457. }
  4458. }
  4459. /// <summary>
  4460. ///Represents the strongly named DataTable class.
  4461. ///</summary>
  4462. [global::System.Serializable()]
  4463. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4464. public partial class TovariDataTable : global::System.Data.TypedTableBase<TovariRow> {
  4465. private global::System.Data.DataColumn columnТовар;
  4466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4468. public TovariDataTable() {
  4469. this.TableName = "Tovari";
  4470. this.BeginInit();
  4471. this.InitClass();
  4472. this.EndInit();
  4473. }
  4474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4476. internal TovariDataTable(global::System.Data.DataTable table) {
  4477. this.TableName = table.TableName;
  4478. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4479. this.CaseSensitive = table.CaseSensitive;
  4480. }
  4481. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4482. this.Locale = table.Locale;
  4483. }
  4484. if ((table.Namespace != table.DataSet.Namespace)) {
  4485. this.Namespace = table.Namespace;
  4486. }
  4487. this.Prefix = table.Prefix;
  4488. this.MinimumCapacity = table.MinimumCapacity;
  4489. }
  4490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4492. protected TovariDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4493. base(info, context) {
  4494. this.InitVars();
  4495. }
  4496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4498. public global::System.Data.DataColumn ТоварColumn {
  4499. get {
  4500. return this.columnТовар;
  4501. }
  4502. }
  4503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4505. [global::System.ComponentModel.Browsable(false)]
  4506. public int Count {
  4507. get {
  4508. return this.Rows.Count;
  4509. }
  4510. }
  4511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4513. public TovariRow this[int index] {
  4514. get {
  4515. return ((TovariRow)(this.Rows[index]));
  4516. }
  4517. }
  4518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4519. public event TovariRowChangeEventHandler TovariRowChanging;
  4520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4521. public event TovariRowChangeEventHandler TovariRowChanged;
  4522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4523. public event TovariRowChangeEventHandler TovariRowDeleting;
  4524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4525. public event TovariRowChangeEventHandler TovariRowDeleted;
  4526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4528. public void AddTovariRow(TovariRow row) {
  4529. this.Rows.Add(row);
  4530. }
  4531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4533. public TovariRow AddTovariRow(string Товар) {
  4534. TovariRow rowTovariRow = ((TovariRow)(this.NewRow()));
  4535. object[] columnValuesArray = new object[] {
  4536. Товар};
  4537. rowTovariRow.ItemArray = columnValuesArray;
  4538. this.Rows.Add(rowTovariRow);
  4539. return rowTovariRow;
  4540. }
  4541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4543. public override global::System.Data.DataTable Clone() {
  4544. TovariDataTable cln = ((TovariDataTable)(base.Clone()));
  4545. cln.InitVars();
  4546. return cln;
  4547. }
  4548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4550. protected override global::System.Data.DataTable CreateInstance() {
  4551. return new TovariDataTable();
  4552. }
  4553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4555. internal void InitVars() {
  4556. this.columnТовар = base.Columns["Товар"];
  4557. }
  4558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4560. private void InitClass() {
  4561. this.columnТовар = new global::System.Data.DataColumn("Товар", typeof(string), null, global::System.Data.MappingType.Element);
  4562. base.Columns.Add(this.columnТовар);
  4563. this.columnТовар.MaxLength = 2147483647;
  4564. }
  4565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4567. public TovariRow NewTovariRow() {
  4568. return ((TovariRow)(this.NewRow()));
  4569. }
  4570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4572. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4573. return new TovariRow(builder);
  4574. }
  4575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4577. protected override global::System.Type GetRowType() {
  4578. return typeof(TovariRow);
  4579. }
  4580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4582. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4583. base.OnRowChanged(e);
  4584. if ((this.TovariRowChanged != null)) {
  4585. this.TovariRowChanged(this, new TovariRowChangeEvent(((TovariRow)(e.Row)), e.Action));
  4586. }
  4587. }
  4588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4590. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4591. base.OnRowChanging(e);
  4592. if ((this.TovariRowChanging != null)) {
  4593. this.TovariRowChanging(this, new TovariRowChangeEvent(((TovariRow)(e.Row)), e.Action));
  4594. }
  4595. }
  4596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4598. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4599. base.OnRowDeleted(e);
  4600. if ((this.TovariRowDeleted != null)) {
  4601. this.TovariRowDeleted(this, new TovariRowChangeEvent(((TovariRow)(e.Row)), e.Action));
  4602. }
  4603. }
  4604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4606. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4607. base.OnRowDeleting(e);
  4608. if ((this.TovariRowDeleting != null)) {
  4609. this.TovariRowDeleting(this, new TovariRowChangeEvent(((TovariRow)(e.Row)), e.Action));
  4610. }
  4611. }
  4612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4614. public void RemoveTovariRow(TovariRow row) {
  4615. this.Rows.Remove(row);
  4616. }
  4617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4619. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4620. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4621. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4622. DataSet1 ds = new DataSet1();
  4623. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4624. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4625. any1.MinOccurs = new decimal(0);
  4626. any1.MaxOccurs = decimal.MaxValue;
  4627. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4628. sequence.Items.Add(any1);
  4629. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4630. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4631. any2.MinOccurs = new decimal(1);
  4632. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4633. sequence.Items.Add(any2);
  4634. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4635. attribute1.Name = "namespace";
  4636. attribute1.FixedValue = ds.Namespace;
  4637. type.Attributes.Add(attribute1);
  4638. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4639. attribute2.Name = "tableTypeName";
  4640. attribute2.FixedValue = "TovariDataTable";
  4641. type.Attributes.Add(attribute2);
  4642. type.Particle = sequence;
  4643. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4644. if (xs.Contains(dsSchema.TargetNamespace)) {
  4645. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4646. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4647. try {
  4648. global::System.Xml.Schema.XmlSchema schema = null;
  4649. dsSchema.Write(s1);
  4650. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4651. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4652. s2.SetLength(0);
  4653. schema.Write(s2);
  4654. if ((s1.Length == s2.Length)) {
  4655. s1.Position = 0;
  4656. s2.Position = 0;
  4657. for (; ((s1.Position != s1.Length)
  4658. && (s1.ReadByte() == s2.ReadByte())); ) {
  4659. ;
  4660. }
  4661. if ((s1.Position == s1.Length)) {
  4662. return type;
  4663. }
  4664. }
  4665. }
  4666. }
  4667. finally {
  4668. if ((s1 != null)) {
  4669. s1.Close();
  4670. }
  4671. if ((s2 != null)) {
  4672. s2.Close();
  4673. }
  4674. }
  4675. }
  4676. xs.Add(dsSchema);
  4677. return type;
  4678. }
  4679. }
  4680. /// <summary>
  4681. ///Represents the strongly named DataTable class.
  4682. ///</summary>
  4683. [global::System.Serializable()]
  4684. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  4685. public partial class UserDataTable : global::System.Data.TypedTableBase<UserRow> {
  4686. private global::System.Data.DataColumn columnUserID;
  4687. private global::System.Data.DataColumn columnUserSurname;
  4688. private global::System.Data.DataColumn columnUserName;
  4689. private global::System.Data.DataColumn columnUserPatronymic;
  4690. private global::System.Data.DataColumn columnUserLogin;
  4691. private global::System.Data.DataColumn columnUserPassword;
  4692. private global::System.Data.DataColumn columnUserRole;
  4693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4695. public UserDataTable() {
  4696. this.TableName = "User";
  4697. this.BeginInit();
  4698. this.InitClass();
  4699. this.EndInit();
  4700. }
  4701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4703. internal UserDataTable(global::System.Data.DataTable table) {
  4704. this.TableName = table.TableName;
  4705. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  4706. this.CaseSensitive = table.CaseSensitive;
  4707. }
  4708. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  4709. this.Locale = table.Locale;
  4710. }
  4711. if ((table.Namespace != table.DataSet.Namespace)) {
  4712. this.Namespace = table.Namespace;
  4713. }
  4714. this.Prefix = table.Prefix;
  4715. this.MinimumCapacity = table.MinimumCapacity;
  4716. }
  4717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4719. protected UserDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  4720. base(info, context) {
  4721. this.InitVars();
  4722. }
  4723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4725. public global::System.Data.DataColumn UserIDColumn {
  4726. get {
  4727. return this.columnUserID;
  4728. }
  4729. }
  4730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4732. public global::System.Data.DataColumn UserSurnameColumn {
  4733. get {
  4734. return this.columnUserSurname;
  4735. }
  4736. }
  4737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4739. public global::System.Data.DataColumn UserNameColumn {
  4740. get {
  4741. return this.columnUserName;
  4742. }
  4743. }
  4744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4746. public global::System.Data.DataColumn UserPatronymicColumn {
  4747. get {
  4748. return this.columnUserPatronymic;
  4749. }
  4750. }
  4751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4753. public global::System.Data.DataColumn UserLoginColumn {
  4754. get {
  4755. return this.columnUserLogin;
  4756. }
  4757. }
  4758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4760. public global::System.Data.DataColumn UserPasswordColumn {
  4761. get {
  4762. return this.columnUserPassword;
  4763. }
  4764. }
  4765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4767. public global::System.Data.DataColumn UserRoleColumn {
  4768. get {
  4769. return this.columnUserRole;
  4770. }
  4771. }
  4772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4774. [global::System.ComponentModel.Browsable(false)]
  4775. public int Count {
  4776. get {
  4777. return this.Rows.Count;
  4778. }
  4779. }
  4780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4782. public UserRow this[int index] {
  4783. get {
  4784. return ((UserRow)(this.Rows[index]));
  4785. }
  4786. }
  4787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4788. public event UserRowChangeEventHandler UserRowChanging;
  4789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4790. public event UserRowChangeEventHandler UserRowChanged;
  4791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4792. public event UserRowChangeEventHandler UserRowDeleting;
  4793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4794. public event UserRowChangeEventHandler UserRowDeleted;
  4795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4797. public void AddUserRow(UserRow row) {
  4798. this.Rows.Add(row);
  4799. }
  4800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4802. public UserRow AddUserRow(string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword, RoleRow parentRoleRowByFK__User__UserRole__39AD8A7F) {
  4803. UserRow rowUserRow = ((UserRow)(this.NewRow()));
  4804. object[] columnValuesArray = new object[] {
  4805. null,
  4806. UserSurname,
  4807. UserName,
  4808. UserPatronymic,
  4809. UserLogin,
  4810. UserPassword,
  4811. null};
  4812. if ((parentRoleRowByFK__User__UserRole__39AD8A7F != null)) {
  4813. columnValuesArray[6] = parentRoleRowByFK__User__UserRole__39AD8A7F[0];
  4814. }
  4815. rowUserRow.ItemArray = columnValuesArray;
  4816. this.Rows.Add(rowUserRow);
  4817. return rowUserRow;
  4818. }
  4819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4821. public UserRow FindByUserID(int UserID) {
  4822. return ((UserRow)(this.Rows.Find(new object[] {
  4823. UserID})));
  4824. }
  4825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4827. public override global::System.Data.DataTable Clone() {
  4828. UserDataTable cln = ((UserDataTable)(base.Clone()));
  4829. cln.InitVars();
  4830. return cln;
  4831. }
  4832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4834. protected override global::System.Data.DataTable CreateInstance() {
  4835. return new UserDataTable();
  4836. }
  4837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4839. internal void InitVars() {
  4840. this.columnUserID = base.Columns["UserID"];
  4841. this.columnUserSurname = base.Columns["UserSurname"];
  4842. this.columnUserName = base.Columns["UserName"];
  4843. this.columnUserPatronymic = base.Columns["UserPatronymic"];
  4844. this.columnUserLogin = base.Columns["UserLogin"];
  4845. this.columnUserPassword = base.Columns["UserPassword"];
  4846. this.columnUserRole = base.Columns["UserRole"];
  4847. }
  4848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4850. private void InitClass() {
  4851. this.columnUserID = new global::System.Data.DataColumn("UserID", typeof(int), null, global::System.Data.MappingType.Element);
  4852. base.Columns.Add(this.columnUserID);
  4853. this.columnUserSurname = new global::System.Data.DataColumn("UserSurname", typeof(string), null, global::System.Data.MappingType.Element);
  4854. base.Columns.Add(this.columnUserSurname);
  4855. this.columnUserName = new global::System.Data.DataColumn("UserName", typeof(string), null, global::System.Data.MappingType.Element);
  4856. base.Columns.Add(this.columnUserName);
  4857. this.columnUserPatronymic = new global::System.Data.DataColumn("UserPatronymic", typeof(string), null, global::System.Data.MappingType.Element);
  4858. base.Columns.Add(this.columnUserPatronymic);
  4859. this.columnUserLogin = new global::System.Data.DataColumn("UserLogin", typeof(string), null, global::System.Data.MappingType.Element);
  4860. base.Columns.Add(this.columnUserLogin);
  4861. this.columnUserPassword = new global::System.Data.DataColumn("UserPassword", typeof(string), null, global::System.Data.MappingType.Element);
  4862. base.Columns.Add(this.columnUserPassword);
  4863. this.columnUserRole = new global::System.Data.DataColumn("UserRole", typeof(int), null, global::System.Data.MappingType.Element);
  4864. base.Columns.Add(this.columnUserRole);
  4865. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  4866. this.columnUserID}, true));
  4867. this.columnUserID.AutoIncrement = true;
  4868. this.columnUserID.AutoIncrementSeed = -1;
  4869. this.columnUserID.AutoIncrementStep = -1;
  4870. this.columnUserID.AllowDBNull = false;
  4871. this.columnUserID.ReadOnly = true;
  4872. this.columnUserID.Unique = true;
  4873. this.columnUserSurname.AllowDBNull = false;
  4874. this.columnUserSurname.MaxLength = 100;
  4875. this.columnUserName.AllowDBNull = false;
  4876. this.columnUserName.MaxLength = 100;
  4877. this.columnUserPatronymic.AllowDBNull = false;
  4878. this.columnUserPatronymic.MaxLength = 100;
  4879. this.columnUserLogin.AllowDBNull = false;
  4880. this.columnUserLogin.MaxLength = 2147483647;
  4881. this.columnUserPassword.AllowDBNull = false;
  4882. this.columnUserPassword.MaxLength = 2147483647;
  4883. this.columnUserRole.AllowDBNull = false;
  4884. }
  4885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4887. public UserRow NewUserRow() {
  4888. return ((UserRow)(this.NewRow()));
  4889. }
  4890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4892. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4893. return new UserRow(builder);
  4894. }
  4895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4897. protected override global::System.Type GetRowType() {
  4898. return typeof(UserRow);
  4899. }
  4900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4902. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4903. base.OnRowChanged(e);
  4904. if ((this.UserRowChanged != null)) {
  4905. this.UserRowChanged(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  4906. }
  4907. }
  4908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4910. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4911. base.OnRowChanging(e);
  4912. if ((this.UserRowChanging != null)) {
  4913. this.UserRowChanging(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  4914. }
  4915. }
  4916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4918. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4919. base.OnRowDeleted(e);
  4920. if ((this.UserRowDeleted != null)) {
  4921. this.UserRowDeleted(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  4922. }
  4923. }
  4924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4926. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4927. base.OnRowDeleting(e);
  4928. if ((this.UserRowDeleting != null)) {
  4929. this.UserRowDeleting(this, new UserRowChangeEvent(((UserRow)(e.Row)), e.Action));
  4930. }
  4931. }
  4932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4934. public void RemoveUserRow(UserRow row) {
  4935. this.Rows.Remove(row);
  4936. }
  4937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4939. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4940. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4941. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4942. DataSet1 ds = new DataSet1();
  4943. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4944. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4945. any1.MinOccurs = new decimal(0);
  4946. any1.MaxOccurs = decimal.MaxValue;
  4947. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4948. sequence.Items.Add(any1);
  4949. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4950. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4951. any2.MinOccurs = new decimal(1);
  4952. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4953. sequence.Items.Add(any2);
  4954. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4955. attribute1.Name = "namespace";
  4956. attribute1.FixedValue = ds.Namespace;
  4957. type.Attributes.Add(attribute1);
  4958. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4959. attribute2.Name = "tableTypeName";
  4960. attribute2.FixedValue = "UserDataTable";
  4961. type.Attributes.Add(attribute2);
  4962. type.Particle = sequence;
  4963. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4964. if (xs.Contains(dsSchema.TargetNamespace)) {
  4965. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4966. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4967. try {
  4968. global::System.Xml.Schema.XmlSchema schema = null;
  4969. dsSchema.Write(s1);
  4970. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4971. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4972. s2.SetLength(0);
  4973. schema.Write(s2);
  4974. if ((s1.Length == s2.Length)) {
  4975. s1.Position = 0;
  4976. s2.Position = 0;
  4977. for (; ((s1.Position != s1.Length)
  4978. && (s1.ReadByte() == s2.ReadByte())); ) {
  4979. ;
  4980. }
  4981. if ((s1.Position == s1.Length)) {
  4982. return type;
  4983. }
  4984. }
  4985. }
  4986. }
  4987. finally {
  4988. if ((s1 != null)) {
  4989. s1.Close();
  4990. }
  4991. if ((s2 != null)) {
  4992. s2.Close();
  4993. }
  4994. }
  4995. }
  4996. xs.Add(dsSchema);
  4997. return type;
  4998. }
  4999. }
  5000. /// <summary>
  5001. ///Represents the strongly named DataTable class.
  5002. ///</summary>
  5003. [global::System.Serializable()]
  5004. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  5005. public partial class woorkersDataTable : global::System.Data.TypedTableBase<woorkersRow> {
  5006. private global::System.Data.DataColumn columnID;
  5007. private global::System.Data.DataColumn columnNAME;
  5008. private global::System.Data.DataColumn columnlogin;
  5009. private global::System.Data.DataColumn columnSalary;
  5010. private global::System.Data.DataColumn columnAge;
  5011. private global::System.Data.DataColumn columnDate;
  5012. private global::System.Data.DataColumn columnDescription;
  5013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5015. public woorkersDataTable() {
  5016. this.TableName = "woorkers";
  5017. this.BeginInit();
  5018. this.InitClass();
  5019. this.EndInit();
  5020. }
  5021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5023. internal woorkersDataTable(global::System.Data.DataTable table) {
  5024. this.TableName = table.TableName;
  5025. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  5026. this.CaseSensitive = table.CaseSensitive;
  5027. }
  5028. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  5029. this.Locale = table.Locale;
  5030. }
  5031. if ((table.Namespace != table.DataSet.Namespace)) {
  5032. this.Namespace = table.Namespace;
  5033. }
  5034. this.Prefix = table.Prefix;
  5035. this.MinimumCapacity = table.MinimumCapacity;
  5036. }
  5037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5039. protected woorkersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  5040. base(info, context) {
  5041. this.InitVars();
  5042. }
  5043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5045. public global::System.Data.DataColumn IDColumn {
  5046. get {
  5047. return this.columnID;
  5048. }
  5049. }
  5050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5052. public global::System.Data.DataColumn NAMEColumn {
  5053. get {
  5054. return this.columnNAME;
  5055. }
  5056. }
  5057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5059. public global::System.Data.DataColumn loginColumn {
  5060. get {
  5061. return this.columnlogin;
  5062. }
  5063. }
  5064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5066. public global::System.Data.DataColumn SalaryColumn {
  5067. get {
  5068. return this.columnSalary;
  5069. }
  5070. }
  5071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5073. public global::System.Data.DataColumn AgeColumn {
  5074. get {
  5075. return this.columnAge;
  5076. }
  5077. }
  5078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5080. public global::System.Data.DataColumn DateColumn {
  5081. get {
  5082. return this.columnDate;
  5083. }
  5084. }
  5085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5087. public global::System.Data.DataColumn DescriptionColumn {
  5088. get {
  5089. return this.columnDescription;
  5090. }
  5091. }
  5092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5094. [global::System.ComponentModel.Browsable(false)]
  5095. public int Count {
  5096. get {
  5097. return this.Rows.Count;
  5098. }
  5099. }
  5100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5102. public woorkersRow this[int index] {
  5103. get {
  5104. return ((woorkersRow)(this.Rows[index]));
  5105. }
  5106. }
  5107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5108. public event woorkersRowChangeEventHandler woorkersRowChanging;
  5109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5110. public event woorkersRowChangeEventHandler woorkersRowChanged;
  5111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5112. public event woorkersRowChangeEventHandler woorkersRowDeleting;
  5113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5114. public event woorkersRowChangeEventHandler woorkersRowDeleted;
  5115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5117. public void AddwoorkersRow(woorkersRow row) {
  5118. this.Rows.Add(row);
  5119. }
  5120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5122. public woorkersRow AddwoorkersRow(string NAME, string login, int Salary, int Age, System.DateTime Date, string Description) {
  5123. woorkersRow rowwoorkersRow = ((woorkersRow)(this.NewRow()));
  5124. object[] columnValuesArray = new object[] {
  5125. null,
  5126. NAME,
  5127. login,
  5128. Salary,
  5129. Age,
  5130. Date,
  5131. Description};
  5132. rowwoorkersRow.ItemArray = columnValuesArray;
  5133. this.Rows.Add(rowwoorkersRow);
  5134. return rowwoorkersRow;
  5135. }
  5136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5138. public woorkersRow FindByID(int ID) {
  5139. return ((woorkersRow)(this.Rows.Find(new object[] {
  5140. ID})));
  5141. }
  5142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5144. public override global::System.Data.DataTable Clone() {
  5145. woorkersDataTable cln = ((woorkersDataTable)(base.Clone()));
  5146. cln.InitVars();
  5147. return cln;
  5148. }
  5149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5151. protected override global::System.Data.DataTable CreateInstance() {
  5152. return new woorkersDataTable();
  5153. }
  5154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5156. internal void InitVars() {
  5157. this.columnID = base.Columns["ID"];
  5158. this.columnNAME = base.Columns["NAME"];
  5159. this.columnlogin = base.Columns["login"];
  5160. this.columnSalary = base.Columns["Salary"];
  5161. this.columnAge = base.Columns["Age"];
  5162. this.columnDate = base.Columns["Date"];
  5163. this.columnDescription = base.Columns["Description"];
  5164. }
  5165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5167. private void InitClass() {
  5168. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  5169. base.Columns.Add(this.columnID);
  5170. this.columnNAME = new global::System.Data.DataColumn("NAME", typeof(string), null, global::System.Data.MappingType.Element);
  5171. base.Columns.Add(this.columnNAME);
  5172. this.columnlogin = new global::System.Data.DataColumn("login", typeof(string), null, global::System.Data.MappingType.Element);
  5173. base.Columns.Add(this.columnlogin);
  5174. this.columnSalary = new global::System.Data.DataColumn("Salary", typeof(int), null, global::System.Data.MappingType.Element);
  5175. base.Columns.Add(this.columnSalary);
  5176. this.columnAge = new global::System.Data.DataColumn("Age", typeof(int), null, global::System.Data.MappingType.Element);
  5177. base.Columns.Add(this.columnAge);
  5178. this.columnDate = new global::System.Data.DataColumn("Date", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  5179. base.Columns.Add(this.columnDate);
  5180. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  5181. base.Columns.Add(this.columnDescription);
  5182. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  5183. this.columnID}, true));
  5184. this.columnID.AutoIncrement = true;
  5185. this.columnID.AutoIncrementSeed = -1;
  5186. this.columnID.AutoIncrementStep = -1;
  5187. this.columnID.AllowDBNull = false;
  5188. this.columnID.ReadOnly = true;
  5189. this.columnID.Unique = true;
  5190. this.columnNAME.MaxLength = 50;
  5191. this.columnlogin.MaxLength = 50;
  5192. this.columnDescription.MaxLength = 50;
  5193. }
  5194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5196. public woorkersRow NewwoorkersRow() {
  5197. return ((woorkersRow)(this.NewRow()));
  5198. }
  5199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5201. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  5202. return new woorkersRow(builder);
  5203. }
  5204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5206. protected override global::System.Type GetRowType() {
  5207. return typeof(woorkersRow);
  5208. }
  5209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5211. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  5212. base.OnRowChanged(e);
  5213. if ((this.woorkersRowChanged != null)) {
  5214. this.woorkersRowChanged(this, new woorkersRowChangeEvent(((woorkersRow)(e.Row)), e.Action));
  5215. }
  5216. }
  5217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5219. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  5220. base.OnRowChanging(e);
  5221. if ((this.woorkersRowChanging != null)) {
  5222. this.woorkersRowChanging(this, new woorkersRowChangeEvent(((woorkersRow)(e.Row)), e.Action));
  5223. }
  5224. }
  5225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5227. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  5228. base.OnRowDeleted(e);
  5229. if ((this.woorkersRowDeleted != null)) {
  5230. this.woorkersRowDeleted(this, new woorkersRowChangeEvent(((woorkersRow)(e.Row)), e.Action));
  5231. }
  5232. }
  5233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5235. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  5236. base.OnRowDeleting(e);
  5237. if ((this.woorkersRowDeleting != null)) {
  5238. this.woorkersRowDeleting(this, new woorkersRowChangeEvent(((woorkersRow)(e.Row)), e.Action));
  5239. }
  5240. }
  5241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5243. public void RemovewoorkersRow(woorkersRow row) {
  5244. this.Rows.Remove(row);
  5245. }
  5246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5248. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  5249. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  5250. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  5251. DataSet1 ds = new DataSet1();
  5252. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  5253. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  5254. any1.MinOccurs = new decimal(0);
  5255. any1.MaxOccurs = decimal.MaxValue;
  5256. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5257. sequence.Items.Add(any1);
  5258. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  5259. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  5260. any2.MinOccurs = new decimal(1);
  5261. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5262. sequence.Items.Add(any2);
  5263. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5264. attribute1.Name = "namespace";
  5265. attribute1.FixedValue = ds.Namespace;
  5266. type.Attributes.Add(attribute1);
  5267. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5268. attribute2.Name = "tableTypeName";
  5269. attribute2.FixedValue = "woorkersDataTable";
  5270. type.Attributes.Add(attribute2);
  5271. type.Particle = sequence;
  5272. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  5273. if (xs.Contains(dsSchema.TargetNamespace)) {
  5274. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  5275. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  5276. try {
  5277. global::System.Xml.Schema.XmlSchema schema = null;
  5278. dsSchema.Write(s1);
  5279. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  5280. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  5281. s2.SetLength(0);
  5282. schema.Write(s2);
  5283. if ((s1.Length == s2.Length)) {
  5284. s1.Position = 0;
  5285. s2.Position = 0;
  5286. for (; ((s1.Position != s1.Length)
  5287. && (s1.ReadByte() == s2.ReadByte())); ) {
  5288. ;
  5289. }
  5290. if ((s1.Position == s1.Length)) {
  5291. return type;
  5292. }
  5293. }
  5294. }
  5295. }
  5296. finally {
  5297. if ((s1 != null)) {
  5298. s1.Close();
  5299. }
  5300. if ((s2 != null)) {
  5301. s2.Close();
  5302. }
  5303. }
  5304. }
  5305. xs.Add(dsSchema);
  5306. return type;
  5307. }
  5308. }
  5309. /// <summary>
  5310. ///Represents the strongly named DataTable class.
  5311. ///</summary>
  5312. [global::System.Serializable()]
  5313. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  5314. public partial class WorkerDataTable : global::System.Data.TypedTableBase<WorkerRow> {
  5315. private global::System.Data.DataColumn columnid;
  5316. private global::System.Data.DataColumn columnname;
  5317. private global::System.Data.DataColumn columnlogn;
  5318. private global::System.Data.DataColumn columnsalary;
  5319. private global::System.Data.DataColumn columnage;
  5320. private global::System.Data.DataColumn columndate;
  5321. private global::System.Data.DataColumn columndiscription;
  5322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5324. public WorkerDataTable() {
  5325. this.TableName = "Worker";
  5326. this.BeginInit();
  5327. this.InitClass();
  5328. this.EndInit();
  5329. }
  5330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5332. internal WorkerDataTable(global::System.Data.DataTable table) {
  5333. this.TableName = table.TableName;
  5334. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  5335. this.CaseSensitive = table.CaseSensitive;
  5336. }
  5337. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  5338. this.Locale = table.Locale;
  5339. }
  5340. if ((table.Namespace != table.DataSet.Namespace)) {
  5341. this.Namespace = table.Namespace;
  5342. }
  5343. this.Prefix = table.Prefix;
  5344. this.MinimumCapacity = table.MinimumCapacity;
  5345. }
  5346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5348. protected WorkerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  5349. base(info, context) {
  5350. this.InitVars();
  5351. }
  5352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5354. public global::System.Data.DataColumn idColumn {
  5355. get {
  5356. return this.columnid;
  5357. }
  5358. }
  5359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5361. public global::System.Data.DataColumn nameColumn {
  5362. get {
  5363. return this.columnname;
  5364. }
  5365. }
  5366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5368. public global::System.Data.DataColumn lognColumn {
  5369. get {
  5370. return this.columnlogn;
  5371. }
  5372. }
  5373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5375. public global::System.Data.DataColumn salaryColumn {
  5376. get {
  5377. return this.columnsalary;
  5378. }
  5379. }
  5380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5382. public global::System.Data.DataColumn ageColumn {
  5383. get {
  5384. return this.columnage;
  5385. }
  5386. }
  5387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5389. public global::System.Data.DataColumn dateColumn {
  5390. get {
  5391. return this.columndate;
  5392. }
  5393. }
  5394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5396. public global::System.Data.DataColumn discriptionColumn {
  5397. get {
  5398. return this.columndiscription;
  5399. }
  5400. }
  5401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5403. [global::System.ComponentModel.Browsable(false)]
  5404. public int Count {
  5405. get {
  5406. return this.Rows.Count;
  5407. }
  5408. }
  5409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5411. public WorkerRow this[int index] {
  5412. get {
  5413. return ((WorkerRow)(this.Rows[index]));
  5414. }
  5415. }
  5416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5417. public event WorkerRowChangeEventHandler WorkerRowChanging;
  5418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5419. public event WorkerRowChangeEventHandler WorkerRowChanged;
  5420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5421. public event WorkerRowChangeEventHandler WorkerRowDeleting;
  5422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5423. public event WorkerRowChangeEventHandler WorkerRowDeleted;
  5424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5426. public void AddWorkerRow(WorkerRow row) {
  5427. this.Rows.Add(row);
  5428. }
  5429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5431. public WorkerRow AddWorkerRow(int id, string name, string logn, string salary, string age, System.DateTime date, string discription) {
  5432. WorkerRow rowWorkerRow = ((WorkerRow)(this.NewRow()));
  5433. object[] columnValuesArray = new object[] {
  5434. id,
  5435. name,
  5436. logn,
  5437. salary,
  5438. age,
  5439. date,
  5440. discription};
  5441. rowWorkerRow.ItemArray = columnValuesArray;
  5442. this.Rows.Add(rowWorkerRow);
  5443. return rowWorkerRow;
  5444. }
  5445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5447. public override global::System.Data.DataTable Clone() {
  5448. WorkerDataTable cln = ((WorkerDataTable)(base.Clone()));
  5449. cln.InitVars();
  5450. return cln;
  5451. }
  5452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5454. protected override global::System.Data.DataTable CreateInstance() {
  5455. return new WorkerDataTable();
  5456. }
  5457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5459. internal void InitVars() {
  5460. this.columnid = base.Columns["id"];
  5461. this.columnname = base.Columns["name"];
  5462. this.columnlogn = base.Columns["logn"];
  5463. this.columnsalary = base.Columns["salary"];
  5464. this.columnage = base.Columns["age"];
  5465. this.columndate = base.Columns["date"];
  5466. this.columndiscription = base.Columns["discription"];
  5467. }
  5468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5470. private void InitClass() {
  5471. this.columnid = new global::System.Data.DataColumn("id", typeof(int), null, global::System.Data.MappingType.Element);
  5472. base.Columns.Add(this.columnid);
  5473. this.columnname = new global::System.Data.DataColumn("name", typeof(string), null, global::System.Data.MappingType.Element);
  5474. base.Columns.Add(this.columnname);
  5475. this.columnlogn = new global::System.Data.DataColumn("logn", typeof(string), null, global::System.Data.MappingType.Element);
  5476. base.Columns.Add(this.columnlogn);
  5477. this.columnsalary = new global::System.Data.DataColumn("salary", typeof(string), null, global::System.Data.MappingType.Element);
  5478. base.Columns.Add(this.columnsalary);
  5479. this.columnage = new global::System.Data.DataColumn("age", typeof(string), null, global::System.Data.MappingType.Element);
  5480. base.Columns.Add(this.columnage);
  5481. this.columndate = new global::System.Data.DataColumn("date", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  5482. base.Columns.Add(this.columndate);
  5483. this.columndiscription = new global::System.Data.DataColumn("discription", typeof(string), null, global::System.Data.MappingType.Element);
  5484. base.Columns.Add(this.columndiscription);
  5485. this.columnid.AllowDBNull = false;
  5486. this.columnname.AllowDBNull = false;
  5487. this.columnname.MaxLength = 255;
  5488. this.columnlogn.AllowDBNull = false;
  5489. this.columnlogn.MaxLength = 255;
  5490. this.columnsalary.AllowDBNull = false;
  5491. this.columnsalary.MaxLength = 255;
  5492. this.columnage.AllowDBNull = false;
  5493. this.columnage.MaxLength = 255;
  5494. this.columndate.AllowDBNull = false;
  5495. this.columndiscription.AllowDBNull = false;
  5496. this.columndiscription.MaxLength = 255;
  5497. }
  5498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5500. public WorkerRow NewWorkerRow() {
  5501. return ((WorkerRow)(this.NewRow()));
  5502. }
  5503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5505. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  5506. return new WorkerRow(builder);
  5507. }
  5508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5510. protected override global::System.Type GetRowType() {
  5511. return typeof(WorkerRow);
  5512. }
  5513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5515. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  5516. base.OnRowChanged(e);
  5517. if ((this.WorkerRowChanged != null)) {
  5518. this.WorkerRowChanged(this, new WorkerRowChangeEvent(((WorkerRow)(e.Row)), e.Action));
  5519. }
  5520. }
  5521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5523. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  5524. base.OnRowChanging(e);
  5525. if ((this.WorkerRowChanging != null)) {
  5526. this.WorkerRowChanging(this, new WorkerRowChangeEvent(((WorkerRow)(e.Row)), e.Action));
  5527. }
  5528. }
  5529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5531. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  5532. base.OnRowDeleted(e);
  5533. if ((this.WorkerRowDeleted != null)) {
  5534. this.WorkerRowDeleted(this, new WorkerRowChangeEvent(((WorkerRow)(e.Row)), e.Action));
  5535. }
  5536. }
  5537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5539. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  5540. base.OnRowDeleting(e);
  5541. if ((this.WorkerRowDeleting != null)) {
  5542. this.WorkerRowDeleting(this, new WorkerRowChangeEvent(((WorkerRow)(e.Row)), e.Action));
  5543. }
  5544. }
  5545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5547. public void RemoveWorkerRow(WorkerRow row) {
  5548. this.Rows.Remove(row);
  5549. }
  5550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5552. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  5553. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  5554. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  5555. DataSet1 ds = new DataSet1();
  5556. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  5557. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  5558. any1.MinOccurs = new decimal(0);
  5559. any1.MaxOccurs = decimal.MaxValue;
  5560. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5561. sequence.Items.Add(any1);
  5562. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  5563. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  5564. any2.MinOccurs = new decimal(1);
  5565. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5566. sequence.Items.Add(any2);
  5567. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5568. attribute1.Name = "namespace";
  5569. attribute1.FixedValue = ds.Namespace;
  5570. type.Attributes.Add(attribute1);
  5571. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5572. attribute2.Name = "tableTypeName";
  5573. attribute2.FixedValue = "WorkerDataTable";
  5574. type.Attributes.Add(attribute2);
  5575. type.Particle = sequence;
  5576. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  5577. if (xs.Contains(dsSchema.TargetNamespace)) {
  5578. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  5579. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  5580. try {
  5581. global::System.Xml.Schema.XmlSchema schema = null;
  5582. dsSchema.Write(s1);
  5583. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  5584. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  5585. s2.SetLength(0);
  5586. schema.Write(s2);
  5587. if ((s1.Length == s2.Length)) {
  5588. s1.Position = 0;
  5589. s2.Position = 0;
  5590. for (; ((s1.Position != s1.Length)
  5591. && (s1.ReadByte() == s2.ReadByte())); ) {
  5592. ;
  5593. }
  5594. if ((s1.Position == s1.Length)) {
  5595. return type;
  5596. }
  5597. }
  5598. }
  5599. }
  5600. finally {
  5601. if ((s1 != null)) {
  5602. s1.Close();
  5603. }
  5604. if ((s2 != null)) {
  5605. s2.Close();
  5606. }
  5607. }
  5608. }
  5609. xs.Add(dsSchema);
  5610. return type;
  5611. }
  5612. }
  5613. /// <summary>
  5614. ///Represents the strongly named DataTable class.
  5615. ///</summary>
  5616. [global::System.Serializable()]
  5617. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  5618. public partial class WorkersDataTable : global::System.Data.TypedTableBase<WorkersRow> {
  5619. private global::System.Data.DataColumn columnID;
  5620. private global::System.Data.DataColumn columnLogin;
  5621. private global::System.Data.DataColumn columnSalary;
  5622. private global::System.Data.DataColumn columnAge;
  5623. private global::System.Data.DataColumn columnDate;
  5624. private global::System.Data.DataColumn columnDescription;
  5625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5627. public WorkersDataTable() {
  5628. this.TableName = "Workers";
  5629. this.BeginInit();
  5630. this.InitClass();
  5631. this.EndInit();
  5632. }
  5633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5635. internal WorkersDataTable(global::System.Data.DataTable table) {
  5636. this.TableName = table.TableName;
  5637. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  5638. this.CaseSensitive = table.CaseSensitive;
  5639. }
  5640. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  5641. this.Locale = table.Locale;
  5642. }
  5643. if ((table.Namespace != table.DataSet.Namespace)) {
  5644. this.Namespace = table.Namespace;
  5645. }
  5646. this.Prefix = table.Prefix;
  5647. this.MinimumCapacity = table.MinimumCapacity;
  5648. }
  5649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5651. protected WorkersDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  5652. base(info, context) {
  5653. this.InitVars();
  5654. }
  5655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5657. public global::System.Data.DataColumn IDColumn {
  5658. get {
  5659. return this.columnID;
  5660. }
  5661. }
  5662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5664. public global::System.Data.DataColumn LoginColumn {
  5665. get {
  5666. return this.columnLogin;
  5667. }
  5668. }
  5669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5671. public global::System.Data.DataColumn SalaryColumn {
  5672. get {
  5673. return this.columnSalary;
  5674. }
  5675. }
  5676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5678. public global::System.Data.DataColumn AgeColumn {
  5679. get {
  5680. return this.columnAge;
  5681. }
  5682. }
  5683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5685. public global::System.Data.DataColumn DateColumn {
  5686. get {
  5687. return this.columnDate;
  5688. }
  5689. }
  5690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5692. public global::System.Data.DataColumn DescriptionColumn {
  5693. get {
  5694. return this.columnDescription;
  5695. }
  5696. }
  5697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5699. [global::System.ComponentModel.Browsable(false)]
  5700. public int Count {
  5701. get {
  5702. return this.Rows.Count;
  5703. }
  5704. }
  5705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5707. public WorkersRow this[int index] {
  5708. get {
  5709. return ((WorkersRow)(this.Rows[index]));
  5710. }
  5711. }
  5712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5713. public event WorkersRowChangeEventHandler WorkersRowChanging;
  5714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5715. public event WorkersRowChangeEventHandler WorkersRowChanged;
  5716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5717. public event WorkersRowChangeEventHandler WorkersRowDeleting;
  5718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5719. public event WorkersRowChangeEventHandler WorkersRowDeleted;
  5720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5722. public void AddWorkersRow(WorkersRow row) {
  5723. this.Rows.Add(row);
  5724. }
  5725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5727. public WorkersRow AddWorkersRow(string Login, decimal Salary, int Age, System.DateTime Date, string Description) {
  5728. WorkersRow rowWorkersRow = ((WorkersRow)(this.NewRow()));
  5729. object[] columnValuesArray = new object[] {
  5730. null,
  5731. Login,
  5732. Salary,
  5733. Age,
  5734. Date,
  5735. Description};
  5736. rowWorkersRow.ItemArray = columnValuesArray;
  5737. this.Rows.Add(rowWorkersRow);
  5738. return rowWorkersRow;
  5739. }
  5740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5742. public WorkersRow FindByID(int ID) {
  5743. return ((WorkersRow)(this.Rows.Find(new object[] {
  5744. ID})));
  5745. }
  5746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5748. public override global::System.Data.DataTable Clone() {
  5749. WorkersDataTable cln = ((WorkersDataTable)(base.Clone()));
  5750. cln.InitVars();
  5751. return cln;
  5752. }
  5753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5755. protected override global::System.Data.DataTable CreateInstance() {
  5756. return new WorkersDataTable();
  5757. }
  5758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5760. internal void InitVars() {
  5761. this.columnID = base.Columns["ID"];
  5762. this.columnLogin = base.Columns["Login"];
  5763. this.columnSalary = base.Columns["Salary"];
  5764. this.columnAge = base.Columns["Age"];
  5765. this.columnDate = base.Columns["Date"];
  5766. this.columnDescription = base.Columns["Description"];
  5767. }
  5768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5770. private void InitClass() {
  5771. this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
  5772. base.Columns.Add(this.columnID);
  5773. this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
  5774. base.Columns.Add(this.columnLogin);
  5775. this.columnSalary = new global::System.Data.DataColumn("Salary", typeof(decimal), null, global::System.Data.MappingType.Element);
  5776. base.Columns.Add(this.columnSalary);
  5777. this.columnAge = new global::System.Data.DataColumn("Age", typeof(int), null, global::System.Data.MappingType.Element);
  5778. base.Columns.Add(this.columnAge);
  5779. this.columnDate = new global::System.Data.DataColumn("Date", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  5780. base.Columns.Add(this.columnDate);
  5781. this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
  5782. base.Columns.Add(this.columnDescription);
  5783. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  5784. this.columnID}, true));
  5785. this.columnID.AutoIncrement = true;
  5786. this.columnID.AutoIncrementSeed = -1;
  5787. this.columnID.AutoIncrementStep = -1;
  5788. this.columnID.AllowDBNull = false;
  5789. this.columnID.ReadOnly = true;
  5790. this.columnID.Unique = true;
  5791. this.columnLogin.MaxLength = 255;
  5792. this.columnDescription.MaxLength = 2147483647;
  5793. }
  5794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5796. public WorkersRow NewWorkersRow() {
  5797. return ((WorkersRow)(this.NewRow()));
  5798. }
  5799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5801. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  5802. return new WorkersRow(builder);
  5803. }
  5804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5806. protected override global::System.Type GetRowType() {
  5807. return typeof(WorkersRow);
  5808. }
  5809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5811. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  5812. base.OnRowChanged(e);
  5813. if ((this.WorkersRowChanged != null)) {
  5814. this.WorkersRowChanged(this, new WorkersRowChangeEvent(((WorkersRow)(e.Row)), e.Action));
  5815. }
  5816. }
  5817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5819. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  5820. base.OnRowChanging(e);
  5821. if ((this.WorkersRowChanging != null)) {
  5822. this.WorkersRowChanging(this, new WorkersRowChangeEvent(((WorkersRow)(e.Row)), e.Action));
  5823. }
  5824. }
  5825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5827. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  5828. base.OnRowDeleted(e);
  5829. if ((this.WorkersRowDeleted != null)) {
  5830. this.WorkersRowDeleted(this, new WorkersRowChangeEvent(((WorkersRow)(e.Row)), e.Action));
  5831. }
  5832. }
  5833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5835. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  5836. base.OnRowDeleting(e);
  5837. if ((this.WorkersRowDeleting != null)) {
  5838. this.WorkersRowDeleting(this, new WorkersRowChangeEvent(((WorkersRow)(e.Row)), e.Action));
  5839. }
  5840. }
  5841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5843. public void RemoveWorkersRow(WorkersRow row) {
  5844. this.Rows.Remove(row);
  5845. }
  5846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5848. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  5849. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  5850. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  5851. DataSet1 ds = new DataSet1();
  5852. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  5853. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  5854. any1.MinOccurs = new decimal(0);
  5855. any1.MaxOccurs = decimal.MaxValue;
  5856. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5857. sequence.Items.Add(any1);
  5858. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  5859. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  5860. any2.MinOccurs = new decimal(1);
  5861. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  5862. sequence.Items.Add(any2);
  5863. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5864. attribute1.Name = "namespace";
  5865. attribute1.FixedValue = ds.Namespace;
  5866. type.Attributes.Add(attribute1);
  5867. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  5868. attribute2.Name = "tableTypeName";
  5869. attribute2.FixedValue = "WorkersDataTable";
  5870. type.Attributes.Add(attribute2);
  5871. type.Particle = sequence;
  5872. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  5873. if (xs.Contains(dsSchema.TargetNamespace)) {
  5874. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  5875. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  5876. try {
  5877. global::System.Xml.Schema.XmlSchema schema = null;
  5878. dsSchema.Write(s1);
  5879. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  5880. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  5881. s2.SetLength(0);
  5882. schema.Write(s2);
  5883. if ((s1.Length == s2.Length)) {
  5884. s1.Position = 0;
  5885. s2.Position = 0;
  5886. for (; ((s1.Position != s1.Length)
  5887. && (s1.ReadByte() == s2.ReadByte())); ) {
  5888. ;
  5889. }
  5890. if ((s1.Position == s1.Length)) {
  5891. return type;
  5892. }
  5893. }
  5894. }
  5895. }
  5896. finally {
  5897. if ((s1 != null)) {
  5898. s1.Close();
  5899. }
  5900. if ((s2 != null)) {
  5901. s2.Close();
  5902. }
  5903. }
  5904. }
  5905. xs.Add(dsSchema);
  5906. return type;
  5907. }
  5908. }
  5909. /// <summary>
  5910. ///Represents the strongly named DataTable class.
  5911. ///</summary>
  5912. [global::System.Serializable()]
  5913. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  5914. public partial class ПродажиDataTable : global::System.Data.TypedTableBase<ПродажиRow> {
  5915. private global::System.Data.DataColumn columnкод_товара;
  5916. private global::System.Data.DataColumn columnдата;
  5917. private global::System.Data.DataColumn columnколичество;
  5918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5920. public ПродажиDataTable() {
  5921. this.TableName = "Продажи";
  5922. this.BeginInit();
  5923. this.InitClass();
  5924. this.EndInit();
  5925. }
  5926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5928. internal ПродажиDataTable(global::System.Data.DataTable table) {
  5929. this.TableName = table.TableName;
  5930. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  5931. this.CaseSensitive = table.CaseSensitive;
  5932. }
  5933. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  5934. this.Locale = table.Locale;
  5935. }
  5936. if ((table.Namespace != table.DataSet.Namespace)) {
  5937. this.Namespace = table.Namespace;
  5938. }
  5939. this.Prefix = table.Prefix;
  5940. this.MinimumCapacity = table.MinimumCapacity;
  5941. }
  5942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5944. protected ПродажиDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  5945. base(info, context) {
  5946. this.InitVars();
  5947. }
  5948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5950. public global::System.Data.DataColumn код_товараColumn {
  5951. get {
  5952. return this.columnкод_товара;
  5953. }
  5954. }
  5955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5957. public global::System.Data.DataColumn датаColumn {
  5958. get {
  5959. return this.columnдата;
  5960. }
  5961. }
  5962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5964. public global::System.Data.DataColumn количествоColumn {
  5965. get {
  5966. return this.columnколичество;
  5967. }
  5968. }
  5969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5971. [global::System.ComponentModel.Browsable(false)]
  5972. public int Count {
  5973. get {
  5974. return this.Rows.Count;
  5975. }
  5976. }
  5977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5979. public ПродажиRow this[int index] {
  5980. get {
  5981. return ((ПродажиRow)(this.Rows[index]));
  5982. }
  5983. }
  5984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5985. public event ПродажиRowChangeEventHandler ПродажиRowChanging;
  5986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5987. public event ПродажиRowChangeEventHandler ПродажиRowChanged;
  5988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5989. public event ПродажиRowChangeEventHandler ПродажиRowDeleting;
  5990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5991. public event ПродажиRowChangeEventHandler ПродажиRowDeleted;
  5992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5994. public void AddПродажиRow(ПродажиRow row) {
  5995. this.Rows.Add(row);
  5996. }
  5997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5999. public ПродажиRow AddПродажиRow(int код_товара, string дата, string количество) {
  6000. ПродажиRow rowПродажиRow = ((ПродажиRow)(this.NewRow()));
  6001. object[] columnValuesArray = new object[] {
  6002. код_товара,
  6003. дата,
  6004. количество};
  6005. rowПродажиRow.ItemArray = columnValuesArray;
  6006. this.Rows.Add(rowПродажиRow);
  6007. return rowПродажиRow;
  6008. }
  6009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6011. public ПродажиRow FindByкод_товара(int код_товара) {
  6012. return ((ПродажиRow)(this.Rows.Find(new object[] {
  6013. код_товара})));
  6014. }
  6015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6017. public override global::System.Data.DataTable Clone() {
  6018. ПродажиDataTable cln = ((ПродажиDataTable)(base.Clone()));
  6019. cln.InitVars();
  6020. return cln;
  6021. }
  6022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6024. protected override global::System.Data.DataTable CreateInstance() {
  6025. return new ПродажиDataTable();
  6026. }
  6027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6029. internal void InitVars() {
  6030. this.columnкод_товара = base.Columns["код_товара"];
  6031. this.columnдата = base.Columns["дата"];
  6032. this.columnколичество = base.Columns["количество"];
  6033. }
  6034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6036. private void InitClass() {
  6037. this.columnкод_товара = new global::System.Data.DataColumn("код_товара", typeof(int), null, global::System.Data.MappingType.Element);
  6038. base.Columns.Add(this.columnкод_товара);
  6039. this.columnдата = new global::System.Data.DataColumn("дата", typeof(string), null, global::System.Data.MappingType.Element);
  6040. base.Columns.Add(this.columnдата);
  6041. this.columnколичество = new global::System.Data.DataColumn("количество", typeof(string), null, global::System.Data.MappingType.Element);
  6042. base.Columns.Add(this.columnколичество);
  6043. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  6044. this.columnкод_товара}, true));
  6045. this.columnкод_товара.AllowDBNull = false;
  6046. this.columnкод_товара.Unique = true;
  6047. this.columnдата.MaxLength = 50;
  6048. this.columnколичество.MaxLength = 50;
  6049. }
  6050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6052. public ПродажиRow NewПродажиRow() {
  6053. return ((ПродажиRow)(this.NewRow()));
  6054. }
  6055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6057. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  6058. return new ПродажиRow(builder);
  6059. }
  6060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6062. protected override global::System.Type GetRowType() {
  6063. return typeof(ПродажиRow);
  6064. }
  6065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6067. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  6068. base.OnRowChanged(e);
  6069. if ((this.ПродажиRowChanged != null)) {
  6070. this.ПродажиRowChanged(this, new ПродажиRowChangeEvent(((ПродажиRow)(e.Row)), e.Action));
  6071. }
  6072. }
  6073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6075. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  6076. base.OnRowChanging(e);
  6077. if ((this.ПродажиRowChanging != null)) {
  6078. this.ПродажиRowChanging(this, new ПродажиRowChangeEvent(((ПродажиRow)(e.Row)), e.Action));
  6079. }
  6080. }
  6081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6083. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  6084. base.OnRowDeleted(e);
  6085. if ((this.ПродажиRowDeleted != null)) {
  6086. this.ПродажиRowDeleted(this, new ПродажиRowChangeEvent(((ПродажиRow)(e.Row)), e.Action));
  6087. }
  6088. }
  6089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6091. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  6092. base.OnRowDeleting(e);
  6093. if ((this.ПродажиRowDeleting != null)) {
  6094. this.ПродажиRowDeleting(this, new ПродажиRowChangeEvent(((ПродажиRow)(e.Row)), e.Action));
  6095. }
  6096. }
  6097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6099. public void RemoveПродажиRow(ПродажиRow row) {
  6100. this.Rows.Remove(row);
  6101. }
  6102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6104. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  6105. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  6106. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  6107. DataSet1 ds = new DataSet1();
  6108. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  6109. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  6110. any1.MinOccurs = new decimal(0);
  6111. any1.MaxOccurs = decimal.MaxValue;
  6112. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  6113. sequence.Items.Add(any1);
  6114. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  6115. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  6116. any2.MinOccurs = new decimal(1);
  6117. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  6118. sequence.Items.Add(any2);
  6119. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  6120. attribute1.Name = "namespace";
  6121. attribute1.FixedValue = ds.Namespace;
  6122. type.Attributes.Add(attribute1);
  6123. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  6124. attribute2.Name = "tableTypeName";
  6125. attribute2.FixedValue = "ПродажиDataTable";
  6126. type.Attributes.Add(attribute2);
  6127. type.Particle = sequence;
  6128. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  6129. if (xs.Contains(dsSchema.TargetNamespace)) {
  6130. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  6131. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  6132. try {
  6133. global::System.Xml.Schema.XmlSchema schema = null;
  6134. dsSchema.Write(s1);
  6135. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  6136. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  6137. s2.SetLength(0);
  6138. schema.Write(s2);
  6139. if ((s1.Length == s2.Length)) {
  6140. s1.Position = 0;
  6141. s2.Position = 0;
  6142. for (; ((s1.Position != s1.Length)
  6143. && (s1.ReadByte() == s2.ReadByte())); ) {
  6144. ;
  6145. }
  6146. if ((s1.Position == s1.Length)) {
  6147. return type;
  6148. }
  6149. }
  6150. }
  6151. }
  6152. finally {
  6153. if ((s1 != null)) {
  6154. s1.Close();
  6155. }
  6156. if ((s2 != null)) {
  6157. s2.Close();
  6158. }
  6159. }
  6160. }
  6161. xs.Add(dsSchema);
  6162. return type;
  6163. }
  6164. }
  6165. /// <summary>
  6166. ///Represents the strongly named DataTable class.
  6167. ///</summary>
  6168. [global::System.Serializable()]
  6169. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  6170. public partial class ТоварыDataTable : global::System.Data.TypedTableBase<ТоварыRow> {
  6171. private global::System.Data.DataColumn columnкод;
  6172. private global::System.Data.DataColumn columnназвание;
  6173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6175. public ТоварыDataTable() {
  6176. this.TableName = "Товары";
  6177. this.BeginInit();
  6178. this.InitClass();
  6179. this.EndInit();
  6180. }
  6181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6183. internal ТоварыDataTable(global::System.Data.DataTable table) {
  6184. this.TableName = table.TableName;
  6185. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  6186. this.CaseSensitive = table.CaseSensitive;
  6187. }
  6188. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  6189. this.Locale = table.Locale;
  6190. }
  6191. if ((table.Namespace != table.DataSet.Namespace)) {
  6192. this.Namespace = table.Namespace;
  6193. }
  6194. this.Prefix = table.Prefix;
  6195. this.MinimumCapacity = table.MinimumCapacity;
  6196. }
  6197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6199. protected ТоварыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  6200. base(info, context) {
  6201. this.InitVars();
  6202. }
  6203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6205. public global::System.Data.DataColumn кодColumn {
  6206. get {
  6207. return this.columnкод;
  6208. }
  6209. }
  6210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6212. public global::System.Data.DataColumn названиеColumn {
  6213. get {
  6214. return this.columnназвание;
  6215. }
  6216. }
  6217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6219. [global::System.ComponentModel.Browsable(false)]
  6220. public int Count {
  6221. get {
  6222. return this.Rows.Count;
  6223. }
  6224. }
  6225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6227. public ТоварыRow this[int index] {
  6228. get {
  6229. return ((ТоварыRow)(this.Rows[index]));
  6230. }
  6231. }
  6232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6233. public event ТоварыRowChangeEventHandler ТоварыRowChanging;
  6234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6235. public event ТоварыRowChangeEventHandler ТоварыRowChanged;
  6236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6237. public event ТоварыRowChangeEventHandler ТоварыRowDeleting;
  6238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6239. public event ТоварыRowChangeEventHandler ТоварыRowDeleted;
  6240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6242. public void AddТоварыRow(ТоварыRow row) {
  6243. this.Rows.Add(row);
  6244. }
  6245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6247. public ТоварыRow AddТоварыRow(int код, string название) {
  6248. ТоварыRow rowТоварыRow = ((ТоварыRow)(this.NewRow()));
  6249. object[] columnValuesArray = new object[] {
  6250. код,
  6251. название};
  6252. rowТоварыRow.ItemArray = columnValuesArray;
  6253. this.Rows.Add(rowТоварыRow);
  6254. return rowТоварыRow;
  6255. }
  6256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6258. public override global::System.Data.DataTable Clone() {
  6259. ТоварыDataTable cln = ((ТоварыDataTable)(base.Clone()));
  6260. cln.InitVars();
  6261. return cln;
  6262. }
  6263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6265. protected override global::System.Data.DataTable CreateInstance() {
  6266. return new ТоварыDataTable();
  6267. }
  6268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6270. internal void InitVars() {
  6271. this.columnкод = base.Columns["код"];
  6272. this.columnназвание = base.Columns["название"];
  6273. }
  6274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6276. private void InitClass() {
  6277. this.columnкод = new global::System.Data.DataColumn("код", typeof(int), null, global::System.Data.MappingType.Element);
  6278. base.Columns.Add(this.columnкод);
  6279. this.columnназвание = new global::System.Data.DataColumn("название", typeof(string), null, global::System.Data.MappingType.Element);
  6280. base.Columns.Add(this.columnназвание);
  6281. this.columnназвание.MaxLength = 50;
  6282. }
  6283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6285. public ТоварыRow NewТоварыRow() {
  6286. return ((ТоварыRow)(this.NewRow()));
  6287. }
  6288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6290. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  6291. return new ТоварыRow(builder);
  6292. }
  6293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6295. protected override global::System.Type GetRowType() {
  6296. return typeof(ТоварыRow);
  6297. }
  6298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6300. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  6301. base.OnRowChanged(e);
  6302. if ((this.ТоварыRowChanged != null)) {
  6303. this.ТоварыRowChanged(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  6304. }
  6305. }
  6306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6308. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  6309. base.OnRowChanging(e);
  6310. if ((this.ТоварыRowChanging != null)) {
  6311. this.ТоварыRowChanging(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  6312. }
  6313. }
  6314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6316. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  6317. base.OnRowDeleted(e);
  6318. if ((this.ТоварыRowDeleted != null)) {
  6319. this.ТоварыRowDeleted(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  6320. }
  6321. }
  6322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6324. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  6325. base.OnRowDeleting(e);
  6326. if ((this.ТоварыRowDeleting != null)) {
  6327. this.ТоварыRowDeleting(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  6328. }
  6329. }
  6330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6332. public void RemoveТоварыRow(ТоварыRow row) {
  6333. this.Rows.Remove(row);
  6334. }
  6335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6337. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  6338. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  6339. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  6340. DataSet1 ds = new DataSet1();
  6341. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  6342. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  6343. any1.MinOccurs = new decimal(0);
  6344. any1.MaxOccurs = decimal.MaxValue;
  6345. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  6346. sequence.Items.Add(any1);
  6347. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  6348. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  6349. any2.MinOccurs = new decimal(1);
  6350. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  6351. sequence.Items.Add(any2);
  6352. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  6353. attribute1.Name = "namespace";
  6354. attribute1.FixedValue = ds.Namespace;
  6355. type.Attributes.Add(attribute1);
  6356. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  6357. attribute2.Name = "tableTypeName";
  6358. attribute2.FixedValue = "ТоварыDataTable";
  6359. type.Attributes.Add(attribute2);
  6360. type.Particle = sequence;
  6361. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  6362. if (xs.Contains(dsSchema.TargetNamespace)) {
  6363. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  6364. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  6365. try {
  6366. global::System.Xml.Schema.XmlSchema schema = null;
  6367. dsSchema.Write(s1);
  6368. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  6369. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  6370. s2.SetLength(0);
  6371. schema.Write(s2);
  6372. if ((s1.Length == s2.Length)) {
  6373. s1.Position = 0;
  6374. s2.Position = 0;
  6375. for (; ((s1.Position != s1.Length)
  6376. && (s1.ReadByte() == s2.ReadByte())); ) {
  6377. ;
  6378. }
  6379. if ((s1.Position == s1.Length)) {
  6380. return type;
  6381. }
  6382. }
  6383. }
  6384. }
  6385. finally {
  6386. if ((s1 != null)) {
  6387. s1.Close();
  6388. }
  6389. if ((s2 != null)) {
  6390. s2.Close();
  6391. }
  6392. }
  6393. }
  6394. xs.Add(dsSchema);
  6395. return type;
  6396. }
  6397. }
  6398. /// <summary>
  6399. ///Represents strongly named DataRow class.
  6400. ///</summary>
  6401. public partial class billinRow : global::System.Data.DataRow {
  6402. private billinDataTable tablebillin;
  6403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6405. internal billinRow(global::System.Data.DataRowBuilder rb) :
  6406. base(rb) {
  6407. this.tablebillin = ((billinDataTable)(this.Table));
  6408. }
  6409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6411. public string emailpayer {
  6412. get {
  6413. try {
  6414. return ((string)(this[this.tablebillin.emailpayerColumn]));
  6415. }
  6416. catch (global::System.InvalidCastException e) {
  6417. throw new global::System.Data.StrongTypingException("Значение для столбца \'emailpayer\' в таблице \'billin\' равно DBNull.", e);
  6418. }
  6419. }
  6420. set {
  6421. this[this.tablebillin.emailpayerColumn] = value;
  6422. }
  6423. }
  6424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6426. public string emailrecipient {
  6427. get {
  6428. try {
  6429. return ((string)(this[this.tablebillin.emailrecipientColumn]));
  6430. }
  6431. catch (global::System.InvalidCastException e) {
  6432. throw new global::System.Data.StrongTypingException("Значение для столбца \'emailrecipient\' в таблице \'billin\' равно DBNull.", e);
  6433. }
  6434. }
  6435. set {
  6436. this[this.tablebillin.emailrecipientColumn] = value;
  6437. }
  6438. }
  6439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6441. public decimal SUM {
  6442. get {
  6443. try {
  6444. return ((decimal)(this[this.tablebillin.SUMColumn]));
  6445. }
  6446. catch (global::System.InvalidCastException e) {
  6447. throw new global::System.Data.StrongTypingException("Значение для столбца \'SUM\' в таблице \'billin\' равно DBNull.", e);
  6448. }
  6449. }
  6450. set {
  6451. this[this.tablebillin.SUMColumn] = value;
  6452. }
  6453. }
  6454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6456. public string CURRENCY {
  6457. get {
  6458. try {
  6459. return ((string)(this[this.tablebillin.CURRENCYColumn]));
  6460. }
  6461. catch (global::System.InvalidCastException e) {
  6462. throw new global::System.Data.StrongTypingException("Значение для столбца \'CURRENCY\' в таблице \'billin\' равно DBNull.", e);
  6463. }
  6464. }
  6465. set {
  6466. this[this.tablebillin.CURRENCYColumn] = value;
  6467. }
  6468. }
  6469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6471. public System.DateTime BILLINGDATE {
  6472. get {
  6473. try {
  6474. return ((global::System.DateTime)(this[this.tablebillin.BILLINGDATEColumn]));
  6475. }
  6476. catch (global::System.InvalidCastException e) {
  6477. throw new global::System.Data.StrongTypingException("Значение для столбца \'BILLINGDATE\' в таблице \'billin\' равно DBNull.", e);
  6478. }
  6479. }
  6480. set {
  6481. this[this.tablebillin.BILLINGDATEColumn] = value;
  6482. }
  6483. }
  6484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6486. public string COMMENT {
  6487. get {
  6488. try {
  6489. return ((string)(this[this.tablebillin.COMMENTColumn]));
  6490. }
  6491. catch (global::System.InvalidCastException e) {
  6492. throw new global::System.Data.StrongTypingException("Значение для столбца \'COMMENT\' в таблице \'billin\' равно DBNull.", e);
  6493. }
  6494. }
  6495. set {
  6496. this[this.tablebillin.COMMENTColumn] = value;
  6497. }
  6498. }
  6499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6501. public bool IsemailpayerNull() {
  6502. return this.IsNull(this.tablebillin.emailpayerColumn);
  6503. }
  6504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6506. public void SetemailpayerNull() {
  6507. this[this.tablebillin.emailpayerColumn] = global::System.Convert.DBNull;
  6508. }
  6509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6511. public bool IsemailrecipientNull() {
  6512. return this.IsNull(this.tablebillin.emailrecipientColumn);
  6513. }
  6514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6516. public void SetemailrecipientNull() {
  6517. this[this.tablebillin.emailrecipientColumn] = global::System.Convert.DBNull;
  6518. }
  6519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6521. public bool IsSUMNull() {
  6522. return this.IsNull(this.tablebillin.SUMColumn);
  6523. }
  6524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6526. public void SetSUMNull() {
  6527. this[this.tablebillin.SUMColumn] = global::System.Convert.DBNull;
  6528. }
  6529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6531. public bool IsCURRENCYNull() {
  6532. return this.IsNull(this.tablebillin.CURRENCYColumn);
  6533. }
  6534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6536. public void SetCURRENCYNull() {
  6537. this[this.tablebillin.CURRENCYColumn] = global::System.Convert.DBNull;
  6538. }
  6539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6541. public bool IsBILLINGDATENull() {
  6542. return this.IsNull(this.tablebillin.BILLINGDATEColumn);
  6543. }
  6544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6546. public void SetBILLINGDATENull() {
  6547. this[this.tablebillin.BILLINGDATEColumn] = global::System.Convert.DBNull;
  6548. }
  6549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6551. public bool IsCOMMENTNull() {
  6552. return this.IsNull(this.tablebillin.COMMENTColumn);
  6553. }
  6554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6556. public void SetCOMMENTNull() {
  6557. this[this.tablebillin.COMMENTColumn] = global::System.Convert.DBNull;
  6558. }
  6559. }
  6560. /// <summary>
  6561. ///Represents strongly named DataRow class.
  6562. ///</summary>
  6563. public partial class billingRow : global::System.Data.DataRow {
  6564. private billingDataTable tablebilling;
  6565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6567. internal billingRow(global::System.Data.DataRowBuilder rb) :
  6568. base(rb) {
  6569. this.tablebilling = ((billingDataTable)(this.Table));
  6570. }
  6571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6573. public string emailpayer {
  6574. get {
  6575. try {
  6576. return ((string)(this[this.tablebilling.emailpayerColumn]));
  6577. }
  6578. catch (global::System.InvalidCastException e) {
  6579. throw new global::System.Data.StrongTypingException("Значение для столбца \'emailpayer\' в таблице \'billing\' равно DBNull.", e);
  6580. }
  6581. }
  6582. set {
  6583. this[this.tablebilling.emailpayerColumn] = value;
  6584. }
  6585. }
  6586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6588. public string emailrecipient {
  6589. get {
  6590. try {
  6591. return ((string)(this[this.tablebilling.emailrecipientColumn]));
  6592. }
  6593. catch (global::System.InvalidCastException e) {
  6594. throw new global::System.Data.StrongTypingException("Значение для столбца \'emailrecipient\' в таблице \'billing\' равно DBNull.", e);
  6595. }
  6596. }
  6597. set {
  6598. this[this.tablebilling.emailrecipientColumn] = value;
  6599. }
  6600. }
  6601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6603. public decimal SUM {
  6604. get {
  6605. try {
  6606. return ((decimal)(this[this.tablebilling.SUMColumn]));
  6607. }
  6608. catch (global::System.InvalidCastException e) {
  6609. throw new global::System.Data.StrongTypingException("Значение для столбца \'SUM\' в таблице \'billing\' равно DBNull.", e);
  6610. }
  6611. }
  6612. set {
  6613. this[this.tablebilling.SUMColumn] = value;
  6614. }
  6615. }
  6616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6618. public string CURRENCY {
  6619. get {
  6620. try {
  6621. return ((string)(this[this.tablebilling.CURRENCYColumn]));
  6622. }
  6623. catch (global::System.InvalidCastException e) {
  6624. throw new global::System.Data.StrongTypingException("Значение для столбца \'CURRENCY\' в таблице \'billing\' равно DBNull.", e);
  6625. }
  6626. }
  6627. set {
  6628. this[this.tablebilling.CURRENCYColumn] = value;
  6629. }
  6630. }
  6631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6633. public System.DateTime BILLINGDATE {
  6634. get {
  6635. try {
  6636. return ((global::System.DateTime)(this[this.tablebilling.BILLINGDATEColumn]));
  6637. }
  6638. catch (global::System.InvalidCastException e) {
  6639. throw new global::System.Data.StrongTypingException("Значение для столбца \'BILLINGDATE\' в таблице \'billing\' равно DBNull.", e);
  6640. }
  6641. }
  6642. set {
  6643. this[this.tablebilling.BILLINGDATEColumn] = value;
  6644. }
  6645. }
  6646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6648. public string COMMENT {
  6649. get {
  6650. try {
  6651. return ((string)(this[this.tablebilling.COMMENTColumn]));
  6652. }
  6653. catch (global::System.InvalidCastException e) {
  6654. throw new global::System.Data.StrongTypingException("Значение для столбца \'COMMENT\' в таблице \'billing\' равно DBNull.", e);
  6655. }
  6656. }
  6657. set {
  6658. this[this.tablebilling.COMMENTColumn] = value;
  6659. }
  6660. }
  6661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6663. public bool IsemailpayerNull() {
  6664. return this.IsNull(this.tablebilling.emailpayerColumn);
  6665. }
  6666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6668. public void SetemailpayerNull() {
  6669. this[this.tablebilling.emailpayerColumn] = global::System.Convert.DBNull;
  6670. }
  6671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6673. public bool IsemailrecipientNull() {
  6674. return this.IsNull(this.tablebilling.emailrecipientColumn);
  6675. }
  6676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6678. public void SetemailrecipientNull() {
  6679. this[this.tablebilling.emailrecipientColumn] = global::System.Convert.DBNull;
  6680. }
  6681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6683. public bool IsSUMNull() {
  6684. return this.IsNull(this.tablebilling.SUMColumn);
  6685. }
  6686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6688. public void SetSUMNull() {
  6689. this[this.tablebilling.SUMColumn] = global::System.Convert.DBNull;
  6690. }
  6691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6693. public bool IsCURRENCYNull() {
  6694. return this.IsNull(this.tablebilling.CURRENCYColumn);
  6695. }
  6696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6698. public void SetCURRENCYNull() {
  6699. this[this.tablebilling.CURRENCYColumn] = global::System.Convert.DBNull;
  6700. }
  6701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6703. public bool IsBILLINGDATENull() {
  6704. return this.IsNull(this.tablebilling.BILLINGDATEColumn);
  6705. }
  6706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6708. public void SetBILLINGDATENull() {
  6709. this[this.tablebilling.BILLINGDATEColumn] = global::System.Convert.DBNull;
  6710. }
  6711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6713. public bool IsCOMMENTNull() {
  6714. return this.IsNull(this.tablebilling.COMMENTColumn);
  6715. }
  6716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6718. public void SetCOMMENTNull() {
  6719. this[this.tablebilling.COMMENTColumn] = global::System.Convert.DBNull;
  6720. }
  6721. }
  6722. /// <summary>
  6723. ///Represents strongly named DataRow class.
  6724. ///</summary>
  6725. public partial class OrderRow : global::System.Data.DataRow {
  6726. private OrderDataTable tableOrder;
  6727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6729. internal OrderRow(global::System.Data.DataRowBuilder rb) :
  6730. base(rb) {
  6731. this.tableOrder = ((OrderDataTable)(this.Table));
  6732. }
  6733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6735. public int OrderID {
  6736. get {
  6737. return ((int)(this[this.tableOrder.OrderIDColumn]));
  6738. }
  6739. set {
  6740. this[this.tableOrder.OrderIDColumn] = value;
  6741. }
  6742. }
  6743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6745. public string OrderStatus {
  6746. get {
  6747. return ((string)(this[this.tableOrder.OrderStatusColumn]));
  6748. }
  6749. set {
  6750. this[this.tableOrder.OrderStatusColumn] = value;
  6751. }
  6752. }
  6753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6755. public System.DateTime OrderDeliveryDate {
  6756. get {
  6757. return ((global::System.DateTime)(this[this.tableOrder.OrderDeliveryDateColumn]));
  6758. }
  6759. set {
  6760. this[this.tableOrder.OrderDeliveryDateColumn] = value;
  6761. }
  6762. }
  6763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6765. public string OrderPickupPoint {
  6766. get {
  6767. return ((string)(this[this.tableOrder.OrderPickupPointColumn]));
  6768. }
  6769. set {
  6770. this[this.tableOrder.OrderPickupPointColumn] = value;
  6771. }
  6772. }
  6773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6775. public OrderProductRow[] GetOrderProductRows() {
  6776. if ((this.Table.ChildRelations["FK__OrderProd__Order__405A880E"] == null)) {
  6777. return new OrderProductRow[0];
  6778. }
  6779. else {
  6780. return ((OrderProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK__OrderProd__Order__405A880E"])));
  6781. }
  6782. }
  6783. }
  6784. /// <summary>
  6785. ///Represents strongly named DataRow class.
  6786. ///</summary>
  6787. public partial class OrderProductRow : global::System.Data.DataRow {
  6788. private OrderProductDataTable tableOrderProduct;
  6789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6791. internal OrderProductRow(global::System.Data.DataRowBuilder rb) :
  6792. base(rb) {
  6793. this.tableOrderProduct = ((OrderProductDataTable)(this.Table));
  6794. }
  6795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6797. public int OrderID {
  6798. get {
  6799. return ((int)(this[this.tableOrderProduct.OrderIDColumn]));
  6800. }
  6801. set {
  6802. this[this.tableOrderProduct.OrderIDColumn] = value;
  6803. }
  6804. }
  6805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6807. public string ProductArticleNumber {
  6808. get {
  6809. return ((string)(this[this.tableOrderProduct.ProductArticleNumberColumn]));
  6810. }
  6811. set {
  6812. this[this.tableOrderProduct.ProductArticleNumberColumn] = value;
  6813. }
  6814. }
  6815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6817. public OrderRow OrderRow {
  6818. get {
  6819. return ((OrderRow)(this.GetParentRow(this.Table.ParentRelations["FK__OrderProd__Order__405A880E"])));
  6820. }
  6821. set {
  6822. this.SetParentRow(value, this.Table.ParentRelations["FK__OrderProd__Order__405A880E"]);
  6823. }
  6824. }
  6825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6827. public ProductRow ProductRow {
  6828. get {
  6829. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK__OrderProd__Produ__414EAC47"])));
  6830. }
  6831. set {
  6832. this.SetParentRow(value, this.Table.ParentRelations["FK__OrderProd__Produ__414EAC47"]);
  6833. }
  6834. }
  6835. }
  6836. /// <summary>
  6837. ///Represents strongly named DataRow class.
  6838. ///</summary>
  6839. public partial class ProductRow : global::System.Data.DataRow {
  6840. private ProductDataTable tableProduct;
  6841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6843. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  6844. base(rb) {
  6845. this.tableProduct = ((ProductDataTable)(this.Table));
  6846. }
  6847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6849. public string ProductArticleNumber {
  6850. get {
  6851. return ((string)(this[this.tableProduct.ProductArticleNumberColumn]));
  6852. }
  6853. set {
  6854. this[this.tableProduct.ProductArticleNumberColumn] = value;
  6855. }
  6856. }
  6857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6859. public string ProductName {
  6860. get {
  6861. return ((string)(this[this.tableProduct.ProductNameColumn]));
  6862. }
  6863. set {
  6864. this[this.tableProduct.ProductNameColumn] = value;
  6865. }
  6866. }
  6867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6869. public string ProductDescription {
  6870. get {
  6871. return ((string)(this[this.tableProduct.ProductDescriptionColumn]));
  6872. }
  6873. set {
  6874. this[this.tableProduct.ProductDescriptionColumn] = value;
  6875. }
  6876. }
  6877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6879. public string ProductCategory {
  6880. get {
  6881. return ((string)(this[this.tableProduct.ProductCategoryColumn]));
  6882. }
  6883. set {
  6884. this[this.tableProduct.ProductCategoryColumn] = value;
  6885. }
  6886. }
  6887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6889. public byte[] ProductPhoto {
  6890. get {
  6891. return ((byte[])(this[this.tableProduct.ProductPhotoColumn]));
  6892. }
  6893. set {
  6894. this[this.tableProduct.ProductPhotoColumn] = value;
  6895. }
  6896. }
  6897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6899. public string ProductManufacturer {
  6900. get {
  6901. return ((string)(this[this.tableProduct.ProductManufacturerColumn]));
  6902. }
  6903. set {
  6904. this[this.tableProduct.ProductManufacturerColumn] = value;
  6905. }
  6906. }
  6907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6909. public decimal ProductCost {
  6910. get {
  6911. return ((decimal)(this[this.tableProduct.ProductCostColumn]));
  6912. }
  6913. set {
  6914. this[this.tableProduct.ProductCostColumn] = value;
  6915. }
  6916. }
  6917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6919. public byte ProductDiscountAmount {
  6920. get {
  6921. try {
  6922. return ((byte)(this[this.tableProduct.ProductDiscountAmountColumn]));
  6923. }
  6924. catch (global::System.InvalidCastException e) {
  6925. throw new global::System.Data.StrongTypingException("Значение для столбца \'ProductDiscountAmount\' в таблице \'Product\' равно DBNull.", e);
  6926. }
  6927. }
  6928. set {
  6929. this[this.tableProduct.ProductDiscountAmountColumn] = value;
  6930. }
  6931. }
  6932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6934. public int ProductQuantityInStock {
  6935. get {
  6936. return ((int)(this[this.tableProduct.ProductQuantityInStockColumn]));
  6937. }
  6938. set {
  6939. this[this.tableProduct.ProductQuantityInStockColumn] = value;
  6940. }
  6941. }
  6942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6944. public string ProductStatus {
  6945. get {
  6946. return ((string)(this[this.tableProduct.ProductStatusColumn]));
  6947. }
  6948. set {
  6949. this[this.tableProduct.ProductStatusColumn] = value;
  6950. }
  6951. }
  6952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6954. public bool IsProductDiscountAmountNull() {
  6955. return this.IsNull(this.tableProduct.ProductDiscountAmountColumn);
  6956. }
  6957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6959. public void SetProductDiscountAmountNull() {
  6960. this[this.tableProduct.ProductDiscountAmountColumn] = global::System.Convert.DBNull;
  6961. }
  6962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6964. public OrderProductRow[] GetOrderProductRows() {
  6965. if ((this.Table.ChildRelations["FK__OrderProd__Produ__414EAC47"] == null)) {
  6966. return new OrderProductRow[0];
  6967. }
  6968. else {
  6969. return ((OrderProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK__OrderProd__Produ__414EAC47"])));
  6970. }
  6971. }
  6972. }
  6973. /// <summary>
  6974. ///Represents strongly named DataRow class.
  6975. ///</summary>
  6976. public partial class RoleRow : global::System.Data.DataRow {
  6977. private RoleDataTable tableRole;
  6978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6980. internal RoleRow(global::System.Data.DataRowBuilder rb) :
  6981. base(rb) {
  6982. this.tableRole = ((RoleDataTable)(this.Table));
  6983. }
  6984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6986. public int RoleID {
  6987. get {
  6988. return ((int)(this[this.tableRole.RoleIDColumn]));
  6989. }
  6990. set {
  6991. this[this.tableRole.RoleIDColumn] = value;
  6992. }
  6993. }
  6994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6996. public string RoleName {
  6997. get {
  6998. return ((string)(this[this.tableRole.RoleNameColumn]));
  6999. }
  7000. set {
  7001. this[this.tableRole.RoleNameColumn] = value;
  7002. }
  7003. }
  7004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7006. public UserRow[] GetUserRows() {
  7007. if ((this.Table.ChildRelations["FK__User__UserRole__39AD8A7F"] == null)) {
  7008. return new UserRow[0];
  7009. }
  7010. else {
  7011. return ((UserRow[])(base.GetChildRows(this.Table.ChildRelations["FK__User__UserRole__39AD8A7F"])));
  7012. }
  7013. }
  7014. }
  7015. /// <summary>
  7016. ///Represents strongly named DataRow class.
  7017. ///</summary>
  7018. public partial class tbl_categoriesRow : global::System.Data.DataRow {
  7019. private tbl_categoriesDataTable tabletbl_categories;
  7020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7022. internal tbl_categoriesRow(global::System.Data.DataRowBuilder rb) :
  7023. base(rb) {
  7024. this.tabletbl_categories = ((tbl_categoriesDataTable)(this.Table));
  7025. }
  7026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7028. public int id {
  7029. get {
  7030. return ((int)(this[this.tabletbl_categories.idColumn]));
  7031. }
  7032. set {
  7033. this[this.tabletbl_categories.idColumn] = value;
  7034. }
  7035. }
  7036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7038. public string title {
  7039. get {
  7040. try {
  7041. return ((string)(this[this.tabletbl_categories.titleColumn]));
  7042. }
  7043. catch (global::System.InvalidCastException e) {
  7044. throw new global::System.Data.StrongTypingException("Значение для столбца \'title\' в таблице \'tbl_categories\' равно DBNull.", e);
  7045. }
  7046. }
  7047. set {
  7048. this[this.tabletbl_categories.titleColumn] = value;
  7049. }
  7050. }
  7051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7053. public string description {
  7054. get {
  7055. try {
  7056. return ((string)(this[this.tabletbl_categories.descriptionColumn]));
  7057. }
  7058. catch (global::System.InvalidCastException e) {
  7059. throw new global::System.Data.StrongTypingException("Значение для столбца \'description\' в таблице \'tbl_categories\' равно DBNull.", e);
  7060. }
  7061. }
  7062. set {
  7063. this[this.tabletbl_categories.descriptionColumn] = value;
  7064. }
  7065. }
  7066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7068. public System.DateTime added_date {
  7069. get {
  7070. try {
  7071. return ((global::System.DateTime)(this[this.tabletbl_categories.added_dateColumn]));
  7072. }
  7073. catch (global::System.InvalidCastException e) {
  7074. throw new global::System.Data.StrongTypingException("Значение для столбца \'added_date\' в таблице \'tbl_categories\' равно DBNull.", e);
  7075. }
  7076. }
  7077. set {
  7078. this[this.tabletbl_categories.added_dateColumn] = value;
  7079. }
  7080. }
  7081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7083. public int added_by {
  7084. get {
  7085. try {
  7086. return ((int)(this[this.tabletbl_categories.added_byColumn]));
  7087. }
  7088. catch (global::System.InvalidCastException e) {
  7089. throw new global::System.Data.StrongTypingException("Значение для столбца \'added_by\' в таблице \'tbl_categories\' равно DBNull.", e);
  7090. }
  7091. }
  7092. set {
  7093. this[this.tabletbl_categories.added_byColumn] = value;
  7094. }
  7095. }
  7096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7098. public bool IstitleNull() {
  7099. return this.IsNull(this.tabletbl_categories.titleColumn);
  7100. }
  7101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7103. public void SettitleNull() {
  7104. this[this.tabletbl_categories.titleColumn] = global::System.Convert.DBNull;
  7105. }
  7106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7108. public bool IsdescriptionNull() {
  7109. return this.IsNull(this.tabletbl_categories.descriptionColumn);
  7110. }
  7111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7113. public void SetdescriptionNull() {
  7114. this[this.tabletbl_categories.descriptionColumn] = global::System.Convert.DBNull;
  7115. }
  7116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7118. public bool Isadded_dateNull() {
  7119. return this.IsNull(this.tabletbl_categories.added_dateColumn);
  7120. }
  7121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7123. public void Setadded_dateNull() {
  7124. this[this.tabletbl_categories.added_dateColumn] = global::System.Convert.DBNull;
  7125. }
  7126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7128. public bool Isadded_byNull() {
  7129. return this.IsNull(this.tabletbl_categories.added_byColumn);
  7130. }
  7131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7133. public void Setadded_byNull() {
  7134. this[this.tabletbl_categories.added_byColumn] = global::System.Convert.DBNull;
  7135. }
  7136. }
  7137. /// <summary>
  7138. ///Represents strongly named DataRow class.
  7139. ///</summary>
  7140. public partial class tbl_dea_custRow : global::System.Data.DataRow {
  7141. private tbl_dea_custDataTable tabletbl_dea_cust;
  7142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7144. internal tbl_dea_custRow(global::System.Data.DataRowBuilder rb) :
  7145. base(rb) {
  7146. this.tabletbl_dea_cust = ((tbl_dea_custDataTable)(this.Table));
  7147. }
  7148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7150. public int id {
  7151. get {
  7152. return ((int)(this[this.tabletbl_dea_cust.idColumn]));
  7153. }
  7154. set {
  7155. this[this.tabletbl_dea_cust.idColumn] = value;
  7156. }
  7157. }
  7158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7160. public string type {
  7161. get {
  7162. try {
  7163. return ((string)(this[this.tabletbl_dea_cust.typeColumn]));
  7164. }
  7165. catch (global::System.InvalidCastException e) {
  7166. throw new global::System.Data.StrongTypingException("Значение для столбца \'type\' в таблице \'tbl_dea_cust\' равно DBNull.", e);
  7167. }
  7168. }
  7169. set {
  7170. this[this.tabletbl_dea_cust.typeColumn] = value;
  7171. }
  7172. }
  7173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7175. public string name {
  7176. get {
  7177. try {
  7178. return ((string)(this[this.tabletbl_dea_cust.nameColumn]));
  7179. }
  7180. catch (global::System.InvalidCastException e) {
  7181. throw new global::System.Data.StrongTypingException("Значение для столбца \'name\' в таблице \'tbl_dea_cust\' равно DBNull.", e);
  7182. }
  7183. }
  7184. set {
  7185. this[this.tabletbl_dea_cust.nameColumn] = value;
  7186. }
  7187. }
  7188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7190. public string email {
  7191. get {
  7192. try {
  7193. return ((string)(this[this.tabletbl_dea_cust.emailColumn]));
  7194. }
  7195. catch (global::System.InvalidCastException e) {
  7196. throw new global::System.Data.StrongTypingException("Значение для столбца \'email\' в таблице \'tbl_dea_cust\' равно DBNull.", e);
  7197. }
  7198. }
  7199. set {
  7200. this[this.tabletbl_dea_cust.emailColumn] = value;
  7201. }
  7202. }
  7203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7205. public string contact {
  7206. get {
  7207. try {
  7208. return ((string)(this[this.tabletbl_dea_cust.contactColumn]));
  7209. }
  7210. catch (global::System.InvalidCastException e) {
  7211. throw new global::System.Data.StrongTypingException("Значение для столбца \'contact\' в таблице \'tbl_dea_cust\' равно DBNull.", e);
  7212. }
  7213. }
  7214. set {
  7215. this[this.tabletbl_dea_cust.contactColumn] = value;
  7216. }
  7217. }
  7218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7220. public string address {
  7221. get {
  7222. try {
  7223. return ((string)(this[this.tabletbl_dea_cust.addressColumn]));
  7224. }
  7225. catch (global::System.InvalidCastException e) {
  7226. throw new global::System.Data.StrongTypingException("Значение для столбца \'address\' в таблице \'tbl_dea_cust\' равно DBNull.", e);
  7227. }
  7228. }
  7229. set {
  7230. this[this.tabletbl_dea_cust.addressColumn] = value;
  7231. }
  7232. }
  7233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7235. public System.DateTime added_date {
  7236. get {
  7237. try {
  7238. return ((global::System.DateTime)(this[this.tabletbl_dea_cust.added_dateColumn]));
  7239. }
  7240. catch (global::System.InvalidCastException e) {
  7241. throw new global::System.Data.StrongTypingException("Значение для столбца \'added_date\' в таблице \'tbl_dea_cust\' равно DBNull.", e);
  7242. }
  7243. }
  7244. set {
  7245. this[this.tabletbl_dea_cust.added_dateColumn] = value;
  7246. }
  7247. }
  7248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7250. public int added_by {
  7251. get {
  7252. try {
  7253. return ((int)(this[this.tabletbl_dea_cust.added_byColumn]));
  7254. }
  7255. catch (global::System.InvalidCastException e) {
  7256. throw new global::System.Data.StrongTypingException("Значение для столбца \'added_by\' в таблице \'tbl_dea_cust\' равно DBNull.", e);
  7257. }
  7258. }
  7259. set {
  7260. this[this.tabletbl_dea_cust.added_byColumn] = value;
  7261. }
  7262. }
  7263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7265. public bool IstypeNull() {
  7266. return this.IsNull(this.tabletbl_dea_cust.typeColumn);
  7267. }
  7268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7270. public void SettypeNull() {
  7271. this[this.tabletbl_dea_cust.typeColumn] = global::System.Convert.DBNull;
  7272. }
  7273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7275. public bool IsnameNull() {
  7276. return this.IsNull(this.tabletbl_dea_cust.nameColumn);
  7277. }
  7278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7280. public void SetnameNull() {
  7281. this[this.tabletbl_dea_cust.nameColumn] = global::System.Convert.DBNull;
  7282. }
  7283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7285. public bool IsemailNull() {
  7286. return this.IsNull(this.tabletbl_dea_cust.emailColumn);
  7287. }
  7288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7290. public void SetemailNull() {
  7291. this[this.tabletbl_dea_cust.emailColumn] = global::System.Convert.DBNull;
  7292. }
  7293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7295. public bool IscontactNull() {
  7296. return this.IsNull(this.tabletbl_dea_cust.contactColumn);
  7297. }
  7298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7300. public void SetcontactNull() {
  7301. this[this.tabletbl_dea_cust.contactColumn] = global::System.Convert.DBNull;
  7302. }
  7303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7305. public bool IsaddressNull() {
  7306. return this.IsNull(this.tabletbl_dea_cust.addressColumn);
  7307. }
  7308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7310. public void SetaddressNull() {
  7311. this[this.tabletbl_dea_cust.addressColumn] = global::System.Convert.DBNull;
  7312. }
  7313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7315. public bool Isadded_dateNull() {
  7316. return this.IsNull(this.tabletbl_dea_cust.added_dateColumn);
  7317. }
  7318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7320. public void Setadded_dateNull() {
  7321. this[this.tabletbl_dea_cust.added_dateColumn] = global::System.Convert.DBNull;
  7322. }
  7323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7325. public bool Isadded_byNull() {
  7326. return this.IsNull(this.tabletbl_dea_cust.added_byColumn);
  7327. }
  7328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7330. public void Setadded_byNull() {
  7331. this[this.tabletbl_dea_cust.added_byColumn] = global::System.Convert.DBNull;
  7332. }
  7333. }
  7334. /// <summary>
  7335. ///Represents strongly named DataRow class.
  7336. ///</summary>
  7337. public partial class tbl_productsRow : global::System.Data.DataRow {
  7338. private tbl_productsDataTable tabletbl_products;
  7339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7341. internal tbl_productsRow(global::System.Data.DataRowBuilder rb) :
  7342. base(rb) {
  7343. this.tabletbl_products = ((tbl_productsDataTable)(this.Table));
  7344. }
  7345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7347. public int id {
  7348. get {
  7349. return ((int)(this[this.tabletbl_products.idColumn]));
  7350. }
  7351. set {
  7352. this[this.tabletbl_products.idColumn] = value;
  7353. }
  7354. }
  7355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7357. public string name {
  7358. get {
  7359. try {
  7360. return ((string)(this[this.tabletbl_products.nameColumn]));
  7361. }
  7362. catch (global::System.InvalidCastException e) {
  7363. throw new global::System.Data.StrongTypingException("Значение для столбца \'name\' в таблице \'tbl_products\' равно DBNull.", e);
  7364. }
  7365. }
  7366. set {
  7367. this[this.tabletbl_products.nameColumn] = value;
  7368. }
  7369. }
  7370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7372. public string category {
  7373. get {
  7374. try {
  7375. return ((string)(this[this.tabletbl_products.categoryColumn]));
  7376. }
  7377. catch (global::System.InvalidCastException e) {
  7378. throw new global::System.Data.StrongTypingException("Значение для столбца \'category\' в таблице \'tbl_products\' равно DBNull.", e);
  7379. }
  7380. }
  7381. set {
  7382. this[this.tabletbl_products.categoryColumn] = value;
  7383. }
  7384. }
  7385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7387. public string description {
  7388. get {
  7389. try {
  7390. return ((string)(this[this.tabletbl_products.descriptionColumn]));
  7391. }
  7392. catch (global::System.InvalidCastException e) {
  7393. throw new global::System.Data.StrongTypingException("Значение для столбца \'description\' в таблице \'tbl_products\' равно DBNull.", e);
  7394. }
  7395. }
  7396. set {
  7397. this[this.tabletbl_products.descriptionColumn] = value;
  7398. }
  7399. }
  7400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7402. public decimal rate {
  7403. get {
  7404. try {
  7405. return ((decimal)(this[this.tabletbl_products.rateColumn]));
  7406. }
  7407. catch (global::System.InvalidCastException e) {
  7408. throw new global::System.Data.StrongTypingException("Значение для столбца \'rate\' в таблице \'tbl_products\' равно DBNull.", e);
  7409. }
  7410. }
  7411. set {
  7412. this[this.tabletbl_products.rateColumn] = value;
  7413. }
  7414. }
  7415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7417. public decimal qty {
  7418. get {
  7419. try {
  7420. return ((decimal)(this[this.tabletbl_products.qtyColumn]));
  7421. }
  7422. catch (global::System.InvalidCastException e) {
  7423. throw new global::System.Data.StrongTypingException("Значение для столбца \'qty\' в таблице \'tbl_products\' равно DBNull.", e);
  7424. }
  7425. }
  7426. set {
  7427. this[this.tabletbl_products.qtyColumn] = value;
  7428. }
  7429. }
  7430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7432. public System.DateTime added_date {
  7433. get {
  7434. try {
  7435. return ((global::System.DateTime)(this[this.tabletbl_products.added_dateColumn]));
  7436. }
  7437. catch (global::System.InvalidCastException e) {
  7438. throw new global::System.Data.StrongTypingException("Значение для столбца \'added_date\' в таблице \'tbl_products\' равно DBNull.", e);
  7439. }
  7440. }
  7441. set {
  7442. this[this.tabletbl_products.added_dateColumn] = value;
  7443. }
  7444. }
  7445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7447. public int added_by {
  7448. get {
  7449. try {
  7450. return ((int)(this[this.tabletbl_products.added_byColumn]));
  7451. }
  7452. catch (global::System.InvalidCastException e) {
  7453. throw new global::System.Data.StrongTypingException("Значение для столбца \'added_by\' в таблице \'tbl_products\' равно DBNull.", e);
  7454. }
  7455. }
  7456. set {
  7457. this[this.tabletbl_products.added_byColumn] = value;
  7458. }
  7459. }
  7460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7462. public bool IsnameNull() {
  7463. return this.IsNull(this.tabletbl_products.nameColumn);
  7464. }
  7465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7467. public void SetnameNull() {
  7468. this[this.tabletbl_products.nameColumn] = global::System.Convert.DBNull;
  7469. }
  7470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7472. public bool IscategoryNull() {
  7473. return this.IsNull(this.tabletbl_products.categoryColumn);
  7474. }
  7475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7477. public void SetcategoryNull() {
  7478. this[this.tabletbl_products.categoryColumn] = global::System.Convert.DBNull;
  7479. }
  7480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7482. public bool IsdescriptionNull() {
  7483. return this.IsNull(this.tabletbl_products.descriptionColumn);
  7484. }
  7485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7487. public void SetdescriptionNull() {
  7488. this[this.tabletbl_products.descriptionColumn] = global::System.Convert.DBNull;
  7489. }
  7490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7492. public bool IsrateNull() {
  7493. return this.IsNull(this.tabletbl_products.rateColumn);
  7494. }
  7495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7497. public void SetrateNull() {
  7498. this[this.tabletbl_products.rateColumn] = global::System.Convert.DBNull;
  7499. }
  7500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7502. public bool IsqtyNull() {
  7503. return this.IsNull(this.tabletbl_products.qtyColumn);
  7504. }
  7505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7507. public void SetqtyNull() {
  7508. this[this.tabletbl_products.qtyColumn] = global::System.Convert.DBNull;
  7509. }
  7510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7512. public bool Isadded_dateNull() {
  7513. return this.IsNull(this.tabletbl_products.added_dateColumn);
  7514. }
  7515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7517. public void Setadded_dateNull() {
  7518. this[this.tabletbl_products.added_dateColumn] = global::System.Convert.DBNull;
  7519. }
  7520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7522. public bool Isadded_byNull() {
  7523. return this.IsNull(this.tabletbl_products.added_byColumn);
  7524. }
  7525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7527. public void Setadded_byNull() {
  7528. this[this.tabletbl_products.added_byColumn] = global::System.Convert.DBNull;
  7529. }
  7530. }
  7531. /// <summary>
  7532. ///Represents strongly named DataRow class.
  7533. ///</summary>
  7534. public partial class tbl_transaction_detailRow : global::System.Data.DataRow {
  7535. private tbl_transaction_detailDataTable tabletbl_transaction_detail;
  7536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7538. internal tbl_transaction_detailRow(global::System.Data.DataRowBuilder rb) :
  7539. base(rb) {
  7540. this.tabletbl_transaction_detail = ((tbl_transaction_detailDataTable)(this.Table));
  7541. }
  7542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7544. public int id {
  7545. get {
  7546. return ((int)(this[this.tabletbl_transaction_detail.idColumn]));
  7547. }
  7548. set {
  7549. this[this.tabletbl_transaction_detail.idColumn] = value;
  7550. }
  7551. }
  7552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7554. public int product_id {
  7555. get {
  7556. try {
  7557. return ((int)(this[this.tabletbl_transaction_detail.product_idColumn]));
  7558. }
  7559. catch (global::System.InvalidCastException e) {
  7560. throw new global::System.Data.StrongTypingException("Значение для столбца \'product_id\' в таблице \'tbl_transaction_detail\' равно DBNull" +
  7561. ".", e);
  7562. }
  7563. }
  7564. set {
  7565. this[this.tabletbl_transaction_detail.product_idColumn] = value;
  7566. }
  7567. }
  7568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7570. public decimal rate {
  7571. get {
  7572. try {
  7573. return ((decimal)(this[this.tabletbl_transaction_detail.rateColumn]));
  7574. }
  7575. catch (global::System.InvalidCastException e) {
  7576. throw new global::System.Data.StrongTypingException("Значение для столбца \'rate\' в таблице \'tbl_transaction_detail\' равно DBNull.", e);
  7577. }
  7578. }
  7579. set {
  7580. this[this.tabletbl_transaction_detail.rateColumn] = value;
  7581. }
  7582. }
  7583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7585. public decimal qty {
  7586. get {
  7587. try {
  7588. return ((decimal)(this[this.tabletbl_transaction_detail.qtyColumn]));
  7589. }
  7590. catch (global::System.InvalidCastException e) {
  7591. throw new global::System.Data.StrongTypingException("Значение для столбца \'qty\' в таблице \'tbl_transaction_detail\' равно DBNull.", e);
  7592. }
  7593. }
  7594. set {
  7595. this[this.tabletbl_transaction_detail.qtyColumn] = value;
  7596. }
  7597. }
  7598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7600. public decimal total {
  7601. get {
  7602. try {
  7603. return ((decimal)(this[this.tabletbl_transaction_detail.totalColumn]));
  7604. }
  7605. catch (global::System.InvalidCastException e) {
  7606. throw new global::System.Data.StrongTypingException("Значение для столбца \'total\' в таблице \'tbl_transaction_detail\' равно DBNull.", e);
  7607. }
  7608. }
  7609. set {
  7610. this[this.tabletbl_transaction_detail.totalColumn] = value;
  7611. }
  7612. }
  7613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7615. public int dea_cust_id {
  7616. get {
  7617. try {
  7618. return ((int)(this[this.tabletbl_transaction_detail.dea_cust_idColumn]));
  7619. }
  7620. catch (global::System.InvalidCastException e) {
  7621. throw new global::System.Data.StrongTypingException("Значение для столбца \'dea_cust_id\' в таблице \'tbl_transaction_detail\' равно DBNul" +
  7622. "l.", e);
  7623. }
  7624. }
  7625. set {
  7626. this[this.tabletbl_transaction_detail.dea_cust_idColumn] = value;
  7627. }
  7628. }
  7629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7631. public System.DateTime added_date {
  7632. get {
  7633. try {
  7634. return ((global::System.DateTime)(this[this.tabletbl_transaction_detail.added_dateColumn]));
  7635. }
  7636. catch (global::System.InvalidCastException e) {
  7637. throw new global::System.Data.StrongTypingException("Значение для столбца \'added_date\' в таблице \'tbl_transaction_detail\' равно DBNull" +
  7638. ".", e);
  7639. }
  7640. }
  7641. set {
  7642. this[this.tabletbl_transaction_detail.added_dateColumn] = value;
  7643. }
  7644. }
  7645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7647. public int added_by {
  7648. get {
  7649. try {
  7650. return ((int)(this[this.tabletbl_transaction_detail.added_byColumn]));
  7651. }
  7652. catch (global::System.InvalidCastException e) {
  7653. throw new global::System.Data.StrongTypingException("Значение для столбца \'added_by\' в таблице \'tbl_transaction_detail\' равно DBNull.", e);
  7654. }
  7655. }
  7656. set {
  7657. this[this.tabletbl_transaction_detail.added_byColumn] = value;
  7658. }
  7659. }
  7660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7662. public bool Isproduct_idNull() {
  7663. return this.IsNull(this.tabletbl_transaction_detail.product_idColumn);
  7664. }
  7665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7667. public void Setproduct_idNull() {
  7668. this[this.tabletbl_transaction_detail.product_idColumn] = global::System.Convert.DBNull;
  7669. }
  7670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7672. public bool IsrateNull() {
  7673. return this.IsNull(this.tabletbl_transaction_detail.rateColumn);
  7674. }
  7675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7677. public void SetrateNull() {
  7678. this[this.tabletbl_transaction_detail.rateColumn] = global::System.Convert.DBNull;
  7679. }
  7680. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7681. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7682. public bool IsqtyNull() {
  7683. return this.IsNull(this.tabletbl_transaction_detail.qtyColumn);
  7684. }
  7685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7687. public void SetqtyNull() {
  7688. this[this.tabletbl_transaction_detail.qtyColumn] = global::System.Convert.DBNull;
  7689. }
  7690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7692. public bool IstotalNull() {
  7693. return this.IsNull(this.tabletbl_transaction_detail.totalColumn);
  7694. }
  7695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7697. public void SettotalNull() {
  7698. this[this.tabletbl_transaction_detail.totalColumn] = global::System.Convert.DBNull;
  7699. }
  7700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7701. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7702. public bool Isdea_cust_idNull() {
  7703. return this.IsNull(this.tabletbl_transaction_detail.dea_cust_idColumn);
  7704. }
  7705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7707. public void Setdea_cust_idNull() {
  7708. this[this.tabletbl_transaction_detail.dea_cust_idColumn] = global::System.Convert.DBNull;
  7709. }
  7710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7712. public bool Isadded_dateNull() {
  7713. return this.IsNull(this.tabletbl_transaction_detail.added_dateColumn);
  7714. }
  7715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7717. public void Setadded_dateNull() {
  7718. this[this.tabletbl_transaction_detail.added_dateColumn] = global::System.Convert.DBNull;
  7719. }
  7720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7722. public bool Isadded_byNull() {
  7723. return this.IsNull(this.tabletbl_transaction_detail.added_byColumn);
  7724. }
  7725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7727. public void Setadded_byNull() {
  7728. this[this.tabletbl_transaction_detail.added_byColumn] = global::System.Convert.DBNull;
  7729. }
  7730. }
  7731. /// <summary>
  7732. ///Represents strongly named DataRow class.
  7733. ///</summary>
  7734. public partial class tbl_transactionsRow : global::System.Data.DataRow {
  7735. private tbl_transactionsDataTable tabletbl_transactions;
  7736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7738. internal tbl_transactionsRow(global::System.Data.DataRowBuilder rb) :
  7739. base(rb) {
  7740. this.tabletbl_transactions = ((tbl_transactionsDataTable)(this.Table));
  7741. }
  7742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7744. public int id {
  7745. get {
  7746. return ((int)(this[this.tabletbl_transactions.idColumn]));
  7747. }
  7748. set {
  7749. this[this.tabletbl_transactions.idColumn] = value;
  7750. }
  7751. }
  7752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7754. public string type {
  7755. get {
  7756. try {
  7757. return ((string)(this[this.tabletbl_transactions.typeColumn]));
  7758. }
  7759. catch (global::System.InvalidCastException e) {
  7760. throw new global::System.Data.StrongTypingException("Значение для столбца \'type\' в таблице \'tbl_transactions\' равно DBNull.", e);
  7761. }
  7762. }
  7763. set {
  7764. this[this.tabletbl_transactions.typeColumn] = value;
  7765. }
  7766. }
  7767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7769. public int dea_cust_id {
  7770. get {
  7771. try {
  7772. return ((int)(this[this.tabletbl_transactions.dea_cust_idColumn]));
  7773. }
  7774. catch (global::System.InvalidCastException e) {
  7775. throw new global::System.Data.StrongTypingException("Значение для столбца \'dea_cust_id\' в таблице \'tbl_transactions\' равно DBNull.", e);
  7776. }
  7777. }
  7778. set {
  7779. this[this.tabletbl_transactions.dea_cust_idColumn] = value;
  7780. }
  7781. }
  7782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7784. public decimal grandTotal {
  7785. get {
  7786. try {
  7787. return ((decimal)(this[this.tabletbl_transactions.grandTotalColumn]));
  7788. }
  7789. catch (global::System.InvalidCastException e) {
  7790. throw new global::System.Data.StrongTypingException("Значение для столбца \'grandTotal\' в таблице \'tbl_transactions\' равно DBNull.", e);
  7791. }
  7792. }
  7793. set {
  7794. this[this.tabletbl_transactions.grandTotalColumn] = value;
  7795. }
  7796. }
  7797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7799. public System.DateTime transaction_date {
  7800. get {
  7801. try {
  7802. return ((global::System.DateTime)(this[this.tabletbl_transactions.transaction_dateColumn]));
  7803. }
  7804. catch (global::System.InvalidCastException e) {
  7805. throw new global::System.Data.StrongTypingException("Значение для столбца \'transaction_date\' в таблице \'tbl_transactions\' равно DBNull" +
  7806. ".", e);
  7807. }
  7808. }
  7809. set {
  7810. this[this.tabletbl_transactions.transaction_dateColumn] = value;
  7811. }
  7812. }
  7813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7815. public decimal tax {
  7816. get {
  7817. try {
  7818. return ((decimal)(this[this.tabletbl_transactions.taxColumn]));
  7819. }
  7820. catch (global::System.InvalidCastException e) {
  7821. throw new global::System.Data.StrongTypingException("Значение для столбца \'tax\' в таблице \'tbl_transactions\' равно DBNull.", e);
  7822. }
  7823. }
  7824. set {
  7825. this[this.tabletbl_transactions.taxColumn] = value;
  7826. }
  7827. }
  7828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7830. public decimal discount {
  7831. get {
  7832. try {
  7833. return ((decimal)(this[this.tabletbl_transactions.discountColumn]));
  7834. }
  7835. catch (global::System.InvalidCastException e) {
  7836. throw new global::System.Data.StrongTypingException("Значение для столбца \'discount\' в таблице \'tbl_transactions\' равно DBNull.", e);
  7837. }
  7838. }
  7839. set {
  7840. this[this.tabletbl_transactions.discountColumn] = value;
  7841. }
  7842. }
  7843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7845. public int added_by {
  7846. get {
  7847. try {
  7848. return ((int)(this[this.tabletbl_transactions.added_byColumn]));
  7849. }
  7850. catch (global::System.InvalidCastException e) {
  7851. throw new global::System.Data.StrongTypingException("Значение для столбца \'added_by\' в таблице \'tbl_transactions\' равно DBNull.", e);
  7852. }
  7853. }
  7854. set {
  7855. this[this.tabletbl_transactions.added_byColumn] = value;
  7856. }
  7857. }
  7858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7860. public bool IstypeNull() {
  7861. return this.IsNull(this.tabletbl_transactions.typeColumn);
  7862. }
  7863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7865. public void SettypeNull() {
  7866. this[this.tabletbl_transactions.typeColumn] = global::System.Convert.DBNull;
  7867. }
  7868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7870. public bool Isdea_cust_idNull() {
  7871. return this.IsNull(this.tabletbl_transactions.dea_cust_idColumn);
  7872. }
  7873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7875. public void Setdea_cust_idNull() {
  7876. this[this.tabletbl_transactions.dea_cust_idColumn] = global::System.Convert.DBNull;
  7877. }
  7878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7880. public bool IsgrandTotalNull() {
  7881. return this.IsNull(this.tabletbl_transactions.grandTotalColumn);
  7882. }
  7883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7885. public void SetgrandTotalNull() {
  7886. this[this.tabletbl_transactions.grandTotalColumn] = global::System.Convert.DBNull;
  7887. }
  7888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7890. public bool Istransaction_dateNull() {
  7891. return this.IsNull(this.tabletbl_transactions.transaction_dateColumn);
  7892. }
  7893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7895. public void Settransaction_dateNull() {
  7896. this[this.tabletbl_transactions.transaction_dateColumn] = global::System.Convert.DBNull;
  7897. }
  7898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7900. public bool IstaxNull() {
  7901. return this.IsNull(this.tabletbl_transactions.taxColumn);
  7902. }
  7903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7905. public void SettaxNull() {
  7906. this[this.tabletbl_transactions.taxColumn] = global::System.Convert.DBNull;
  7907. }
  7908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7910. public bool IsdiscountNull() {
  7911. return this.IsNull(this.tabletbl_transactions.discountColumn);
  7912. }
  7913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7915. public void SetdiscountNull() {
  7916. this[this.tabletbl_transactions.discountColumn] = global::System.Convert.DBNull;
  7917. }
  7918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7920. public bool Isadded_byNull() {
  7921. return this.IsNull(this.tabletbl_transactions.added_byColumn);
  7922. }
  7923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7925. public void Setadded_byNull() {
  7926. this[this.tabletbl_transactions.added_byColumn] = global::System.Convert.DBNull;
  7927. }
  7928. }
  7929. /// <summary>
  7930. ///Represents strongly named DataRow class.
  7931. ///</summary>
  7932. public partial class tbl_usersRow : global::System.Data.DataRow {
  7933. private tbl_usersDataTable tabletbl_users;
  7934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7936. internal tbl_usersRow(global::System.Data.DataRowBuilder rb) :
  7937. base(rb) {
  7938. this.tabletbl_users = ((tbl_usersDataTable)(this.Table));
  7939. }
  7940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7942. public int id {
  7943. get {
  7944. return ((int)(this[this.tabletbl_users.idColumn]));
  7945. }
  7946. set {
  7947. this[this.tabletbl_users.idColumn] = value;
  7948. }
  7949. }
  7950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7952. public string first_name {
  7953. get {
  7954. try {
  7955. return ((string)(this[this.tabletbl_users.first_nameColumn]));
  7956. }
  7957. catch (global::System.InvalidCastException e) {
  7958. throw new global::System.Data.StrongTypingException("Значение для столбца \'first_name\' в таблице \'tbl_users\' равно DBNull.", e);
  7959. }
  7960. }
  7961. set {
  7962. this[this.tabletbl_users.first_nameColumn] = value;
  7963. }
  7964. }
  7965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7967. public string last_name {
  7968. get {
  7969. try {
  7970. return ((string)(this[this.tabletbl_users.last_nameColumn]));
  7971. }
  7972. catch (global::System.InvalidCastException e) {
  7973. throw new global::System.Data.StrongTypingException("Значение для столбца \'last_name\' в таблице \'tbl_users\' равно DBNull.", e);
  7974. }
  7975. }
  7976. set {
  7977. this[this.tabletbl_users.last_nameColumn] = value;
  7978. }
  7979. }
  7980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7982. public string email {
  7983. get {
  7984. try {
  7985. return ((string)(this[this.tabletbl_users.emailColumn]));
  7986. }
  7987. catch (global::System.InvalidCastException e) {
  7988. throw new global::System.Data.StrongTypingException("Значение для столбца \'email\' в таблице \'tbl_users\' равно DBNull.", e);
  7989. }
  7990. }
  7991. set {
  7992. this[this.tabletbl_users.emailColumn] = value;
  7993. }
  7994. }
  7995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7997. public string username {
  7998. get {
  7999. try {
  8000. return ((string)(this[this.tabletbl_users.usernameColumn]));
  8001. }
  8002. catch (global::System.InvalidCastException e) {
  8003. throw new global::System.Data.StrongTypingException("Значение для столбца \'username\' в таблице \'tbl_users\' равно DBNull.", e);
  8004. }
  8005. }
  8006. set {
  8007. this[this.tabletbl_users.usernameColumn] = value;
  8008. }
  8009. }
  8010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8012. public string password {
  8013. get {
  8014. try {
  8015. return ((string)(this[this.tabletbl_users.passwordColumn]));
  8016. }
  8017. catch (global::System.InvalidCastException e) {
  8018. throw new global::System.Data.StrongTypingException("Значение для столбца \'password\' в таблице \'tbl_users\' равно DBNull.", e);
  8019. }
  8020. }
  8021. set {
  8022. this[this.tabletbl_users.passwordColumn] = value;
  8023. }
  8024. }
  8025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8027. public string contact {
  8028. get {
  8029. try {
  8030. return ((string)(this[this.tabletbl_users.contactColumn]));
  8031. }
  8032. catch (global::System.InvalidCastException e) {
  8033. throw new global::System.Data.StrongTypingException("Значение для столбца \'contact\' в таблице \'tbl_users\' равно DBNull.", e);
  8034. }
  8035. }
  8036. set {
  8037. this[this.tabletbl_users.contactColumn] = value;
  8038. }
  8039. }
  8040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8042. public string address {
  8043. get {
  8044. try {
  8045. return ((string)(this[this.tabletbl_users.addressColumn]));
  8046. }
  8047. catch (global::System.InvalidCastException e) {
  8048. throw new global::System.Data.StrongTypingException("Значение для столбца \'address\' в таблице \'tbl_users\' равно DBNull.", e);
  8049. }
  8050. }
  8051. set {
  8052. this[this.tabletbl_users.addressColumn] = value;
  8053. }
  8054. }
  8055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8057. public string gender {
  8058. get {
  8059. try {
  8060. return ((string)(this[this.tabletbl_users.genderColumn]));
  8061. }
  8062. catch (global::System.InvalidCastException e) {
  8063. throw new global::System.Data.StrongTypingException("Значение для столбца \'gender\' в таблице \'tbl_users\' равно DBNull.", e);
  8064. }
  8065. }
  8066. set {
  8067. this[this.tabletbl_users.genderColumn] = value;
  8068. }
  8069. }
  8070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8072. public string user_type {
  8073. get {
  8074. try {
  8075. return ((string)(this[this.tabletbl_users.user_typeColumn]));
  8076. }
  8077. catch (global::System.InvalidCastException e) {
  8078. throw new global::System.Data.StrongTypingException("Значение для столбца \'user_type\' в таблице \'tbl_users\' равно DBNull.", e);
  8079. }
  8080. }
  8081. set {
  8082. this[this.tabletbl_users.user_typeColumn] = value;
  8083. }
  8084. }
  8085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8087. public System.DateTime added_date {
  8088. get {
  8089. try {
  8090. return ((global::System.DateTime)(this[this.tabletbl_users.added_dateColumn]));
  8091. }
  8092. catch (global::System.InvalidCastException e) {
  8093. throw new global::System.Data.StrongTypingException("Значение для столбца \'added_date\' в таблице \'tbl_users\' равно DBNull.", e);
  8094. }
  8095. }
  8096. set {
  8097. this[this.tabletbl_users.added_dateColumn] = value;
  8098. }
  8099. }
  8100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8102. public int added_by {
  8103. get {
  8104. try {
  8105. return ((int)(this[this.tabletbl_users.added_byColumn]));
  8106. }
  8107. catch (global::System.InvalidCastException e) {
  8108. throw new global::System.Data.StrongTypingException("Значение для столбца \'added_by\' в таблице \'tbl_users\' равно DBNull.", e);
  8109. }
  8110. }
  8111. set {
  8112. this[this.tabletbl_users.added_byColumn] = value;
  8113. }
  8114. }
  8115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8117. public bool Isfirst_nameNull() {
  8118. return this.IsNull(this.tabletbl_users.first_nameColumn);
  8119. }
  8120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8122. public void Setfirst_nameNull() {
  8123. this[this.tabletbl_users.first_nameColumn] = global::System.Convert.DBNull;
  8124. }
  8125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8127. public bool Islast_nameNull() {
  8128. return this.IsNull(this.tabletbl_users.last_nameColumn);
  8129. }
  8130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8132. public void Setlast_nameNull() {
  8133. this[this.tabletbl_users.last_nameColumn] = global::System.Convert.DBNull;
  8134. }
  8135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8137. public bool IsemailNull() {
  8138. return this.IsNull(this.tabletbl_users.emailColumn);
  8139. }
  8140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8142. public void SetemailNull() {
  8143. this[this.tabletbl_users.emailColumn] = global::System.Convert.DBNull;
  8144. }
  8145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8147. public bool IsusernameNull() {
  8148. return this.IsNull(this.tabletbl_users.usernameColumn);
  8149. }
  8150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8152. public void SetusernameNull() {
  8153. this[this.tabletbl_users.usernameColumn] = global::System.Convert.DBNull;
  8154. }
  8155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8157. public bool IspasswordNull() {
  8158. return this.IsNull(this.tabletbl_users.passwordColumn);
  8159. }
  8160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8162. public void SetpasswordNull() {
  8163. this[this.tabletbl_users.passwordColumn] = global::System.Convert.DBNull;
  8164. }
  8165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8167. public bool IscontactNull() {
  8168. return this.IsNull(this.tabletbl_users.contactColumn);
  8169. }
  8170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8172. public void SetcontactNull() {
  8173. this[this.tabletbl_users.contactColumn] = global::System.Convert.DBNull;
  8174. }
  8175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8177. public bool IsaddressNull() {
  8178. return this.IsNull(this.tabletbl_users.addressColumn);
  8179. }
  8180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8182. public void SetaddressNull() {
  8183. this[this.tabletbl_users.addressColumn] = global::System.Convert.DBNull;
  8184. }
  8185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8187. public bool IsgenderNull() {
  8188. return this.IsNull(this.tabletbl_users.genderColumn);
  8189. }
  8190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8192. public void SetgenderNull() {
  8193. this[this.tabletbl_users.genderColumn] = global::System.Convert.DBNull;
  8194. }
  8195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8197. public bool Isuser_typeNull() {
  8198. return this.IsNull(this.tabletbl_users.user_typeColumn);
  8199. }
  8200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8202. public void Setuser_typeNull() {
  8203. this[this.tabletbl_users.user_typeColumn] = global::System.Convert.DBNull;
  8204. }
  8205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8207. public bool Isadded_dateNull() {
  8208. return this.IsNull(this.tabletbl_users.added_dateColumn);
  8209. }
  8210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8212. public void Setadded_dateNull() {
  8213. this[this.tabletbl_users.added_dateColumn] = global::System.Convert.DBNull;
  8214. }
  8215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8217. public bool Isadded_byNull() {
  8218. return this.IsNull(this.tabletbl_users.added_byColumn);
  8219. }
  8220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8222. public void Setadded_byNull() {
  8223. this[this.tabletbl_users.added_byColumn] = global::System.Convert.DBNull;
  8224. }
  8225. }
  8226. /// <summary>
  8227. ///Represents strongly named DataRow class.
  8228. ///</summary>
  8229. public partial class TovariRow : global::System.Data.DataRow {
  8230. private TovariDataTable tableTovari;
  8231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8233. internal TovariRow(global::System.Data.DataRowBuilder rb) :
  8234. base(rb) {
  8235. this.tableTovari = ((TovariDataTable)(this.Table));
  8236. }
  8237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8239. public string Товар {
  8240. get {
  8241. try {
  8242. return ((string)(this[this.tableTovari.ТоварColumn]));
  8243. }
  8244. catch (global::System.InvalidCastException e) {
  8245. throw new global::System.Data.StrongTypingException("Значение для столбца \'Товар\' в таблице \'Tovari\' равно DBNull.", e);
  8246. }
  8247. }
  8248. set {
  8249. this[this.tableTovari.ТоварColumn] = value;
  8250. }
  8251. }
  8252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8254. public bool IsТоварNull() {
  8255. return this.IsNull(this.tableTovari.ТоварColumn);
  8256. }
  8257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8259. public void SetТоварNull() {
  8260. this[this.tableTovari.ТоварColumn] = global::System.Convert.DBNull;
  8261. }
  8262. }
  8263. /// <summary>
  8264. ///Represents strongly named DataRow class.
  8265. ///</summary>
  8266. public partial class UserRow : global::System.Data.DataRow {
  8267. private UserDataTable tableUser;
  8268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8270. internal UserRow(global::System.Data.DataRowBuilder rb) :
  8271. base(rb) {
  8272. this.tableUser = ((UserDataTable)(this.Table));
  8273. }
  8274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8276. public int UserID {
  8277. get {
  8278. return ((int)(this[this.tableUser.UserIDColumn]));
  8279. }
  8280. set {
  8281. this[this.tableUser.UserIDColumn] = value;
  8282. }
  8283. }
  8284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8286. public string UserSurname {
  8287. get {
  8288. return ((string)(this[this.tableUser.UserSurnameColumn]));
  8289. }
  8290. set {
  8291. this[this.tableUser.UserSurnameColumn] = value;
  8292. }
  8293. }
  8294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8296. public string UserName {
  8297. get {
  8298. return ((string)(this[this.tableUser.UserNameColumn]));
  8299. }
  8300. set {
  8301. this[this.tableUser.UserNameColumn] = value;
  8302. }
  8303. }
  8304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8306. public string UserPatronymic {
  8307. get {
  8308. return ((string)(this[this.tableUser.UserPatronymicColumn]));
  8309. }
  8310. set {
  8311. this[this.tableUser.UserPatronymicColumn] = value;
  8312. }
  8313. }
  8314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8316. public string UserLogin {
  8317. get {
  8318. return ((string)(this[this.tableUser.UserLoginColumn]));
  8319. }
  8320. set {
  8321. this[this.tableUser.UserLoginColumn] = value;
  8322. }
  8323. }
  8324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8326. public string UserPassword {
  8327. get {
  8328. return ((string)(this[this.tableUser.UserPasswordColumn]));
  8329. }
  8330. set {
  8331. this[this.tableUser.UserPasswordColumn] = value;
  8332. }
  8333. }
  8334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8336. public int UserRole {
  8337. get {
  8338. return ((int)(this[this.tableUser.UserRoleColumn]));
  8339. }
  8340. set {
  8341. this[this.tableUser.UserRoleColumn] = value;
  8342. }
  8343. }
  8344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8346. public RoleRow RoleRow {
  8347. get {
  8348. return ((RoleRow)(this.GetParentRow(this.Table.ParentRelations["FK__User__UserRole__39AD8A7F"])));
  8349. }
  8350. set {
  8351. this.SetParentRow(value, this.Table.ParentRelations["FK__User__UserRole__39AD8A7F"]);
  8352. }
  8353. }
  8354. }
  8355. /// <summary>
  8356. ///Represents strongly named DataRow class.
  8357. ///</summary>
  8358. public partial class woorkersRow : global::System.Data.DataRow {
  8359. private woorkersDataTable tablewoorkers;
  8360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8362. internal woorkersRow(global::System.Data.DataRowBuilder rb) :
  8363. base(rb) {
  8364. this.tablewoorkers = ((woorkersDataTable)(this.Table));
  8365. }
  8366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8368. public int ID {
  8369. get {
  8370. return ((int)(this[this.tablewoorkers.IDColumn]));
  8371. }
  8372. set {
  8373. this[this.tablewoorkers.IDColumn] = value;
  8374. }
  8375. }
  8376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8378. public string NAME {
  8379. get {
  8380. try {
  8381. return ((string)(this[this.tablewoorkers.NAMEColumn]));
  8382. }
  8383. catch (global::System.InvalidCastException e) {
  8384. throw new global::System.Data.StrongTypingException("Значение для столбца \'NAME\' в таблице \'woorkers\' равно DBNull.", e);
  8385. }
  8386. }
  8387. set {
  8388. this[this.tablewoorkers.NAMEColumn] = value;
  8389. }
  8390. }
  8391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8393. public string login {
  8394. get {
  8395. try {
  8396. return ((string)(this[this.tablewoorkers.loginColumn]));
  8397. }
  8398. catch (global::System.InvalidCastException e) {
  8399. throw new global::System.Data.StrongTypingException("Значение для столбца \'login\' в таблице \'woorkers\' равно DBNull.", e);
  8400. }
  8401. }
  8402. set {
  8403. this[this.tablewoorkers.loginColumn] = value;
  8404. }
  8405. }
  8406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8408. public int Salary {
  8409. get {
  8410. try {
  8411. return ((int)(this[this.tablewoorkers.SalaryColumn]));
  8412. }
  8413. catch (global::System.InvalidCastException e) {
  8414. throw new global::System.Data.StrongTypingException("Значение для столбца \'Salary\' в таблице \'woorkers\' равно DBNull.", e);
  8415. }
  8416. }
  8417. set {
  8418. this[this.tablewoorkers.SalaryColumn] = value;
  8419. }
  8420. }
  8421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8423. public int Age {
  8424. get {
  8425. try {
  8426. return ((int)(this[this.tablewoorkers.AgeColumn]));
  8427. }
  8428. catch (global::System.InvalidCastException e) {
  8429. throw new global::System.Data.StrongTypingException("Значение для столбца \'Age\' в таблице \'woorkers\' равно DBNull.", e);
  8430. }
  8431. }
  8432. set {
  8433. this[this.tablewoorkers.AgeColumn] = value;
  8434. }
  8435. }
  8436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8438. public System.DateTime Date {
  8439. get {
  8440. try {
  8441. return ((global::System.DateTime)(this[this.tablewoorkers.DateColumn]));
  8442. }
  8443. catch (global::System.InvalidCastException e) {
  8444. throw new global::System.Data.StrongTypingException("Значение для столбца \'Date\' в таблице \'woorkers\' равно DBNull.", e);
  8445. }
  8446. }
  8447. set {
  8448. this[this.tablewoorkers.DateColumn] = value;
  8449. }
  8450. }
  8451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8453. public string Description {
  8454. get {
  8455. try {
  8456. return ((string)(this[this.tablewoorkers.DescriptionColumn]));
  8457. }
  8458. catch (global::System.InvalidCastException e) {
  8459. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'woorkers\' равно DBNull.", e);
  8460. }
  8461. }
  8462. set {
  8463. this[this.tablewoorkers.DescriptionColumn] = value;
  8464. }
  8465. }
  8466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8468. public bool IsNAMENull() {
  8469. return this.IsNull(this.tablewoorkers.NAMEColumn);
  8470. }
  8471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8473. public void SetNAMENull() {
  8474. this[this.tablewoorkers.NAMEColumn] = global::System.Convert.DBNull;
  8475. }
  8476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8478. public bool IsloginNull() {
  8479. return this.IsNull(this.tablewoorkers.loginColumn);
  8480. }
  8481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8483. public void SetloginNull() {
  8484. this[this.tablewoorkers.loginColumn] = global::System.Convert.DBNull;
  8485. }
  8486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8488. public bool IsSalaryNull() {
  8489. return this.IsNull(this.tablewoorkers.SalaryColumn);
  8490. }
  8491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8493. public void SetSalaryNull() {
  8494. this[this.tablewoorkers.SalaryColumn] = global::System.Convert.DBNull;
  8495. }
  8496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8498. public bool IsAgeNull() {
  8499. return this.IsNull(this.tablewoorkers.AgeColumn);
  8500. }
  8501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8503. public void SetAgeNull() {
  8504. this[this.tablewoorkers.AgeColumn] = global::System.Convert.DBNull;
  8505. }
  8506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8508. public bool IsDateNull() {
  8509. return this.IsNull(this.tablewoorkers.DateColumn);
  8510. }
  8511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8513. public void SetDateNull() {
  8514. this[this.tablewoorkers.DateColumn] = global::System.Convert.DBNull;
  8515. }
  8516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8518. public bool IsDescriptionNull() {
  8519. return this.IsNull(this.tablewoorkers.DescriptionColumn);
  8520. }
  8521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8523. public void SetDescriptionNull() {
  8524. this[this.tablewoorkers.DescriptionColumn] = global::System.Convert.DBNull;
  8525. }
  8526. }
  8527. /// <summary>
  8528. ///Represents strongly named DataRow class.
  8529. ///</summary>
  8530. public partial class WorkerRow : global::System.Data.DataRow {
  8531. private WorkerDataTable tableWorker;
  8532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8534. internal WorkerRow(global::System.Data.DataRowBuilder rb) :
  8535. base(rb) {
  8536. this.tableWorker = ((WorkerDataTable)(this.Table));
  8537. }
  8538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8540. public int id {
  8541. get {
  8542. return ((int)(this[this.tableWorker.idColumn]));
  8543. }
  8544. set {
  8545. this[this.tableWorker.idColumn] = value;
  8546. }
  8547. }
  8548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8550. public string name {
  8551. get {
  8552. return ((string)(this[this.tableWorker.nameColumn]));
  8553. }
  8554. set {
  8555. this[this.tableWorker.nameColumn] = value;
  8556. }
  8557. }
  8558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8560. public string logn {
  8561. get {
  8562. return ((string)(this[this.tableWorker.lognColumn]));
  8563. }
  8564. set {
  8565. this[this.tableWorker.lognColumn] = value;
  8566. }
  8567. }
  8568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8570. public string salary {
  8571. get {
  8572. return ((string)(this[this.tableWorker.salaryColumn]));
  8573. }
  8574. set {
  8575. this[this.tableWorker.salaryColumn] = value;
  8576. }
  8577. }
  8578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8580. public string age {
  8581. get {
  8582. return ((string)(this[this.tableWorker.ageColumn]));
  8583. }
  8584. set {
  8585. this[this.tableWorker.ageColumn] = value;
  8586. }
  8587. }
  8588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8590. public System.DateTime date {
  8591. get {
  8592. return ((global::System.DateTime)(this[this.tableWorker.dateColumn]));
  8593. }
  8594. set {
  8595. this[this.tableWorker.dateColumn] = value;
  8596. }
  8597. }
  8598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8600. public string discription {
  8601. get {
  8602. return ((string)(this[this.tableWorker.discriptionColumn]));
  8603. }
  8604. set {
  8605. this[this.tableWorker.discriptionColumn] = value;
  8606. }
  8607. }
  8608. }
  8609. /// <summary>
  8610. ///Represents strongly named DataRow class.
  8611. ///</summary>
  8612. public partial class WorkersRow : global::System.Data.DataRow {
  8613. private WorkersDataTable tableWorkers;
  8614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8616. internal WorkersRow(global::System.Data.DataRowBuilder rb) :
  8617. base(rb) {
  8618. this.tableWorkers = ((WorkersDataTable)(this.Table));
  8619. }
  8620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8622. public int ID {
  8623. get {
  8624. return ((int)(this[this.tableWorkers.IDColumn]));
  8625. }
  8626. set {
  8627. this[this.tableWorkers.IDColumn] = value;
  8628. }
  8629. }
  8630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8632. public string Login {
  8633. get {
  8634. try {
  8635. return ((string)(this[this.tableWorkers.LoginColumn]));
  8636. }
  8637. catch (global::System.InvalidCastException e) {
  8638. throw new global::System.Data.StrongTypingException("Значение для столбца \'Login\' в таблице \'Workers\' равно DBNull.", e);
  8639. }
  8640. }
  8641. set {
  8642. this[this.tableWorkers.LoginColumn] = value;
  8643. }
  8644. }
  8645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8647. public decimal Salary {
  8648. get {
  8649. try {
  8650. return ((decimal)(this[this.tableWorkers.SalaryColumn]));
  8651. }
  8652. catch (global::System.InvalidCastException e) {
  8653. throw new global::System.Data.StrongTypingException("Значение для столбца \'Salary\' в таблице \'Workers\' равно DBNull.", e);
  8654. }
  8655. }
  8656. set {
  8657. this[this.tableWorkers.SalaryColumn] = value;
  8658. }
  8659. }
  8660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8662. public int Age {
  8663. get {
  8664. try {
  8665. return ((int)(this[this.tableWorkers.AgeColumn]));
  8666. }
  8667. catch (global::System.InvalidCastException e) {
  8668. throw new global::System.Data.StrongTypingException("Значение для столбца \'Age\' в таблице \'Workers\' равно DBNull.", e);
  8669. }
  8670. }
  8671. set {
  8672. this[this.tableWorkers.AgeColumn] = value;
  8673. }
  8674. }
  8675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8677. public System.DateTime Date {
  8678. get {
  8679. try {
  8680. return ((global::System.DateTime)(this[this.tableWorkers.DateColumn]));
  8681. }
  8682. catch (global::System.InvalidCastException e) {
  8683. throw new global::System.Data.StrongTypingException("Значение для столбца \'Date\' в таблице \'Workers\' равно DBNull.", e);
  8684. }
  8685. }
  8686. set {
  8687. this[this.tableWorkers.DateColumn] = value;
  8688. }
  8689. }
  8690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8692. public string Description {
  8693. get {
  8694. try {
  8695. return ((string)(this[this.tableWorkers.DescriptionColumn]));
  8696. }
  8697. catch (global::System.InvalidCastException e) {
  8698. throw new global::System.Data.StrongTypingException("Значение для столбца \'Description\' в таблице \'Workers\' равно DBNull.", e);
  8699. }
  8700. }
  8701. set {
  8702. this[this.tableWorkers.DescriptionColumn] = value;
  8703. }
  8704. }
  8705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8707. public bool IsLoginNull() {
  8708. return this.IsNull(this.tableWorkers.LoginColumn);
  8709. }
  8710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8712. public void SetLoginNull() {
  8713. this[this.tableWorkers.LoginColumn] = global::System.Convert.DBNull;
  8714. }
  8715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8717. public bool IsSalaryNull() {
  8718. return this.IsNull(this.tableWorkers.SalaryColumn);
  8719. }
  8720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8722. public void SetSalaryNull() {
  8723. this[this.tableWorkers.SalaryColumn] = global::System.Convert.DBNull;
  8724. }
  8725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8727. public bool IsAgeNull() {
  8728. return this.IsNull(this.tableWorkers.AgeColumn);
  8729. }
  8730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8732. public void SetAgeNull() {
  8733. this[this.tableWorkers.AgeColumn] = global::System.Convert.DBNull;
  8734. }
  8735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8737. public bool IsDateNull() {
  8738. return this.IsNull(this.tableWorkers.DateColumn);
  8739. }
  8740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8742. public void SetDateNull() {
  8743. this[this.tableWorkers.DateColumn] = global::System.Convert.DBNull;
  8744. }
  8745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8747. public bool IsDescriptionNull() {
  8748. return this.IsNull(this.tableWorkers.DescriptionColumn);
  8749. }
  8750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8752. public void SetDescriptionNull() {
  8753. this[this.tableWorkers.DescriptionColumn] = global::System.Convert.DBNull;
  8754. }
  8755. }
  8756. /// <summary>
  8757. ///Represents strongly named DataRow class.
  8758. ///</summary>
  8759. public partial class ПродажиRow : global::System.Data.DataRow {
  8760. private ПродажиDataTable tableПродажи;
  8761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8763. internal ПродажиRow(global::System.Data.DataRowBuilder rb) :
  8764. base(rb) {
  8765. this.tableПродажи = ((ПродажиDataTable)(this.Table));
  8766. }
  8767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8769. public int код_товара {
  8770. get {
  8771. return ((int)(this[this.tableПродажи.код_товараColumn]));
  8772. }
  8773. set {
  8774. this[this.tableПродажи.код_товараColumn] = value;
  8775. }
  8776. }
  8777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8779. public string дата {
  8780. get {
  8781. try {
  8782. return ((string)(this[this.tableПродажи.датаColumn]));
  8783. }
  8784. catch (global::System.InvalidCastException e) {
  8785. throw new global::System.Data.StrongTypingException("Значение для столбца \'дата\' в таблице \'Продажи\' равно DBNull.", e);
  8786. }
  8787. }
  8788. set {
  8789. this[this.tableПродажи.датаColumn] = value;
  8790. }
  8791. }
  8792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8794. public string количество {
  8795. get {
  8796. try {
  8797. return ((string)(this[this.tableПродажи.количествоColumn]));
  8798. }
  8799. catch (global::System.InvalidCastException e) {
  8800. throw new global::System.Data.StrongTypingException("Значение для столбца \'количество\' в таблице \'Продажи\' равно DBNull.", e);
  8801. }
  8802. }
  8803. set {
  8804. this[this.tableПродажи.количествоColumn] = value;
  8805. }
  8806. }
  8807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8809. public bool IsдатаNull() {
  8810. return this.IsNull(this.tableПродажи.датаColumn);
  8811. }
  8812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8814. public void SetдатаNull() {
  8815. this[this.tableПродажи.датаColumn] = global::System.Convert.DBNull;
  8816. }
  8817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8819. public bool IsколичествоNull() {
  8820. return this.IsNull(this.tableПродажи.количествоColumn);
  8821. }
  8822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8824. public void SetколичествоNull() {
  8825. this[this.tableПродажи.количествоColumn] = global::System.Convert.DBNull;
  8826. }
  8827. }
  8828. /// <summary>
  8829. ///Represents strongly named DataRow class.
  8830. ///</summary>
  8831. public partial class ТоварыRow : global::System.Data.DataRow {
  8832. private ТоварыDataTable tableТовары;
  8833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8835. internal ТоварыRow(global::System.Data.DataRowBuilder rb) :
  8836. base(rb) {
  8837. this.tableТовары = ((ТоварыDataTable)(this.Table));
  8838. }
  8839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8841. public int код {
  8842. get {
  8843. try {
  8844. return ((int)(this[this.tableТовары.кодColumn]));
  8845. }
  8846. catch (global::System.InvalidCastException e) {
  8847. throw new global::System.Data.StrongTypingException("Значение для столбца \'код\' в таблице \'Товары\' равно DBNull.", e);
  8848. }
  8849. }
  8850. set {
  8851. this[this.tableТовары.кодColumn] = value;
  8852. }
  8853. }
  8854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8856. public string название {
  8857. get {
  8858. try {
  8859. return ((string)(this[this.tableТовары.названиеColumn]));
  8860. }
  8861. catch (global::System.InvalidCastException e) {
  8862. throw new global::System.Data.StrongTypingException("Значение для столбца \'название\' в таблице \'Товары\' равно DBNull.", e);
  8863. }
  8864. }
  8865. set {
  8866. this[this.tableТовары.названиеColumn] = value;
  8867. }
  8868. }
  8869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8871. public bool IsкодNull() {
  8872. return this.IsNull(this.tableТовары.кодColumn);
  8873. }
  8874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8876. public void SetкодNull() {
  8877. this[this.tableТовары.кодColumn] = global::System.Convert.DBNull;
  8878. }
  8879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8881. public bool IsназваниеNull() {
  8882. return this.IsNull(this.tableТовары.названиеColumn);
  8883. }
  8884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8886. public void SetназваниеNull() {
  8887. this[this.tableТовары.названиеColumn] = global::System.Convert.DBNull;
  8888. }
  8889. }
  8890. /// <summary>
  8891. ///Row event argument class
  8892. ///</summary>
  8893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8894. public class billinRowChangeEvent : global::System.EventArgs {
  8895. private billinRow eventRow;
  8896. private global::System.Data.DataRowAction eventAction;
  8897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8899. public billinRowChangeEvent(billinRow row, global::System.Data.DataRowAction action) {
  8900. this.eventRow = row;
  8901. this.eventAction = action;
  8902. }
  8903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8905. public billinRow Row {
  8906. get {
  8907. return this.eventRow;
  8908. }
  8909. }
  8910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8912. public global::System.Data.DataRowAction Action {
  8913. get {
  8914. return this.eventAction;
  8915. }
  8916. }
  8917. }
  8918. /// <summary>
  8919. ///Row event argument class
  8920. ///</summary>
  8921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8922. public class billingRowChangeEvent : global::System.EventArgs {
  8923. private billingRow eventRow;
  8924. private global::System.Data.DataRowAction eventAction;
  8925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8927. public billingRowChangeEvent(billingRow row, global::System.Data.DataRowAction action) {
  8928. this.eventRow = row;
  8929. this.eventAction = action;
  8930. }
  8931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8933. public billingRow Row {
  8934. get {
  8935. return this.eventRow;
  8936. }
  8937. }
  8938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8940. public global::System.Data.DataRowAction Action {
  8941. get {
  8942. return this.eventAction;
  8943. }
  8944. }
  8945. }
  8946. /// <summary>
  8947. ///Row event argument class
  8948. ///</summary>
  8949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8950. public class OrderRowChangeEvent : global::System.EventArgs {
  8951. private OrderRow eventRow;
  8952. private global::System.Data.DataRowAction eventAction;
  8953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8955. public OrderRowChangeEvent(OrderRow row, global::System.Data.DataRowAction action) {
  8956. this.eventRow = row;
  8957. this.eventAction = action;
  8958. }
  8959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8961. public OrderRow Row {
  8962. get {
  8963. return this.eventRow;
  8964. }
  8965. }
  8966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8968. public global::System.Data.DataRowAction Action {
  8969. get {
  8970. return this.eventAction;
  8971. }
  8972. }
  8973. }
  8974. /// <summary>
  8975. ///Row event argument class
  8976. ///</summary>
  8977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8978. public class OrderProductRowChangeEvent : global::System.EventArgs {
  8979. private OrderProductRow eventRow;
  8980. private global::System.Data.DataRowAction eventAction;
  8981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8983. public OrderProductRowChangeEvent(OrderProductRow row, global::System.Data.DataRowAction action) {
  8984. this.eventRow = row;
  8985. this.eventAction = action;
  8986. }
  8987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8989. public OrderProductRow Row {
  8990. get {
  8991. return this.eventRow;
  8992. }
  8993. }
  8994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8996. public global::System.Data.DataRowAction Action {
  8997. get {
  8998. return this.eventAction;
  8999. }
  9000. }
  9001. }
  9002. /// <summary>
  9003. ///Row event argument class
  9004. ///</summary>
  9005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9006. public class ProductRowChangeEvent : global::System.EventArgs {
  9007. private ProductRow eventRow;
  9008. private global::System.Data.DataRowAction eventAction;
  9009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9011. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  9012. this.eventRow = row;
  9013. this.eventAction = action;
  9014. }
  9015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9017. public ProductRow Row {
  9018. get {
  9019. return this.eventRow;
  9020. }
  9021. }
  9022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9024. public global::System.Data.DataRowAction Action {
  9025. get {
  9026. return this.eventAction;
  9027. }
  9028. }
  9029. }
  9030. /// <summary>
  9031. ///Row event argument class
  9032. ///</summary>
  9033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9034. public class RoleRowChangeEvent : global::System.EventArgs {
  9035. private RoleRow eventRow;
  9036. private global::System.Data.DataRowAction eventAction;
  9037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9039. public RoleRowChangeEvent(RoleRow row, global::System.Data.DataRowAction action) {
  9040. this.eventRow = row;
  9041. this.eventAction = action;
  9042. }
  9043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9045. public RoleRow Row {
  9046. get {
  9047. return this.eventRow;
  9048. }
  9049. }
  9050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9052. public global::System.Data.DataRowAction Action {
  9053. get {
  9054. return this.eventAction;
  9055. }
  9056. }
  9057. }
  9058. /// <summary>
  9059. ///Row event argument class
  9060. ///</summary>
  9061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9062. public class tbl_categoriesRowChangeEvent : global::System.EventArgs {
  9063. private tbl_categoriesRow eventRow;
  9064. private global::System.Data.DataRowAction eventAction;
  9065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9067. public tbl_categoriesRowChangeEvent(tbl_categoriesRow row, global::System.Data.DataRowAction action) {
  9068. this.eventRow = row;
  9069. this.eventAction = action;
  9070. }
  9071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9073. public tbl_categoriesRow Row {
  9074. get {
  9075. return this.eventRow;
  9076. }
  9077. }
  9078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9080. public global::System.Data.DataRowAction Action {
  9081. get {
  9082. return this.eventAction;
  9083. }
  9084. }
  9085. }
  9086. /// <summary>
  9087. ///Row event argument class
  9088. ///</summary>
  9089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9090. public class tbl_dea_custRowChangeEvent : global::System.EventArgs {
  9091. private tbl_dea_custRow eventRow;
  9092. private global::System.Data.DataRowAction eventAction;
  9093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9095. public tbl_dea_custRowChangeEvent(tbl_dea_custRow row, global::System.Data.DataRowAction action) {
  9096. this.eventRow = row;
  9097. this.eventAction = action;
  9098. }
  9099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9101. public tbl_dea_custRow Row {
  9102. get {
  9103. return this.eventRow;
  9104. }
  9105. }
  9106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9108. public global::System.Data.DataRowAction Action {
  9109. get {
  9110. return this.eventAction;
  9111. }
  9112. }
  9113. }
  9114. /// <summary>
  9115. ///Row event argument class
  9116. ///</summary>
  9117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9118. public class tbl_productsRowChangeEvent : global::System.EventArgs {
  9119. private tbl_productsRow eventRow;
  9120. private global::System.Data.DataRowAction eventAction;
  9121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9123. public tbl_productsRowChangeEvent(tbl_productsRow row, global::System.Data.DataRowAction action) {
  9124. this.eventRow = row;
  9125. this.eventAction = action;
  9126. }
  9127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9129. public tbl_productsRow Row {
  9130. get {
  9131. return this.eventRow;
  9132. }
  9133. }
  9134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9136. public global::System.Data.DataRowAction Action {
  9137. get {
  9138. return this.eventAction;
  9139. }
  9140. }
  9141. }
  9142. /// <summary>
  9143. ///Row event argument class
  9144. ///</summary>
  9145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9146. public class tbl_transaction_detailRowChangeEvent : global::System.EventArgs {
  9147. private tbl_transaction_detailRow eventRow;
  9148. private global::System.Data.DataRowAction eventAction;
  9149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9151. public tbl_transaction_detailRowChangeEvent(tbl_transaction_detailRow row, global::System.Data.DataRowAction action) {
  9152. this.eventRow = row;
  9153. this.eventAction = action;
  9154. }
  9155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9157. public tbl_transaction_detailRow Row {
  9158. get {
  9159. return this.eventRow;
  9160. }
  9161. }
  9162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9164. public global::System.Data.DataRowAction Action {
  9165. get {
  9166. return this.eventAction;
  9167. }
  9168. }
  9169. }
  9170. /// <summary>
  9171. ///Row event argument class
  9172. ///</summary>
  9173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9174. public class tbl_transactionsRowChangeEvent : global::System.EventArgs {
  9175. private tbl_transactionsRow eventRow;
  9176. private global::System.Data.DataRowAction eventAction;
  9177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9179. public tbl_transactionsRowChangeEvent(tbl_transactionsRow row, global::System.Data.DataRowAction action) {
  9180. this.eventRow = row;
  9181. this.eventAction = action;
  9182. }
  9183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9185. public tbl_transactionsRow Row {
  9186. get {
  9187. return this.eventRow;
  9188. }
  9189. }
  9190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9192. public global::System.Data.DataRowAction Action {
  9193. get {
  9194. return this.eventAction;
  9195. }
  9196. }
  9197. }
  9198. /// <summary>
  9199. ///Row event argument class
  9200. ///</summary>
  9201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9202. public class tbl_usersRowChangeEvent : global::System.EventArgs {
  9203. private tbl_usersRow eventRow;
  9204. private global::System.Data.DataRowAction eventAction;
  9205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9207. public tbl_usersRowChangeEvent(tbl_usersRow row, global::System.Data.DataRowAction action) {
  9208. this.eventRow = row;
  9209. this.eventAction = action;
  9210. }
  9211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9213. public tbl_usersRow Row {
  9214. get {
  9215. return this.eventRow;
  9216. }
  9217. }
  9218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9220. public global::System.Data.DataRowAction Action {
  9221. get {
  9222. return this.eventAction;
  9223. }
  9224. }
  9225. }
  9226. /// <summary>
  9227. ///Row event argument class
  9228. ///</summary>
  9229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9230. public class TovariRowChangeEvent : global::System.EventArgs {
  9231. private TovariRow eventRow;
  9232. private global::System.Data.DataRowAction eventAction;
  9233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9235. public TovariRowChangeEvent(TovariRow row, global::System.Data.DataRowAction action) {
  9236. this.eventRow = row;
  9237. this.eventAction = action;
  9238. }
  9239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9241. public TovariRow Row {
  9242. get {
  9243. return this.eventRow;
  9244. }
  9245. }
  9246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9248. public global::System.Data.DataRowAction Action {
  9249. get {
  9250. return this.eventAction;
  9251. }
  9252. }
  9253. }
  9254. /// <summary>
  9255. ///Row event argument class
  9256. ///</summary>
  9257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9258. public class UserRowChangeEvent : global::System.EventArgs {
  9259. private UserRow eventRow;
  9260. private global::System.Data.DataRowAction eventAction;
  9261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9263. public UserRowChangeEvent(UserRow row, global::System.Data.DataRowAction action) {
  9264. this.eventRow = row;
  9265. this.eventAction = action;
  9266. }
  9267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9269. public UserRow Row {
  9270. get {
  9271. return this.eventRow;
  9272. }
  9273. }
  9274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9276. public global::System.Data.DataRowAction Action {
  9277. get {
  9278. return this.eventAction;
  9279. }
  9280. }
  9281. }
  9282. /// <summary>
  9283. ///Row event argument class
  9284. ///</summary>
  9285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9286. public class woorkersRowChangeEvent : global::System.EventArgs {
  9287. private woorkersRow eventRow;
  9288. private global::System.Data.DataRowAction eventAction;
  9289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9291. public woorkersRowChangeEvent(woorkersRow row, global::System.Data.DataRowAction action) {
  9292. this.eventRow = row;
  9293. this.eventAction = action;
  9294. }
  9295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9297. public woorkersRow Row {
  9298. get {
  9299. return this.eventRow;
  9300. }
  9301. }
  9302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9304. public global::System.Data.DataRowAction Action {
  9305. get {
  9306. return this.eventAction;
  9307. }
  9308. }
  9309. }
  9310. /// <summary>
  9311. ///Row event argument class
  9312. ///</summary>
  9313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9314. public class WorkerRowChangeEvent : global::System.EventArgs {
  9315. private WorkerRow eventRow;
  9316. private global::System.Data.DataRowAction eventAction;
  9317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9319. public WorkerRowChangeEvent(WorkerRow row, global::System.Data.DataRowAction action) {
  9320. this.eventRow = row;
  9321. this.eventAction = action;
  9322. }
  9323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9325. public WorkerRow Row {
  9326. get {
  9327. return this.eventRow;
  9328. }
  9329. }
  9330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9332. public global::System.Data.DataRowAction Action {
  9333. get {
  9334. return this.eventAction;
  9335. }
  9336. }
  9337. }
  9338. /// <summary>
  9339. ///Row event argument class
  9340. ///</summary>
  9341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9342. public class WorkersRowChangeEvent : global::System.EventArgs {
  9343. private WorkersRow eventRow;
  9344. private global::System.Data.DataRowAction eventAction;
  9345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9347. public WorkersRowChangeEvent(WorkersRow row, global::System.Data.DataRowAction action) {
  9348. this.eventRow = row;
  9349. this.eventAction = action;
  9350. }
  9351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9353. public WorkersRow Row {
  9354. get {
  9355. return this.eventRow;
  9356. }
  9357. }
  9358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9360. public global::System.Data.DataRowAction Action {
  9361. get {
  9362. return this.eventAction;
  9363. }
  9364. }
  9365. }
  9366. /// <summary>
  9367. ///Row event argument class
  9368. ///</summary>
  9369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9370. public class ПродажиRowChangeEvent : global::System.EventArgs {
  9371. private ПродажиRow eventRow;
  9372. private global::System.Data.DataRowAction eventAction;
  9373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9375. public ПродажиRowChangeEvent(ПродажиRow row, global::System.Data.DataRowAction action) {
  9376. this.eventRow = row;
  9377. this.eventAction = action;
  9378. }
  9379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9381. public ПродажиRow Row {
  9382. get {
  9383. return this.eventRow;
  9384. }
  9385. }
  9386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9388. public global::System.Data.DataRowAction Action {
  9389. get {
  9390. return this.eventAction;
  9391. }
  9392. }
  9393. }
  9394. /// <summary>
  9395. ///Row event argument class
  9396. ///</summary>
  9397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9398. public class ТоварыRowChangeEvent : global::System.EventArgs {
  9399. private ТоварыRow eventRow;
  9400. private global::System.Data.DataRowAction eventAction;
  9401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9403. public ТоварыRowChangeEvent(ТоварыRow row, global::System.Data.DataRowAction action) {
  9404. this.eventRow = row;
  9405. this.eventAction = action;
  9406. }
  9407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9409. public ТоварыRow Row {
  9410. get {
  9411. return this.eventRow;
  9412. }
  9413. }
  9414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9416. public global::System.Data.DataRowAction Action {
  9417. get {
  9418. return this.eventAction;
  9419. }
  9420. }
  9421. }
  9422. }
  9423. }
  9424. namespace IS31BorovikAleksandrStudents.DataSet1TableAdapters {
  9425. /// <summary>
  9426. ///Represents the connection and commands used to retrieve and save data.
  9427. ///</summary>
  9428. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9429. [global::System.ComponentModel.ToolboxItem(true)]
  9430. [global::System.ComponentModel.DataObjectAttribute(true)]
  9431. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9432. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9433. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9434. public partial class billinTableAdapter : global::System.ComponentModel.Component {
  9435. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9436. private global::System.Data.SqlClient.SqlConnection _connection;
  9437. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9438. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9439. private bool _clearBeforeFill;
  9440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9442. public billinTableAdapter() {
  9443. this.ClearBeforeFill = true;
  9444. }
  9445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9447. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9448. get {
  9449. if ((this._adapter == null)) {
  9450. this.InitAdapter();
  9451. }
  9452. return this._adapter;
  9453. }
  9454. }
  9455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9457. internal global::System.Data.SqlClient.SqlConnection Connection {
  9458. get {
  9459. if ((this._connection == null)) {
  9460. this.InitConnection();
  9461. }
  9462. return this._connection;
  9463. }
  9464. set {
  9465. this._connection = value;
  9466. if ((this.Adapter.InsertCommand != null)) {
  9467. this.Adapter.InsertCommand.Connection = value;
  9468. }
  9469. if ((this.Adapter.DeleteCommand != null)) {
  9470. this.Adapter.DeleteCommand.Connection = value;
  9471. }
  9472. if ((this.Adapter.UpdateCommand != null)) {
  9473. this.Adapter.UpdateCommand.Connection = value;
  9474. }
  9475. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9476. if ((this.CommandCollection[i] != null)) {
  9477. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9478. }
  9479. }
  9480. }
  9481. }
  9482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9484. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9485. get {
  9486. return this._transaction;
  9487. }
  9488. set {
  9489. this._transaction = value;
  9490. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9491. this.CommandCollection[i].Transaction = this._transaction;
  9492. }
  9493. if (((this.Adapter != null)
  9494. && (this.Adapter.DeleteCommand != null))) {
  9495. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9496. }
  9497. if (((this.Adapter != null)
  9498. && (this.Adapter.InsertCommand != null))) {
  9499. this.Adapter.InsertCommand.Transaction = this._transaction;
  9500. }
  9501. if (((this.Adapter != null)
  9502. && (this.Adapter.UpdateCommand != null))) {
  9503. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9504. }
  9505. }
  9506. }
  9507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9509. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9510. get {
  9511. if ((this._commandCollection == null)) {
  9512. this.InitCommandCollection();
  9513. }
  9514. return this._commandCollection;
  9515. }
  9516. }
  9517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9519. public bool ClearBeforeFill {
  9520. get {
  9521. return this._clearBeforeFill;
  9522. }
  9523. set {
  9524. this._clearBeforeFill = value;
  9525. }
  9526. }
  9527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9529. private void InitAdapter() {
  9530. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9531. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9532. tableMapping.SourceTable = "Table";
  9533. tableMapping.DataSetTable = "billin";
  9534. tableMapping.ColumnMappings.Add("emailpayer", "emailpayer");
  9535. tableMapping.ColumnMappings.Add("emailrecipient", "emailrecipient");
  9536. tableMapping.ColumnMappings.Add("SUM", "SUM");
  9537. tableMapping.ColumnMappings.Add("CURRENCY", "CURRENCY");
  9538. tableMapping.ColumnMappings.Add("BILLINGDATE", "BILLINGDATE");
  9539. tableMapping.ColumnMappings.Add("COMMENT", "COMMENT");
  9540. this._adapter.TableMappings.Add(tableMapping);
  9541. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9542. this._adapter.InsertCommand.Connection = this.Connection;
  9543. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[billin] ([emailpayer], [emailrecipient], [SUM], [CURRENCY], [B" +
  9544. "ILLINGDATE], [COMMENT]) VALUES (@emailpayer, @emailrecipient, @SUM, @CURRENCY, @" +
  9545. "BILLINGDATE, @COMMENT)";
  9546. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9547. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@emailpayer", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "emailpayer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9548. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@emailrecipient", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "emailrecipient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9549. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SUM", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "SUM", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9550. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CURRENCY", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CURRENCY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9551. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BILLINGDATE", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BILLINGDATE", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9552. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@COMMENT", global::System.Data.SqlDbType.Text, 0, global::System.Data.ParameterDirection.Input, 0, 0, "COMMENT", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9553. }
  9554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9556. private void InitConnection() {
  9557. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9558. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  9559. }
  9560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9562. private void InitCommandCollection() {
  9563. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9564. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9565. this._commandCollection[0].Connection = this.Connection;
  9566. this._commandCollection[0].CommandText = "SELECT emailpayer, emailrecipient, SUM, CURRENCY, BILLINGDATE, COMMENT FROM dbo.b" +
  9567. "illin";
  9568. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9569. }
  9570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9572. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9573. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9574. public virtual int Fill(DataSet1.billinDataTable dataTable) {
  9575. this.Adapter.SelectCommand = this.CommandCollection[0];
  9576. if ((this.ClearBeforeFill == true)) {
  9577. dataTable.Clear();
  9578. }
  9579. int returnValue = this.Adapter.Fill(dataTable);
  9580. return returnValue;
  9581. }
  9582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9584. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9585. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9586. public virtual DataSet1.billinDataTable GetData() {
  9587. this.Adapter.SelectCommand = this.CommandCollection[0];
  9588. DataSet1.billinDataTable dataTable = new DataSet1.billinDataTable();
  9589. this.Adapter.Fill(dataTable);
  9590. return dataTable;
  9591. }
  9592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9594. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9595. public virtual int Update(DataSet1.billinDataTable dataTable) {
  9596. return this.Adapter.Update(dataTable);
  9597. }
  9598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9600. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9601. public virtual int Update(DataSet1 dataSet) {
  9602. return this.Adapter.Update(dataSet, "billin");
  9603. }
  9604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9606. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9607. public virtual int Update(global::System.Data.DataRow dataRow) {
  9608. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9609. dataRow});
  9610. }
  9611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9613. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9614. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9615. return this.Adapter.Update(dataRows);
  9616. }
  9617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9619. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9620. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9621. public virtual int Insert(string emailpayer, string emailrecipient, global::System.Nullable<decimal> SUM, string CURRENCY, global::System.Nullable<global::System.DateTime> BILLINGDATE, string COMMENT) {
  9622. if ((emailpayer == null)) {
  9623. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9624. }
  9625. else {
  9626. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(emailpayer));
  9627. }
  9628. if ((emailrecipient == null)) {
  9629. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9630. }
  9631. else {
  9632. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(emailrecipient));
  9633. }
  9634. if ((SUM.HasValue == true)) {
  9635. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(SUM.Value));
  9636. }
  9637. else {
  9638. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  9639. }
  9640. if ((CURRENCY == null)) {
  9641. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9642. }
  9643. else {
  9644. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CURRENCY));
  9645. }
  9646. if ((BILLINGDATE.HasValue == true)) {
  9647. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(BILLINGDATE.Value));
  9648. }
  9649. else {
  9650. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  9651. }
  9652. if ((COMMENT == null)) {
  9653. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  9654. }
  9655. else {
  9656. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(COMMENT));
  9657. }
  9658. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9659. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9660. != global::System.Data.ConnectionState.Open)) {
  9661. this.Adapter.InsertCommand.Connection.Open();
  9662. }
  9663. try {
  9664. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9665. return returnValue;
  9666. }
  9667. finally {
  9668. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9669. this.Adapter.InsertCommand.Connection.Close();
  9670. }
  9671. }
  9672. }
  9673. }
  9674. /// <summary>
  9675. ///Represents the connection and commands used to retrieve and save data.
  9676. ///</summary>
  9677. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9678. [global::System.ComponentModel.ToolboxItem(true)]
  9679. [global::System.ComponentModel.DataObjectAttribute(true)]
  9680. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9681. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9682. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9683. public partial class billingTableAdapter : global::System.ComponentModel.Component {
  9684. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9685. private global::System.Data.SqlClient.SqlConnection _connection;
  9686. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9687. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9688. private bool _clearBeforeFill;
  9689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9691. public billingTableAdapter() {
  9692. this.ClearBeforeFill = true;
  9693. }
  9694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9696. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9697. get {
  9698. if ((this._adapter == null)) {
  9699. this.InitAdapter();
  9700. }
  9701. return this._adapter;
  9702. }
  9703. }
  9704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9706. internal global::System.Data.SqlClient.SqlConnection Connection {
  9707. get {
  9708. if ((this._connection == null)) {
  9709. this.InitConnection();
  9710. }
  9711. return this._connection;
  9712. }
  9713. set {
  9714. this._connection = value;
  9715. if ((this.Adapter.InsertCommand != null)) {
  9716. this.Adapter.InsertCommand.Connection = value;
  9717. }
  9718. if ((this.Adapter.DeleteCommand != null)) {
  9719. this.Adapter.DeleteCommand.Connection = value;
  9720. }
  9721. if ((this.Adapter.UpdateCommand != null)) {
  9722. this.Adapter.UpdateCommand.Connection = value;
  9723. }
  9724. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9725. if ((this.CommandCollection[i] != null)) {
  9726. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9727. }
  9728. }
  9729. }
  9730. }
  9731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9733. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9734. get {
  9735. return this._transaction;
  9736. }
  9737. set {
  9738. this._transaction = value;
  9739. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9740. this.CommandCollection[i].Transaction = this._transaction;
  9741. }
  9742. if (((this.Adapter != null)
  9743. && (this.Adapter.DeleteCommand != null))) {
  9744. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9745. }
  9746. if (((this.Adapter != null)
  9747. && (this.Adapter.InsertCommand != null))) {
  9748. this.Adapter.InsertCommand.Transaction = this._transaction;
  9749. }
  9750. if (((this.Adapter != null)
  9751. && (this.Adapter.UpdateCommand != null))) {
  9752. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9753. }
  9754. }
  9755. }
  9756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9758. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9759. get {
  9760. if ((this._commandCollection == null)) {
  9761. this.InitCommandCollection();
  9762. }
  9763. return this._commandCollection;
  9764. }
  9765. }
  9766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9768. public bool ClearBeforeFill {
  9769. get {
  9770. return this._clearBeforeFill;
  9771. }
  9772. set {
  9773. this._clearBeforeFill = value;
  9774. }
  9775. }
  9776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9778. private void InitAdapter() {
  9779. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9780. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9781. tableMapping.SourceTable = "Table";
  9782. tableMapping.DataSetTable = "billing";
  9783. tableMapping.ColumnMappings.Add("emailpayer", "emailpayer");
  9784. tableMapping.ColumnMappings.Add("emailrecipient", "emailrecipient");
  9785. tableMapping.ColumnMappings.Add("SUM", "SUM");
  9786. tableMapping.ColumnMappings.Add("CURRENCY", "CURRENCY");
  9787. tableMapping.ColumnMappings.Add("BILLINGDATE", "BILLINGDATE");
  9788. tableMapping.ColumnMappings.Add("COMMENT", "COMMENT");
  9789. this._adapter.TableMappings.Add(tableMapping);
  9790. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9791. this._adapter.InsertCommand.Connection = this.Connection;
  9792. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[billing] ([emailpayer], [emailrecipient], [SUM], [CURRENCY], [" +
  9793. "BILLINGDATE], [COMMENT]) VALUES (@emailpayer, @emailrecipient, @SUM, @CURRENCY, " +
  9794. "@BILLINGDATE, @COMMENT)";
  9795. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9796. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@emailpayer", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "emailpayer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9797. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@emailrecipient", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "emailrecipient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9798. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SUM", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "SUM", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9799. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CURRENCY", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CURRENCY", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9800. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BILLINGDATE", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BILLINGDATE", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9801. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@COMMENT", global::System.Data.SqlDbType.Text, 0, global::System.Data.ParameterDirection.Input, 0, 0, "COMMENT", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9802. }
  9803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9805. private void InitConnection() {
  9806. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9807. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  9808. }
  9809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9811. private void InitCommandCollection() {
  9812. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9813. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9814. this._commandCollection[0].Connection = this.Connection;
  9815. this._commandCollection[0].CommandText = "SELECT emailpayer, emailrecipient, SUM, CURRENCY, BILLINGDATE, COMMENT FROM dbo.b" +
  9816. "illing";
  9817. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9818. }
  9819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9821. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9822. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9823. public virtual int Fill(DataSet1.billingDataTable dataTable) {
  9824. this.Adapter.SelectCommand = this.CommandCollection[0];
  9825. if ((this.ClearBeforeFill == true)) {
  9826. dataTable.Clear();
  9827. }
  9828. int returnValue = this.Adapter.Fill(dataTable);
  9829. return returnValue;
  9830. }
  9831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9833. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9834. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9835. public virtual DataSet1.billingDataTable GetData() {
  9836. this.Adapter.SelectCommand = this.CommandCollection[0];
  9837. DataSet1.billingDataTable dataTable = new DataSet1.billingDataTable();
  9838. this.Adapter.Fill(dataTable);
  9839. return dataTable;
  9840. }
  9841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9843. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9844. public virtual int Update(DataSet1.billingDataTable dataTable) {
  9845. return this.Adapter.Update(dataTable);
  9846. }
  9847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9849. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9850. public virtual int Update(DataSet1 dataSet) {
  9851. return this.Adapter.Update(dataSet, "billing");
  9852. }
  9853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9855. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9856. public virtual int Update(global::System.Data.DataRow dataRow) {
  9857. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9858. dataRow});
  9859. }
  9860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9862. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9863. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9864. return this.Adapter.Update(dataRows);
  9865. }
  9866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9868. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9869. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9870. public virtual int Insert(string emailpayer, string emailrecipient, global::System.Nullable<decimal> SUM, string CURRENCY, global::System.Nullable<global::System.DateTime> BILLINGDATE, string COMMENT) {
  9871. if ((emailpayer == null)) {
  9872. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9873. }
  9874. else {
  9875. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(emailpayer));
  9876. }
  9877. if ((emailrecipient == null)) {
  9878. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9879. }
  9880. else {
  9881. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(emailrecipient));
  9882. }
  9883. if ((SUM.HasValue == true)) {
  9884. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(SUM.Value));
  9885. }
  9886. else {
  9887. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  9888. }
  9889. if ((CURRENCY == null)) {
  9890. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  9891. }
  9892. else {
  9893. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(CURRENCY));
  9894. }
  9895. if ((BILLINGDATE.HasValue == true)) {
  9896. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(BILLINGDATE.Value));
  9897. }
  9898. else {
  9899. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  9900. }
  9901. if ((COMMENT == null)) {
  9902. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  9903. }
  9904. else {
  9905. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(COMMENT));
  9906. }
  9907. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9908. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9909. != global::System.Data.ConnectionState.Open)) {
  9910. this.Adapter.InsertCommand.Connection.Open();
  9911. }
  9912. try {
  9913. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9914. return returnValue;
  9915. }
  9916. finally {
  9917. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9918. this.Adapter.InsertCommand.Connection.Close();
  9919. }
  9920. }
  9921. }
  9922. }
  9923. /// <summary>
  9924. ///Represents the connection and commands used to retrieve and save data.
  9925. ///</summary>
  9926. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9927. [global::System.ComponentModel.ToolboxItem(true)]
  9928. [global::System.ComponentModel.DataObjectAttribute(true)]
  9929. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9930. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9931. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9932. public partial class OrderTableAdapter : global::System.ComponentModel.Component {
  9933. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9934. private global::System.Data.SqlClient.SqlConnection _connection;
  9935. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9936. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9937. private bool _clearBeforeFill;
  9938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9940. public OrderTableAdapter() {
  9941. this.ClearBeforeFill = true;
  9942. }
  9943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9945. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9946. get {
  9947. if ((this._adapter == null)) {
  9948. this.InitAdapter();
  9949. }
  9950. return this._adapter;
  9951. }
  9952. }
  9953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9955. internal global::System.Data.SqlClient.SqlConnection Connection {
  9956. get {
  9957. if ((this._connection == null)) {
  9958. this.InitConnection();
  9959. }
  9960. return this._connection;
  9961. }
  9962. set {
  9963. this._connection = value;
  9964. if ((this.Adapter.InsertCommand != null)) {
  9965. this.Adapter.InsertCommand.Connection = value;
  9966. }
  9967. if ((this.Adapter.DeleteCommand != null)) {
  9968. this.Adapter.DeleteCommand.Connection = value;
  9969. }
  9970. if ((this.Adapter.UpdateCommand != null)) {
  9971. this.Adapter.UpdateCommand.Connection = value;
  9972. }
  9973. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9974. if ((this.CommandCollection[i] != null)) {
  9975. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9976. }
  9977. }
  9978. }
  9979. }
  9980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9982. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9983. get {
  9984. return this._transaction;
  9985. }
  9986. set {
  9987. this._transaction = value;
  9988. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9989. this.CommandCollection[i].Transaction = this._transaction;
  9990. }
  9991. if (((this.Adapter != null)
  9992. && (this.Adapter.DeleteCommand != null))) {
  9993. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9994. }
  9995. if (((this.Adapter != null)
  9996. && (this.Adapter.InsertCommand != null))) {
  9997. this.Adapter.InsertCommand.Transaction = this._transaction;
  9998. }
  9999. if (((this.Adapter != null)
  10000. && (this.Adapter.UpdateCommand != null))) {
  10001. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10002. }
  10003. }
  10004. }
  10005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10007. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10008. get {
  10009. if ((this._commandCollection == null)) {
  10010. this.InitCommandCollection();
  10011. }
  10012. return this._commandCollection;
  10013. }
  10014. }
  10015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10017. public bool ClearBeforeFill {
  10018. get {
  10019. return this._clearBeforeFill;
  10020. }
  10021. set {
  10022. this._clearBeforeFill = value;
  10023. }
  10024. }
  10025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10027. private void InitAdapter() {
  10028. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10029. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10030. tableMapping.SourceTable = "Table";
  10031. tableMapping.DataSetTable = "Order";
  10032. tableMapping.ColumnMappings.Add("OrderID", "OrderID");
  10033. tableMapping.ColumnMappings.Add("OrderStatus", "OrderStatus");
  10034. tableMapping.ColumnMappings.Add("OrderDeliveryDate", "OrderDeliveryDate");
  10035. tableMapping.ColumnMappings.Add("OrderPickupPoint", "OrderPickupPoint");
  10036. this._adapter.TableMappings.Add(tableMapping);
  10037. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10038. this._adapter.DeleteCommand.Connection = this.Connection;
  10039. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Order] WHERE (([OrderID] = @Original_OrderID) AND ([OrderDeliv" +
  10040. "eryDate] = @Original_OrderDeliveryDate))";
  10041. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10042. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10043. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDeliveryDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10044. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10045. this._adapter.InsertCommand.Connection = this.Connection;
  10046. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Order] ([OrderStatus], [OrderDeliveryDate], [OrderPickupPoint]) VALUES (@OrderStatus, @OrderDeliveryDate, @OrderPickupPoint);
  10047. SELECT OrderID, OrderStatus, OrderDeliveryDate, OrderPickupPoint FROM [Order] WHERE (OrderID = SCOPE_IDENTITY())";
  10048. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10049. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderStatus", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10050. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDeliveryDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10051. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderPickupPoint", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderPickupPoint", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10052. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10053. this._adapter.UpdateCommand.Connection = this.Connection;
  10054. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Order] SET [OrderStatus] = @OrderStatus, [OrderDeliveryDate] = @OrderDeliveryDate, [OrderPickupPoint] = @OrderPickupPoint WHERE (([OrderID] = @Original_OrderID) AND ([OrderDeliveryDate] = @Original_OrderDeliveryDate));
  10055. SELECT OrderID, OrderStatus, OrderDeliveryDate, OrderPickupPoint FROM [Order] WHERE (OrderID = @OrderID)";
  10056. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10057. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderStatus", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10058. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderDeliveryDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10059. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderPickupPoint", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderPickupPoint", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10060. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10061. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderDeliveryDate", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderDeliveryDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10062. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10063. }
  10064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10066. private void InitConnection() {
  10067. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10068. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  10069. }
  10070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10072. private void InitCommandCollection() {
  10073. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10074. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10075. this._commandCollection[0].Connection = this.Connection;
  10076. this._commandCollection[0].CommandText = "SELECT OrderID, OrderStatus, OrderDeliveryDate, OrderPickupPoint FROM dbo.[Order]" +
  10077. "";
  10078. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10079. }
  10080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10082. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10083. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10084. public virtual int Fill(DataSet1.OrderDataTable dataTable) {
  10085. this.Adapter.SelectCommand = this.CommandCollection[0];
  10086. if ((this.ClearBeforeFill == true)) {
  10087. dataTable.Clear();
  10088. }
  10089. int returnValue = this.Adapter.Fill(dataTable);
  10090. return returnValue;
  10091. }
  10092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10094. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10095. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10096. public virtual DataSet1.OrderDataTable GetData() {
  10097. this.Adapter.SelectCommand = this.CommandCollection[0];
  10098. DataSet1.OrderDataTable dataTable = new DataSet1.OrderDataTable();
  10099. this.Adapter.Fill(dataTable);
  10100. return dataTable;
  10101. }
  10102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10104. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10105. public virtual int Update(DataSet1.OrderDataTable dataTable) {
  10106. return this.Adapter.Update(dataTable);
  10107. }
  10108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10110. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10111. public virtual int Update(DataSet1 dataSet) {
  10112. return this.Adapter.Update(dataSet, "Order");
  10113. }
  10114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10116. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10117. public virtual int Update(global::System.Data.DataRow dataRow) {
  10118. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10119. dataRow});
  10120. }
  10121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10123. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10124. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10125. return this.Adapter.Update(dataRows);
  10126. }
  10127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10129. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10130. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10131. public virtual int Delete(int Original_OrderID, System.DateTime Original_OrderDeliveryDate) {
  10132. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_OrderID));
  10133. this.Adapter.DeleteCommand.Parameters[1].Value = ((System.DateTime)(Original_OrderDeliveryDate));
  10134. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10135. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10136. != global::System.Data.ConnectionState.Open)) {
  10137. this.Adapter.DeleteCommand.Connection.Open();
  10138. }
  10139. try {
  10140. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10141. return returnValue;
  10142. }
  10143. finally {
  10144. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10145. this.Adapter.DeleteCommand.Connection.Close();
  10146. }
  10147. }
  10148. }
  10149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10151. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10152. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10153. public virtual int Insert(string OrderStatus, System.DateTime OrderDeliveryDate, string OrderPickupPoint) {
  10154. if ((OrderStatus == null)) {
  10155. throw new global::System.ArgumentNullException("OrderStatus");
  10156. }
  10157. else {
  10158. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(OrderStatus));
  10159. }
  10160. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(OrderDeliveryDate));
  10161. if ((OrderPickupPoint == null)) {
  10162. throw new global::System.ArgumentNullException("OrderPickupPoint");
  10163. }
  10164. else {
  10165. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(OrderPickupPoint));
  10166. }
  10167. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10168. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10169. != global::System.Data.ConnectionState.Open)) {
  10170. this.Adapter.InsertCommand.Connection.Open();
  10171. }
  10172. try {
  10173. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10174. return returnValue;
  10175. }
  10176. finally {
  10177. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10178. this.Adapter.InsertCommand.Connection.Close();
  10179. }
  10180. }
  10181. }
  10182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10184. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10185. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10186. public virtual int Update(string OrderStatus, System.DateTime OrderDeliveryDate, string OrderPickupPoint, int Original_OrderID, System.DateTime Original_OrderDeliveryDate, int OrderID) {
  10187. if ((OrderStatus == null)) {
  10188. throw new global::System.ArgumentNullException("OrderStatus");
  10189. }
  10190. else {
  10191. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(OrderStatus));
  10192. }
  10193. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(OrderDeliveryDate));
  10194. if ((OrderPickupPoint == null)) {
  10195. throw new global::System.ArgumentNullException("OrderPickupPoint");
  10196. }
  10197. else {
  10198. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(OrderPickupPoint));
  10199. }
  10200. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_OrderID));
  10201. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(Original_OrderDeliveryDate));
  10202. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(OrderID));
  10203. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10204. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10205. != global::System.Data.ConnectionState.Open)) {
  10206. this.Adapter.UpdateCommand.Connection.Open();
  10207. }
  10208. try {
  10209. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10210. return returnValue;
  10211. }
  10212. finally {
  10213. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10214. this.Adapter.UpdateCommand.Connection.Close();
  10215. }
  10216. }
  10217. }
  10218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10220. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10221. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10222. public virtual int Update(string OrderStatus, System.DateTime OrderDeliveryDate, string OrderPickupPoint, int Original_OrderID, System.DateTime Original_OrderDeliveryDate) {
  10223. return this.Update(OrderStatus, OrderDeliveryDate, OrderPickupPoint, Original_OrderID, Original_OrderDeliveryDate, Original_OrderID);
  10224. }
  10225. }
  10226. /// <summary>
  10227. ///Represents the connection and commands used to retrieve and save data.
  10228. ///</summary>
  10229. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10230. [global::System.ComponentModel.ToolboxItem(true)]
  10231. [global::System.ComponentModel.DataObjectAttribute(true)]
  10232. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10233. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10234. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10235. public partial class OrderProductTableAdapter : global::System.ComponentModel.Component {
  10236. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10237. private global::System.Data.SqlClient.SqlConnection _connection;
  10238. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10239. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10240. private bool _clearBeforeFill;
  10241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10243. public OrderProductTableAdapter() {
  10244. this.ClearBeforeFill = true;
  10245. }
  10246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10248. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10249. get {
  10250. if ((this._adapter == null)) {
  10251. this.InitAdapter();
  10252. }
  10253. return this._adapter;
  10254. }
  10255. }
  10256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10258. internal global::System.Data.SqlClient.SqlConnection Connection {
  10259. get {
  10260. if ((this._connection == null)) {
  10261. this.InitConnection();
  10262. }
  10263. return this._connection;
  10264. }
  10265. set {
  10266. this._connection = value;
  10267. if ((this.Adapter.InsertCommand != null)) {
  10268. this.Adapter.InsertCommand.Connection = value;
  10269. }
  10270. if ((this.Adapter.DeleteCommand != null)) {
  10271. this.Adapter.DeleteCommand.Connection = value;
  10272. }
  10273. if ((this.Adapter.UpdateCommand != null)) {
  10274. this.Adapter.UpdateCommand.Connection = value;
  10275. }
  10276. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10277. if ((this.CommandCollection[i] != null)) {
  10278. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10279. }
  10280. }
  10281. }
  10282. }
  10283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10285. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10286. get {
  10287. return this._transaction;
  10288. }
  10289. set {
  10290. this._transaction = value;
  10291. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10292. this.CommandCollection[i].Transaction = this._transaction;
  10293. }
  10294. if (((this.Adapter != null)
  10295. && (this.Adapter.DeleteCommand != null))) {
  10296. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10297. }
  10298. if (((this.Adapter != null)
  10299. && (this.Adapter.InsertCommand != null))) {
  10300. this.Adapter.InsertCommand.Transaction = this._transaction;
  10301. }
  10302. if (((this.Adapter != null)
  10303. && (this.Adapter.UpdateCommand != null))) {
  10304. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10305. }
  10306. }
  10307. }
  10308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10310. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10311. get {
  10312. if ((this._commandCollection == null)) {
  10313. this.InitCommandCollection();
  10314. }
  10315. return this._commandCollection;
  10316. }
  10317. }
  10318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10320. public bool ClearBeforeFill {
  10321. get {
  10322. return this._clearBeforeFill;
  10323. }
  10324. set {
  10325. this._clearBeforeFill = value;
  10326. }
  10327. }
  10328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10330. private void InitAdapter() {
  10331. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10332. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10333. tableMapping.SourceTable = "Table";
  10334. tableMapping.DataSetTable = "OrderProduct";
  10335. tableMapping.ColumnMappings.Add("OrderID", "OrderID");
  10336. tableMapping.ColumnMappings.Add("ProductArticleNumber", "ProductArticleNumber");
  10337. this._adapter.TableMappings.Add(tableMapping);
  10338. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10339. this._adapter.DeleteCommand.Connection = this.Connection;
  10340. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[OrderProduct] WHERE (([OrderID] = @Original_OrderID) AND ([Pro" +
  10341. "ductArticleNumber] = @Original_ProductArticleNumber))";
  10342. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10343. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10344. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10345. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10346. this._adapter.InsertCommand.Connection = this.Connection;
  10347. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[OrderProduct] ([OrderID], [ProductArticleNumber]) VALUES (@Ord" +
  10348. "erID, @ProductArticleNumber);\r\nSELECT OrderID, ProductArticleNumber FROM OrderPr" +
  10349. "oduct WHERE (OrderID = @OrderID) AND (ProductArticleNumber = @ProductArticleNumb" +
  10350. "er)";
  10351. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10352. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10353. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10354. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10355. this._adapter.UpdateCommand.Connection = this.Connection;
  10356. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[OrderProduct] SET [OrderID] = @OrderID, [ProductArticleNumber] = @ProductArticleNumber WHERE (([OrderID] = @Original_OrderID) AND ([ProductArticleNumber] = @Original_ProductArticleNumber));
  10357. SELECT OrderID, ProductArticleNumber FROM OrderProduct WHERE (OrderID = @OrderID) AND (ProductArticleNumber = @ProductArticleNumber)";
  10358. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10359. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10360. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10361. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_OrderID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "OrderID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10362. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10363. }
  10364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10366. private void InitConnection() {
  10367. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10368. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  10369. }
  10370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10372. private void InitCommandCollection() {
  10373. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10374. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10375. this._commandCollection[0].Connection = this.Connection;
  10376. this._commandCollection[0].CommandText = "SELECT OrderID, ProductArticleNumber FROM dbo.OrderProduct";
  10377. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10378. }
  10379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10381. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10382. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10383. public virtual int Fill(DataSet1.OrderProductDataTable dataTable) {
  10384. this.Adapter.SelectCommand = this.CommandCollection[0];
  10385. if ((this.ClearBeforeFill == true)) {
  10386. dataTable.Clear();
  10387. }
  10388. int returnValue = this.Adapter.Fill(dataTable);
  10389. return returnValue;
  10390. }
  10391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10393. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10394. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10395. public virtual DataSet1.OrderProductDataTable GetData() {
  10396. this.Adapter.SelectCommand = this.CommandCollection[0];
  10397. DataSet1.OrderProductDataTable dataTable = new DataSet1.OrderProductDataTable();
  10398. this.Adapter.Fill(dataTable);
  10399. return dataTable;
  10400. }
  10401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10403. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10404. public virtual int Update(DataSet1.OrderProductDataTable dataTable) {
  10405. return this.Adapter.Update(dataTable);
  10406. }
  10407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10409. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10410. public virtual int Update(DataSet1 dataSet) {
  10411. return this.Adapter.Update(dataSet, "OrderProduct");
  10412. }
  10413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10415. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10416. public virtual int Update(global::System.Data.DataRow dataRow) {
  10417. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10418. dataRow});
  10419. }
  10420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10422. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10423. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10424. return this.Adapter.Update(dataRows);
  10425. }
  10426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10428. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10429. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10430. public virtual int Delete(int Original_OrderID, string Original_ProductArticleNumber) {
  10431. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_OrderID));
  10432. if ((Original_ProductArticleNumber == null)) {
  10433. throw new global::System.ArgumentNullException("Original_ProductArticleNumber");
  10434. }
  10435. else {
  10436. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_ProductArticleNumber));
  10437. }
  10438. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10439. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10440. != global::System.Data.ConnectionState.Open)) {
  10441. this.Adapter.DeleteCommand.Connection.Open();
  10442. }
  10443. try {
  10444. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10445. return returnValue;
  10446. }
  10447. finally {
  10448. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10449. this.Adapter.DeleteCommand.Connection.Close();
  10450. }
  10451. }
  10452. }
  10453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10455. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10456. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10457. public virtual int Insert(int OrderID, string ProductArticleNumber) {
  10458. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(OrderID));
  10459. if ((ProductArticleNumber == null)) {
  10460. throw new global::System.ArgumentNullException("ProductArticleNumber");
  10461. }
  10462. else {
  10463. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ProductArticleNumber));
  10464. }
  10465. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10466. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10467. != global::System.Data.ConnectionState.Open)) {
  10468. this.Adapter.InsertCommand.Connection.Open();
  10469. }
  10470. try {
  10471. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10472. return returnValue;
  10473. }
  10474. finally {
  10475. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10476. this.Adapter.InsertCommand.Connection.Close();
  10477. }
  10478. }
  10479. }
  10480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10482. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10483. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10484. public virtual int Update(int OrderID, string ProductArticleNumber, int Original_OrderID, string Original_ProductArticleNumber) {
  10485. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(OrderID));
  10486. if ((ProductArticleNumber == null)) {
  10487. throw new global::System.ArgumentNullException("ProductArticleNumber");
  10488. }
  10489. else {
  10490. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ProductArticleNumber));
  10491. }
  10492. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_OrderID));
  10493. if ((Original_ProductArticleNumber == null)) {
  10494. throw new global::System.ArgumentNullException("Original_ProductArticleNumber");
  10495. }
  10496. else {
  10497. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_ProductArticleNumber));
  10498. }
  10499. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10500. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10501. != global::System.Data.ConnectionState.Open)) {
  10502. this.Adapter.UpdateCommand.Connection.Open();
  10503. }
  10504. try {
  10505. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10506. return returnValue;
  10507. }
  10508. finally {
  10509. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10510. this.Adapter.UpdateCommand.Connection.Close();
  10511. }
  10512. }
  10513. }
  10514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10516. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10517. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10518. public virtual int Update(int Original_OrderID, string Original_ProductArticleNumber) {
  10519. return this.Update(Original_OrderID, Original_ProductArticleNumber, Original_OrderID, Original_ProductArticleNumber);
  10520. }
  10521. }
  10522. /// <summary>
  10523. ///Represents the connection and commands used to retrieve and save data.
  10524. ///</summary>
  10525. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10526. [global::System.ComponentModel.ToolboxItem(true)]
  10527. [global::System.ComponentModel.DataObjectAttribute(true)]
  10528. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10529. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10530. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10531. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  10532. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10533. private global::System.Data.SqlClient.SqlConnection _connection;
  10534. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10535. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10536. private bool _clearBeforeFill;
  10537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10539. public ProductTableAdapter() {
  10540. this.ClearBeforeFill = true;
  10541. }
  10542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10544. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10545. get {
  10546. if ((this._adapter == null)) {
  10547. this.InitAdapter();
  10548. }
  10549. return this._adapter;
  10550. }
  10551. }
  10552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10554. internal global::System.Data.SqlClient.SqlConnection Connection {
  10555. get {
  10556. if ((this._connection == null)) {
  10557. this.InitConnection();
  10558. }
  10559. return this._connection;
  10560. }
  10561. set {
  10562. this._connection = value;
  10563. if ((this.Adapter.InsertCommand != null)) {
  10564. this.Adapter.InsertCommand.Connection = value;
  10565. }
  10566. if ((this.Adapter.DeleteCommand != null)) {
  10567. this.Adapter.DeleteCommand.Connection = value;
  10568. }
  10569. if ((this.Adapter.UpdateCommand != null)) {
  10570. this.Adapter.UpdateCommand.Connection = value;
  10571. }
  10572. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10573. if ((this.CommandCollection[i] != null)) {
  10574. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10575. }
  10576. }
  10577. }
  10578. }
  10579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10581. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10582. get {
  10583. return this._transaction;
  10584. }
  10585. set {
  10586. this._transaction = value;
  10587. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10588. this.CommandCollection[i].Transaction = this._transaction;
  10589. }
  10590. if (((this.Adapter != null)
  10591. && (this.Adapter.DeleteCommand != null))) {
  10592. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10593. }
  10594. if (((this.Adapter != null)
  10595. && (this.Adapter.InsertCommand != null))) {
  10596. this.Adapter.InsertCommand.Transaction = this._transaction;
  10597. }
  10598. if (((this.Adapter != null)
  10599. && (this.Adapter.UpdateCommand != null))) {
  10600. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10601. }
  10602. }
  10603. }
  10604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10606. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10607. get {
  10608. if ((this._commandCollection == null)) {
  10609. this.InitCommandCollection();
  10610. }
  10611. return this._commandCollection;
  10612. }
  10613. }
  10614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10616. public bool ClearBeforeFill {
  10617. get {
  10618. return this._clearBeforeFill;
  10619. }
  10620. set {
  10621. this._clearBeforeFill = value;
  10622. }
  10623. }
  10624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10626. private void InitAdapter() {
  10627. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10628. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10629. tableMapping.SourceTable = "Table";
  10630. tableMapping.DataSetTable = "Product";
  10631. tableMapping.ColumnMappings.Add("ProductArticleNumber", "ProductArticleNumber");
  10632. tableMapping.ColumnMappings.Add("ProductName", "ProductName");
  10633. tableMapping.ColumnMappings.Add("ProductDescription", "ProductDescription");
  10634. tableMapping.ColumnMappings.Add("ProductCategory", "ProductCategory");
  10635. tableMapping.ColumnMappings.Add("ProductPhoto", "ProductPhoto");
  10636. tableMapping.ColumnMappings.Add("ProductManufacturer", "ProductManufacturer");
  10637. tableMapping.ColumnMappings.Add("ProductCost", "ProductCost");
  10638. tableMapping.ColumnMappings.Add("ProductDiscountAmount", "ProductDiscountAmount");
  10639. tableMapping.ColumnMappings.Add("ProductQuantityInStock", "ProductQuantityInStock");
  10640. tableMapping.ColumnMappings.Add("ProductStatus", "ProductStatus");
  10641. this._adapter.TableMappings.Add(tableMapping);
  10642. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10643. this._adapter.DeleteCommand.Connection = this.Connection;
  10644. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Product] WHERE (([ProductArticleNumber] = @Original_ProductArticleNumber) AND ([ProductCost] = @Original_ProductCost) AND ((@IsNull_ProductDiscountAmount = 1 AND [ProductDiscountAmount] IS NULL) OR ([ProductDiscountAmount] = @Original_ProductDiscountAmount)) AND ([ProductQuantityInStock] = @Original_ProductQuantityInStock))";
  10645. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10646. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10647. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 19, 4, "ProductCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10648. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductDiscountAmount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10649. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductDiscountAmount", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10650. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductQuantityInStock", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductQuantityInStock", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10651. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10652. this._adapter.InsertCommand.Connection = this.Connection;
  10653. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([ProductArticleNumber], [ProductName], [ProductDescription], [ProductCategory], [ProductPhoto], [ProductManufacturer], [ProductCost], [ProductDiscountAmount], [ProductQuantityInStock], [ProductStatus]) VALUES (@ProductArticleNumber, @ProductName, @ProductDescription, @ProductCategory, @ProductPhoto, @ProductManufacturer, @ProductCost, @ProductDiscountAmount, @ProductQuantityInStock, @ProductStatus);
  10654. SELECT ProductArticleNumber, ProductName, ProductDescription, ProductCategory, ProductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductQuantityInStock, ProductStatus FROM Product WHERE (ProductArticleNumber = @ProductArticleNumber)";
  10655. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10656. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10657. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10658. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductDescription", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDescription", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10659. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductCategory", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductCategory", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10660. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductPhoto", global::System.Data.SqlDbType.Image, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductPhoto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10661. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductManufacturer", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductManufacturer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10662. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 19, 4, "ProductCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10663. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductDiscountAmount", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10664. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductQuantityInStock", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductQuantityInStock", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10665. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductStatus", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10666. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10667. this._adapter.UpdateCommand.Connection = this.Connection;
  10668. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Product] SET [ProductArticleNumber] = @ProductArticleNumber, [ProductName] = @ProductName, [ProductDescription] = @ProductDescription, [ProductCategory] = @ProductCategory, [ProductPhoto] = @ProductPhoto, [ProductManufacturer] = @ProductManufacturer, [ProductCost] = @ProductCost, [ProductDiscountAmount] = @ProductDiscountAmount, [ProductQuantityInStock] = @ProductQuantityInStock, [ProductStatus] = @ProductStatus WHERE (([ProductArticleNumber] = @Original_ProductArticleNumber) AND ([ProductCost] = @Original_ProductCost) AND ((@IsNull_ProductDiscountAmount = 1 AND [ProductDiscountAmount] IS NULL) OR ([ProductDiscountAmount] = @Original_ProductDiscountAmount)) AND ([ProductQuantityInStock] = @Original_ProductQuantityInStock));
  10669. SELECT ProductArticleNumber, ProductName, ProductDescription, ProductCategory, ProductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductQuantityInStock, ProductStatus FROM Product WHERE (ProductArticleNumber = @ProductArticleNumber)";
  10670. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10671. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10672. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10673. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductDescription", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDescription", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10674. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductCategory", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductCategory", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10675. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductPhoto", global::System.Data.SqlDbType.Image, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductPhoto", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10676. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductManufacturer", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductManufacturer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10677. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 19, 4, "ProductCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10678. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductDiscountAmount", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10679. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductQuantityInStock", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductQuantityInStock", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10680. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductStatus", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductStatus", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10681. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductArticleNumber", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductArticleNumber", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10682. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductCost", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 19, 4, "ProductCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10683. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductDiscountAmount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10684. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductDiscountAmount", global::System.Data.SqlDbType.TinyInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductDiscountAmount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10685. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductQuantityInStock", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductQuantityInStock", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10686. }
  10687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10689. private void InitConnection() {
  10690. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10691. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  10692. }
  10693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10695. private void InitCommandCollection() {
  10696. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10697. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10698. this._commandCollection[0].Connection = this.Connection;
  10699. this._commandCollection[0].CommandText = "SELECT ProductArticleNumber, ProductName, ProductDescription, ProductCategory, Pr" +
  10700. "oductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductQuan" +
  10701. "tityInStock, ProductStatus FROM dbo.Product";
  10702. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10703. }
  10704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10706. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10707. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10708. public virtual int Fill(DataSet1.ProductDataTable dataTable) {
  10709. this.Adapter.SelectCommand = this.CommandCollection[0];
  10710. if ((this.ClearBeforeFill == true)) {
  10711. dataTable.Clear();
  10712. }
  10713. int returnValue = this.Adapter.Fill(dataTable);
  10714. return returnValue;
  10715. }
  10716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10718. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10719. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10720. public virtual DataSet1.ProductDataTable GetData() {
  10721. this.Adapter.SelectCommand = this.CommandCollection[0];
  10722. DataSet1.ProductDataTable dataTable = new DataSet1.ProductDataTable();
  10723. this.Adapter.Fill(dataTable);
  10724. return dataTable;
  10725. }
  10726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10728. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10729. public virtual int Update(DataSet1.ProductDataTable dataTable) {
  10730. return this.Adapter.Update(dataTable);
  10731. }
  10732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10734. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10735. public virtual int Update(DataSet1 dataSet) {
  10736. return this.Adapter.Update(dataSet, "Product");
  10737. }
  10738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10740. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10741. public virtual int Update(global::System.Data.DataRow dataRow) {
  10742. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10743. dataRow});
  10744. }
  10745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10747. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10748. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10749. return this.Adapter.Update(dataRows);
  10750. }
  10751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10753. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10754. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10755. public virtual int Delete(string Original_ProductArticleNumber, decimal Original_ProductCost, global::System.Nullable<byte> Original_ProductDiscountAmount, int Original_ProductQuantityInStock) {
  10756. if ((Original_ProductArticleNumber == null)) {
  10757. throw new global::System.ArgumentNullException("Original_ProductArticleNumber");
  10758. }
  10759. else {
  10760. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_ProductArticleNumber));
  10761. }
  10762. this.Adapter.DeleteCommand.Parameters[1].Value = ((decimal)(Original_ProductCost));
  10763. if ((Original_ProductDiscountAmount.HasValue == true)) {
  10764. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  10765. this.Adapter.DeleteCommand.Parameters[3].Value = ((byte)(Original_ProductDiscountAmount.Value));
  10766. }
  10767. else {
  10768. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  10769. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  10770. }
  10771. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_ProductQuantityInStock));
  10772. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10773. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10774. != global::System.Data.ConnectionState.Open)) {
  10775. this.Adapter.DeleteCommand.Connection.Open();
  10776. }
  10777. try {
  10778. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10779. return returnValue;
  10780. }
  10781. finally {
  10782. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10783. this.Adapter.DeleteCommand.Connection.Close();
  10784. }
  10785. }
  10786. }
  10787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10789. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10790. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10791. public virtual int Insert(string ProductArticleNumber, string ProductName, string ProductDescription, string ProductCategory, byte[] ProductPhoto, string ProductManufacturer, decimal ProductCost, global::System.Nullable<byte> ProductDiscountAmount, int ProductQuantityInStock, string ProductStatus) {
  10792. if ((ProductArticleNumber == null)) {
  10793. throw new global::System.ArgumentNullException("ProductArticleNumber");
  10794. }
  10795. else {
  10796. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ProductArticleNumber));
  10797. }
  10798. if ((ProductName == null)) {
  10799. throw new global::System.ArgumentNullException("ProductName");
  10800. }
  10801. else {
  10802. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ProductName));
  10803. }
  10804. if ((ProductDescription == null)) {
  10805. throw new global::System.ArgumentNullException("ProductDescription");
  10806. }
  10807. else {
  10808. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(ProductDescription));
  10809. }
  10810. if ((ProductCategory == null)) {
  10811. throw new global::System.ArgumentNullException("ProductCategory");
  10812. }
  10813. else {
  10814. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(ProductCategory));
  10815. }
  10816. if ((ProductPhoto == null)) {
  10817. throw new global::System.ArgumentNullException("ProductPhoto");
  10818. }
  10819. else {
  10820. this.Adapter.InsertCommand.Parameters[4].Value = ((byte[])(ProductPhoto));
  10821. }
  10822. if ((ProductManufacturer == null)) {
  10823. throw new global::System.ArgumentNullException("ProductManufacturer");
  10824. }
  10825. else {
  10826. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(ProductManufacturer));
  10827. }
  10828. this.Adapter.InsertCommand.Parameters[6].Value = ((decimal)(ProductCost));
  10829. if ((ProductDiscountAmount.HasValue == true)) {
  10830. this.Adapter.InsertCommand.Parameters[7].Value = ((byte)(ProductDiscountAmount.Value));
  10831. }
  10832. else {
  10833. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  10834. }
  10835. this.Adapter.InsertCommand.Parameters[8].Value = ((int)(ProductQuantityInStock));
  10836. if ((ProductStatus == null)) {
  10837. throw new global::System.ArgumentNullException("ProductStatus");
  10838. }
  10839. else {
  10840. this.Adapter.InsertCommand.Parameters[9].Value = ((string)(ProductStatus));
  10841. }
  10842. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10843. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10844. != global::System.Data.ConnectionState.Open)) {
  10845. this.Adapter.InsertCommand.Connection.Open();
  10846. }
  10847. try {
  10848. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10849. return returnValue;
  10850. }
  10851. finally {
  10852. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10853. this.Adapter.InsertCommand.Connection.Close();
  10854. }
  10855. }
  10856. }
  10857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10859. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10860. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10861. public virtual int Update(string ProductArticleNumber, string ProductName, string ProductDescription, string ProductCategory, byte[] ProductPhoto, string ProductManufacturer, decimal ProductCost, global::System.Nullable<byte> ProductDiscountAmount, int ProductQuantityInStock, string ProductStatus, string Original_ProductArticleNumber, decimal Original_ProductCost, global::System.Nullable<byte> Original_ProductDiscountAmount, int Original_ProductQuantityInStock) {
  10862. if ((ProductArticleNumber == null)) {
  10863. throw new global::System.ArgumentNullException("ProductArticleNumber");
  10864. }
  10865. else {
  10866. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ProductArticleNumber));
  10867. }
  10868. if ((ProductName == null)) {
  10869. throw new global::System.ArgumentNullException("ProductName");
  10870. }
  10871. else {
  10872. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ProductName));
  10873. }
  10874. if ((ProductDescription == null)) {
  10875. throw new global::System.ArgumentNullException("ProductDescription");
  10876. }
  10877. else {
  10878. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(ProductDescription));
  10879. }
  10880. if ((ProductCategory == null)) {
  10881. throw new global::System.ArgumentNullException("ProductCategory");
  10882. }
  10883. else {
  10884. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(ProductCategory));
  10885. }
  10886. if ((ProductPhoto == null)) {
  10887. throw new global::System.ArgumentNullException("ProductPhoto");
  10888. }
  10889. else {
  10890. this.Adapter.UpdateCommand.Parameters[4].Value = ((byte[])(ProductPhoto));
  10891. }
  10892. if ((ProductManufacturer == null)) {
  10893. throw new global::System.ArgumentNullException("ProductManufacturer");
  10894. }
  10895. else {
  10896. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(ProductManufacturer));
  10897. }
  10898. this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(ProductCost));
  10899. if ((ProductDiscountAmount.HasValue == true)) {
  10900. this.Adapter.UpdateCommand.Parameters[7].Value = ((byte)(ProductDiscountAmount.Value));
  10901. }
  10902. else {
  10903. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  10904. }
  10905. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(ProductQuantityInStock));
  10906. if ((ProductStatus == null)) {
  10907. throw new global::System.ArgumentNullException("ProductStatus");
  10908. }
  10909. else {
  10910. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(ProductStatus));
  10911. }
  10912. if ((Original_ProductArticleNumber == null)) {
  10913. throw new global::System.ArgumentNullException("Original_ProductArticleNumber");
  10914. }
  10915. else {
  10916. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_ProductArticleNumber));
  10917. }
  10918. this.Adapter.UpdateCommand.Parameters[11].Value = ((decimal)(Original_ProductCost));
  10919. if ((Original_ProductDiscountAmount.HasValue == true)) {
  10920. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  10921. this.Adapter.UpdateCommand.Parameters[13].Value = ((byte)(Original_ProductDiscountAmount.Value));
  10922. }
  10923. else {
  10924. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  10925. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  10926. }
  10927. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_ProductQuantityInStock));
  10928. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10929. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10930. != global::System.Data.ConnectionState.Open)) {
  10931. this.Adapter.UpdateCommand.Connection.Open();
  10932. }
  10933. try {
  10934. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10935. return returnValue;
  10936. }
  10937. finally {
  10938. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10939. this.Adapter.UpdateCommand.Connection.Close();
  10940. }
  10941. }
  10942. }
  10943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10945. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10946. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10947. public virtual int Update(string ProductName, string ProductDescription, string ProductCategory, byte[] ProductPhoto, string ProductManufacturer, decimal ProductCost, global::System.Nullable<byte> ProductDiscountAmount, int ProductQuantityInStock, string ProductStatus, string Original_ProductArticleNumber, decimal Original_ProductCost, global::System.Nullable<byte> Original_ProductDiscountAmount, int Original_ProductQuantityInStock) {
  10948. return this.Update(Original_ProductArticleNumber, ProductName, ProductDescription, ProductCategory, ProductPhoto, ProductManufacturer, ProductCost, ProductDiscountAmount, ProductQuantityInStock, ProductStatus, Original_ProductArticleNumber, Original_ProductCost, Original_ProductDiscountAmount, Original_ProductQuantityInStock);
  10949. }
  10950. }
  10951. /// <summary>
  10952. ///Represents the connection and commands used to retrieve and save data.
  10953. ///</summary>
  10954. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10955. [global::System.ComponentModel.ToolboxItem(true)]
  10956. [global::System.ComponentModel.DataObjectAttribute(true)]
  10957. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10958. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10959. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10960. public partial class RoleTableAdapter : global::System.ComponentModel.Component {
  10961. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10962. private global::System.Data.SqlClient.SqlConnection _connection;
  10963. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10964. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10965. private bool _clearBeforeFill;
  10966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10968. public RoleTableAdapter() {
  10969. this.ClearBeforeFill = true;
  10970. }
  10971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10973. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10974. get {
  10975. if ((this._adapter == null)) {
  10976. this.InitAdapter();
  10977. }
  10978. return this._adapter;
  10979. }
  10980. }
  10981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  10983. internal global::System.Data.SqlClient.SqlConnection Connection {
  10984. get {
  10985. if ((this._connection == null)) {
  10986. this.InitConnection();
  10987. }
  10988. return this._connection;
  10989. }
  10990. set {
  10991. this._connection = value;
  10992. if ((this.Adapter.InsertCommand != null)) {
  10993. this.Adapter.InsertCommand.Connection = value;
  10994. }
  10995. if ((this.Adapter.DeleteCommand != null)) {
  10996. this.Adapter.DeleteCommand.Connection = value;
  10997. }
  10998. if ((this.Adapter.UpdateCommand != null)) {
  10999. this.Adapter.UpdateCommand.Connection = value;
  11000. }
  11001. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11002. if ((this.CommandCollection[i] != null)) {
  11003. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11004. }
  11005. }
  11006. }
  11007. }
  11008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11010. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11011. get {
  11012. return this._transaction;
  11013. }
  11014. set {
  11015. this._transaction = value;
  11016. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11017. this.CommandCollection[i].Transaction = this._transaction;
  11018. }
  11019. if (((this.Adapter != null)
  11020. && (this.Adapter.DeleteCommand != null))) {
  11021. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11022. }
  11023. if (((this.Adapter != null)
  11024. && (this.Adapter.InsertCommand != null))) {
  11025. this.Adapter.InsertCommand.Transaction = this._transaction;
  11026. }
  11027. if (((this.Adapter != null)
  11028. && (this.Adapter.UpdateCommand != null))) {
  11029. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11030. }
  11031. }
  11032. }
  11033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11035. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11036. get {
  11037. if ((this._commandCollection == null)) {
  11038. this.InitCommandCollection();
  11039. }
  11040. return this._commandCollection;
  11041. }
  11042. }
  11043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11045. public bool ClearBeforeFill {
  11046. get {
  11047. return this._clearBeforeFill;
  11048. }
  11049. set {
  11050. this._clearBeforeFill = value;
  11051. }
  11052. }
  11053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11055. private void InitAdapter() {
  11056. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11057. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11058. tableMapping.SourceTable = "Table";
  11059. tableMapping.DataSetTable = "Role";
  11060. tableMapping.ColumnMappings.Add("RoleID", "RoleID");
  11061. tableMapping.ColumnMappings.Add("RoleName", "RoleName");
  11062. this._adapter.TableMappings.Add(tableMapping);
  11063. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11064. this._adapter.DeleteCommand.Connection = this.Connection;
  11065. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Role] WHERE (([RoleID] = @Original_RoleID) AND ([RoleName] = @" +
  11066. "Original_RoleName))";
  11067. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11068. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RoleID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11069. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RoleName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11070. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11071. this._adapter.InsertCommand.Connection = this.Connection;
  11072. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Role] ([RoleName]) VALUES (@RoleName);\r\nSELECT RoleID, RoleNam" +
  11073. "e FROM Role WHERE (RoleID = SCOPE_IDENTITY())";
  11074. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11075. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RoleName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11076. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11077. this._adapter.UpdateCommand.Connection = this.Connection;
  11078. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Role] SET [RoleName] = @RoleName WHERE (([RoleID] = @Original_RoleI" +
  11079. "D) AND ([RoleName] = @Original_RoleName));\r\nSELECT RoleID, RoleName FROM Role WH" +
  11080. "ERE (RoleID = @RoleID)";
  11081. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11082. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RoleName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11083. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RoleID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11084. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RoleName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RoleName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11085. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RoleID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "RoleID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11086. }
  11087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11089. private void InitConnection() {
  11090. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11091. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  11092. }
  11093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11095. private void InitCommandCollection() {
  11096. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11097. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11098. this._commandCollection[0].Connection = this.Connection;
  11099. this._commandCollection[0].CommandText = "SELECT RoleID, RoleName FROM dbo.Role";
  11100. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11101. }
  11102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11104. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11105. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11106. public virtual int Fill(DataSet1.RoleDataTable dataTable) {
  11107. this.Adapter.SelectCommand = this.CommandCollection[0];
  11108. if ((this.ClearBeforeFill == true)) {
  11109. dataTable.Clear();
  11110. }
  11111. int returnValue = this.Adapter.Fill(dataTable);
  11112. return returnValue;
  11113. }
  11114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11116. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11117. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11118. public virtual DataSet1.RoleDataTable GetData() {
  11119. this.Adapter.SelectCommand = this.CommandCollection[0];
  11120. DataSet1.RoleDataTable dataTable = new DataSet1.RoleDataTable();
  11121. this.Adapter.Fill(dataTable);
  11122. return dataTable;
  11123. }
  11124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11126. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11127. public virtual int Update(DataSet1.RoleDataTable dataTable) {
  11128. return this.Adapter.Update(dataTable);
  11129. }
  11130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11132. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11133. public virtual int Update(DataSet1 dataSet) {
  11134. return this.Adapter.Update(dataSet, "Role");
  11135. }
  11136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11138. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11139. public virtual int Update(global::System.Data.DataRow dataRow) {
  11140. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11141. dataRow});
  11142. }
  11143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11145. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11146. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11147. return this.Adapter.Update(dataRows);
  11148. }
  11149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11151. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11152. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11153. public virtual int Delete(int Original_RoleID, string Original_RoleName) {
  11154. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_RoleID));
  11155. if ((Original_RoleName == null)) {
  11156. throw new global::System.ArgumentNullException("Original_RoleName");
  11157. }
  11158. else {
  11159. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_RoleName));
  11160. }
  11161. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11162. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11163. != global::System.Data.ConnectionState.Open)) {
  11164. this.Adapter.DeleteCommand.Connection.Open();
  11165. }
  11166. try {
  11167. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11168. return returnValue;
  11169. }
  11170. finally {
  11171. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11172. this.Adapter.DeleteCommand.Connection.Close();
  11173. }
  11174. }
  11175. }
  11176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11178. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11179. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11180. public virtual int Insert(string RoleName) {
  11181. if ((RoleName == null)) {
  11182. throw new global::System.ArgumentNullException("RoleName");
  11183. }
  11184. else {
  11185. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(RoleName));
  11186. }
  11187. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11188. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11189. != global::System.Data.ConnectionState.Open)) {
  11190. this.Adapter.InsertCommand.Connection.Open();
  11191. }
  11192. try {
  11193. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11194. return returnValue;
  11195. }
  11196. finally {
  11197. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11198. this.Adapter.InsertCommand.Connection.Close();
  11199. }
  11200. }
  11201. }
  11202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11204. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11205. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11206. public virtual int Update(string RoleName, int Original_RoleID, string Original_RoleName, int RoleID) {
  11207. if ((RoleName == null)) {
  11208. throw new global::System.ArgumentNullException("RoleName");
  11209. }
  11210. else {
  11211. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(RoleName));
  11212. }
  11213. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_RoleID));
  11214. if ((Original_RoleName == null)) {
  11215. throw new global::System.ArgumentNullException("Original_RoleName");
  11216. }
  11217. else {
  11218. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_RoleName));
  11219. }
  11220. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(RoleID));
  11221. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11222. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11223. != global::System.Data.ConnectionState.Open)) {
  11224. this.Adapter.UpdateCommand.Connection.Open();
  11225. }
  11226. try {
  11227. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11228. return returnValue;
  11229. }
  11230. finally {
  11231. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11232. this.Adapter.UpdateCommand.Connection.Close();
  11233. }
  11234. }
  11235. }
  11236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11238. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11239. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11240. public virtual int Update(string RoleName, int Original_RoleID, string Original_RoleName) {
  11241. return this.Update(RoleName, Original_RoleID, Original_RoleName, Original_RoleID);
  11242. }
  11243. }
  11244. /// <summary>
  11245. ///Represents the connection and commands used to retrieve and save data.
  11246. ///</summary>
  11247. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11248. [global::System.ComponentModel.ToolboxItem(true)]
  11249. [global::System.ComponentModel.DataObjectAttribute(true)]
  11250. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11251. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11252. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11253. public partial class tbl_categoriesTableAdapter : global::System.ComponentModel.Component {
  11254. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11255. private global::System.Data.SqlClient.SqlConnection _connection;
  11256. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11257. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11258. private bool _clearBeforeFill;
  11259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11261. public tbl_categoriesTableAdapter() {
  11262. this.ClearBeforeFill = true;
  11263. }
  11264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11266. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11267. get {
  11268. if ((this._adapter == null)) {
  11269. this.InitAdapter();
  11270. }
  11271. return this._adapter;
  11272. }
  11273. }
  11274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11276. internal global::System.Data.SqlClient.SqlConnection Connection {
  11277. get {
  11278. if ((this._connection == null)) {
  11279. this.InitConnection();
  11280. }
  11281. return this._connection;
  11282. }
  11283. set {
  11284. this._connection = value;
  11285. if ((this.Adapter.InsertCommand != null)) {
  11286. this.Adapter.InsertCommand.Connection = value;
  11287. }
  11288. if ((this.Adapter.DeleteCommand != null)) {
  11289. this.Adapter.DeleteCommand.Connection = value;
  11290. }
  11291. if ((this.Adapter.UpdateCommand != null)) {
  11292. this.Adapter.UpdateCommand.Connection = value;
  11293. }
  11294. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11295. if ((this.CommandCollection[i] != null)) {
  11296. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11297. }
  11298. }
  11299. }
  11300. }
  11301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11303. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11304. get {
  11305. return this._transaction;
  11306. }
  11307. set {
  11308. this._transaction = value;
  11309. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11310. this.CommandCollection[i].Transaction = this._transaction;
  11311. }
  11312. if (((this.Adapter != null)
  11313. && (this.Adapter.DeleteCommand != null))) {
  11314. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11315. }
  11316. if (((this.Adapter != null)
  11317. && (this.Adapter.InsertCommand != null))) {
  11318. this.Adapter.InsertCommand.Transaction = this._transaction;
  11319. }
  11320. if (((this.Adapter != null)
  11321. && (this.Adapter.UpdateCommand != null))) {
  11322. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11323. }
  11324. }
  11325. }
  11326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11328. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11329. get {
  11330. if ((this._commandCollection == null)) {
  11331. this.InitCommandCollection();
  11332. }
  11333. return this._commandCollection;
  11334. }
  11335. }
  11336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11338. public bool ClearBeforeFill {
  11339. get {
  11340. return this._clearBeforeFill;
  11341. }
  11342. set {
  11343. this._clearBeforeFill = value;
  11344. }
  11345. }
  11346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11348. private void InitAdapter() {
  11349. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11350. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11351. tableMapping.SourceTable = "Table";
  11352. tableMapping.DataSetTable = "tbl_categories";
  11353. tableMapping.ColumnMappings.Add("id", "id");
  11354. tableMapping.ColumnMappings.Add("title", "title");
  11355. tableMapping.ColumnMappings.Add("description", "description");
  11356. tableMapping.ColumnMappings.Add("added_date", "added_date");
  11357. tableMapping.ColumnMappings.Add("added_by", "added_by");
  11358. this._adapter.TableMappings.Add(tableMapping);
  11359. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11360. this._adapter.DeleteCommand.Connection = this.Connection;
  11361. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[tbl_categories] WHERE (([id] = @Original_id) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_added_date = 1 AND [added_date] IS NULL) OR ([added_date] = @Original_added_date)) AND ((@IsNull_added_by = 1 AND [added_by] IS NULL) OR ([added_by] = @Original_added_by)))";
  11362. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11363. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11364. 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, "", "", ""));
  11365. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11366. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_date", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11367. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11368. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11369. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11370. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11371. this._adapter.InsertCommand.Connection = this.Connection;
  11372. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[tbl_categories] ([title], [description], [added_date], [added_" +
  11373. "by]) VALUES (@title, @description, @added_date, @added_by);\r\nSELECT id, title, d" +
  11374. "escription, added_date, added_by FROM tbl_categories WHERE (id = SCOPE_IDENTITY(" +
  11375. "))";
  11376. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11377. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11378. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description", global::System.Data.SqlDbType.Text, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11379. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11380. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11381. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11382. this._adapter.UpdateCommand.Connection = this.Connection;
  11383. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[tbl_categories] SET [title] = @title, [description] = @description, [added_date] = @added_date, [added_by] = @added_by WHERE (([id] = @Original_id) AND ((@IsNull_title = 1 AND [title] IS NULL) OR ([title] = @Original_title)) AND ((@IsNull_added_date = 1 AND [added_date] IS NULL) OR ([added_date] = @Original_added_date)) AND ((@IsNull_added_by = 1 AND [added_by] IS NULL) OR ([added_by] = @Original_added_by)));
  11384. SELECT id, title, description, added_date, added_by FROM tbl_categories WHERE (id = @id)";
  11385. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11386. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11387. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description", global::System.Data.SqlDbType.Text, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11388. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11389. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11390. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11391. 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, "", "", ""));
  11392. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_title", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "title", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11393. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_date", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11394. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11395. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11396. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11397. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11398. }
  11399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11401. private void InitConnection() {
  11402. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11403. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  11404. }
  11405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11407. private void InitCommandCollection() {
  11408. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11409. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11410. this._commandCollection[0].Connection = this.Connection;
  11411. this._commandCollection[0].CommandText = "SELECT id, title, description, added_date, added_by FROM dbo.tbl_categories";
  11412. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11413. }
  11414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11416. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11417. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11418. public virtual int Fill(DataSet1.tbl_categoriesDataTable dataTable) {
  11419. this.Adapter.SelectCommand = this.CommandCollection[0];
  11420. if ((this.ClearBeforeFill == true)) {
  11421. dataTable.Clear();
  11422. }
  11423. int returnValue = this.Adapter.Fill(dataTable);
  11424. return returnValue;
  11425. }
  11426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11428. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11429. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11430. public virtual DataSet1.tbl_categoriesDataTable GetData() {
  11431. this.Adapter.SelectCommand = this.CommandCollection[0];
  11432. DataSet1.tbl_categoriesDataTable dataTable = new DataSet1.tbl_categoriesDataTable();
  11433. this.Adapter.Fill(dataTable);
  11434. return dataTable;
  11435. }
  11436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11438. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11439. public virtual int Update(DataSet1.tbl_categoriesDataTable dataTable) {
  11440. return this.Adapter.Update(dataTable);
  11441. }
  11442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11444. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11445. public virtual int Update(DataSet1 dataSet) {
  11446. return this.Adapter.Update(dataSet, "tbl_categories");
  11447. }
  11448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11450. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11451. public virtual int Update(global::System.Data.DataRow dataRow) {
  11452. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11453. dataRow});
  11454. }
  11455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11457. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11458. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11459. return this.Adapter.Update(dataRows);
  11460. }
  11461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11463. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11464. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11465. public virtual int Delete(int Original_id, string Original_title, global::System.Nullable<global::System.DateTime> Original_added_date, global::System.Nullable<int> Original_added_by) {
  11466. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  11467. if ((Original_title == null)) {
  11468. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  11469. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  11470. }
  11471. else {
  11472. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  11473. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_title));
  11474. }
  11475. if ((Original_added_date.HasValue == true)) {
  11476. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  11477. this.Adapter.DeleteCommand.Parameters[4].Value = ((System.DateTime)(Original_added_date.Value));
  11478. }
  11479. else {
  11480. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  11481. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  11482. }
  11483. if ((Original_added_by.HasValue == true)) {
  11484. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  11485. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_added_by.Value));
  11486. }
  11487. else {
  11488. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  11489. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  11490. }
  11491. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11492. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11493. != global::System.Data.ConnectionState.Open)) {
  11494. this.Adapter.DeleteCommand.Connection.Open();
  11495. }
  11496. try {
  11497. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11498. return returnValue;
  11499. }
  11500. finally {
  11501. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11502. this.Adapter.DeleteCommand.Connection.Close();
  11503. }
  11504. }
  11505. }
  11506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11508. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11509. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11510. public virtual int Insert(string title, string description, global::System.Nullable<global::System.DateTime> added_date, global::System.Nullable<int> added_by) {
  11511. if ((title == null)) {
  11512. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  11513. }
  11514. else {
  11515. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(title));
  11516. }
  11517. if ((description == null)) {
  11518. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  11519. }
  11520. else {
  11521. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(description));
  11522. }
  11523. if ((added_date.HasValue == true)) {
  11524. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(added_date.Value));
  11525. }
  11526. else {
  11527. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  11528. }
  11529. if ((added_by.HasValue == true)) {
  11530. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(added_by.Value));
  11531. }
  11532. else {
  11533. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  11534. }
  11535. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11536. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11537. != global::System.Data.ConnectionState.Open)) {
  11538. this.Adapter.InsertCommand.Connection.Open();
  11539. }
  11540. try {
  11541. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11542. return returnValue;
  11543. }
  11544. finally {
  11545. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11546. this.Adapter.InsertCommand.Connection.Close();
  11547. }
  11548. }
  11549. }
  11550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11552. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11553. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11554. public virtual int Update(string title, string description, global::System.Nullable<global::System.DateTime> added_date, global::System.Nullable<int> added_by, int Original_id, string Original_title, global::System.Nullable<global::System.DateTime> Original_added_date, global::System.Nullable<int> Original_added_by, int id) {
  11555. if ((title == null)) {
  11556. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  11557. }
  11558. else {
  11559. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(title));
  11560. }
  11561. if ((description == null)) {
  11562. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  11563. }
  11564. else {
  11565. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(description));
  11566. }
  11567. if ((added_date.HasValue == true)) {
  11568. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(added_date.Value));
  11569. }
  11570. else {
  11571. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  11572. }
  11573. if ((added_by.HasValue == true)) {
  11574. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(added_by.Value));
  11575. }
  11576. else {
  11577. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  11578. }
  11579. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_id));
  11580. if ((Original_title == null)) {
  11581. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  11582. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  11583. }
  11584. else {
  11585. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  11586. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_title));
  11587. }
  11588. if ((Original_added_date.HasValue == true)) {
  11589. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  11590. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_added_date.Value));
  11591. }
  11592. else {
  11593. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  11594. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  11595. }
  11596. if ((Original_added_by.HasValue == true)) {
  11597. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  11598. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_added_by.Value));
  11599. }
  11600. else {
  11601. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  11602. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  11603. }
  11604. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(id));
  11605. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  11606. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11607. != global::System.Data.ConnectionState.Open)) {
  11608. this.Adapter.UpdateCommand.Connection.Open();
  11609. }
  11610. try {
  11611. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  11612. return returnValue;
  11613. }
  11614. finally {
  11615. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11616. this.Adapter.UpdateCommand.Connection.Close();
  11617. }
  11618. }
  11619. }
  11620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11622. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11623. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  11624. public virtual int Update(string title, string description, global::System.Nullable<global::System.DateTime> added_date, global::System.Nullable<int> added_by, int Original_id, string Original_title, global::System.Nullable<global::System.DateTime> Original_added_date, global::System.Nullable<int> Original_added_by) {
  11625. return this.Update(title, description, added_date, added_by, Original_id, Original_title, Original_added_date, Original_added_by, Original_id);
  11626. }
  11627. }
  11628. /// <summary>
  11629. ///Represents the connection and commands used to retrieve and save data.
  11630. ///</summary>
  11631. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  11632. [global::System.ComponentModel.ToolboxItem(true)]
  11633. [global::System.ComponentModel.DataObjectAttribute(true)]
  11634. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  11635. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  11636. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11637. public partial class tbl_dea_custTableAdapter : global::System.ComponentModel.Component {
  11638. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  11639. private global::System.Data.SqlClient.SqlConnection _connection;
  11640. private global::System.Data.SqlClient.SqlTransaction _transaction;
  11641. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  11642. private bool _clearBeforeFill;
  11643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11645. public tbl_dea_custTableAdapter() {
  11646. this.ClearBeforeFill = true;
  11647. }
  11648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11650. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  11651. get {
  11652. if ((this._adapter == null)) {
  11653. this.InitAdapter();
  11654. }
  11655. return this._adapter;
  11656. }
  11657. }
  11658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11660. internal global::System.Data.SqlClient.SqlConnection Connection {
  11661. get {
  11662. if ((this._connection == null)) {
  11663. this.InitConnection();
  11664. }
  11665. return this._connection;
  11666. }
  11667. set {
  11668. this._connection = value;
  11669. if ((this.Adapter.InsertCommand != null)) {
  11670. this.Adapter.InsertCommand.Connection = value;
  11671. }
  11672. if ((this.Adapter.DeleteCommand != null)) {
  11673. this.Adapter.DeleteCommand.Connection = value;
  11674. }
  11675. if ((this.Adapter.UpdateCommand != null)) {
  11676. this.Adapter.UpdateCommand.Connection = value;
  11677. }
  11678. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11679. if ((this.CommandCollection[i] != null)) {
  11680. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  11681. }
  11682. }
  11683. }
  11684. }
  11685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11687. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  11688. get {
  11689. return this._transaction;
  11690. }
  11691. set {
  11692. this._transaction = value;
  11693. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  11694. this.CommandCollection[i].Transaction = this._transaction;
  11695. }
  11696. if (((this.Adapter != null)
  11697. && (this.Adapter.DeleteCommand != null))) {
  11698. this.Adapter.DeleteCommand.Transaction = this._transaction;
  11699. }
  11700. if (((this.Adapter != null)
  11701. && (this.Adapter.InsertCommand != null))) {
  11702. this.Adapter.InsertCommand.Transaction = this._transaction;
  11703. }
  11704. if (((this.Adapter != null)
  11705. && (this.Adapter.UpdateCommand != null))) {
  11706. this.Adapter.UpdateCommand.Transaction = this._transaction;
  11707. }
  11708. }
  11709. }
  11710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11712. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  11713. get {
  11714. if ((this._commandCollection == null)) {
  11715. this.InitCommandCollection();
  11716. }
  11717. return this._commandCollection;
  11718. }
  11719. }
  11720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11722. public bool ClearBeforeFill {
  11723. get {
  11724. return this._clearBeforeFill;
  11725. }
  11726. set {
  11727. this._clearBeforeFill = value;
  11728. }
  11729. }
  11730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11732. private void InitAdapter() {
  11733. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  11734. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  11735. tableMapping.SourceTable = "Table";
  11736. tableMapping.DataSetTable = "tbl_dea_cust";
  11737. tableMapping.ColumnMappings.Add("id", "id");
  11738. tableMapping.ColumnMappings.Add("type", "type");
  11739. tableMapping.ColumnMappings.Add("name", "name");
  11740. tableMapping.ColumnMappings.Add("email", "email");
  11741. tableMapping.ColumnMappings.Add("contact", "contact");
  11742. tableMapping.ColumnMappings.Add("address", "address");
  11743. tableMapping.ColumnMappings.Add("added_date", "added_date");
  11744. tableMapping.ColumnMappings.Add("added_by", "added_by");
  11745. this._adapter.TableMappings.Add(tableMapping);
  11746. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  11747. this._adapter.DeleteCommand.Connection = this.Connection;
  11748. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[tbl_dea_cust] WHERE (([id] = @Original_id) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_contact = 1 AND [contact] IS NULL) OR ([contact] = @Original_contact)) AND ((@IsNull_added_date = 1 AND [added_date] IS NULL) OR ([added_date] = @Original_added_date)) AND ((@IsNull_added_by = 1 AND [added_by] IS NULL) OR ([added_by] = @Original_added_by)))";
  11749. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  11750. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11751. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11752. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11753. 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, "", "", ""));
  11754. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11755. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11756. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11757. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_contact", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "contact", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11758. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_contact", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "contact", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11759. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_date", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11760. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11761. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11762. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11763. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  11764. this._adapter.InsertCommand.Connection = this.Connection;
  11765. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[tbl_dea_cust] ([type], [name], [email], [contact], [address], [added_date], [added_by]) VALUES (@type, @name, @email, @contact, @address, @added_date, @added_by);
  11766. SELECT id, type, name, email, contact, address, added_date, added_by FROM tbl_dea_cust WHERE (id = SCOPE_IDENTITY())";
  11767. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  11768. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11769. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11770. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11771. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@contact", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "contact", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11772. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@address", global::System.Data.SqlDbType.Text, 0, global::System.Data.ParameterDirection.Input, 0, 0, "address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11773. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11774. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11775. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  11776. this._adapter.UpdateCommand.Connection = this.Connection;
  11777. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[tbl_dea_cust] SET [type] = @type, [name] = @name, [email] = @email, [contact] = @contact, [address] = @address, [added_date] = @added_date, [added_by] = @added_by WHERE (([id] = @Original_id) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_contact = 1 AND [contact] IS NULL) OR ([contact] = @Original_contact)) AND ((@IsNull_added_date = 1 AND [added_date] IS NULL) OR ([added_date] = @Original_added_date)) AND ((@IsNull_added_by = 1 AND [added_by] IS NULL) OR ([added_by] = @Original_added_by)));
  11778. SELECT id, type, name, email, contact, address, added_date, added_by FROM tbl_dea_cust WHERE (id = @id)";
  11779. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  11780. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11781. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11782. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11783. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@contact", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "contact", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11784. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@address", global::System.Data.SqlDbType.Text, 0, global::System.Data.ParameterDirection.Input, 0, 0, "address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11785. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11786. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11787. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11788. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11789. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11790. 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, "", "", ""));
  11791. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11792. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11793. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11794. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_contact", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "contact", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11795. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_contact", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "contact", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11796. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_date", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11797. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11798. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  11799. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  11800. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  11801. }
  11802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11804. private void InitConnection() {
  11805. this._connection = new global::System.Data.SqlClient.SqlConnection();
  11806. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  11807. }
  11808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11810. private void InitCommandCollection() {
  11811. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  11812. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  11813. this._commandCollection[0].Connection = this.Connection;
  11814. this._commandCollection[0].CommandText = "SELECT id, type, name, email, contact, address, added_date, added_by FROM dbo.tbl" +
  11815. "_dea_cust";
  11816. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  11817. }
  11818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11820. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11821. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  11822. public virtual int Fill(DataSet1.tbl_dea_custDataTable dataTable) {
  11823. this.Adapter.SelectCommand = this.CommandCollection[0];
  11824. if ((this.ClearBeforeFill == true)) {
  11825. dataTable.Clear();
  11826. }
  11827. int returnValue = this.Adapter.Fill(dataTable);
  11828. return returnValue;
  11829. }
  11830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11832. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11833. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  11834. public virtual DataSet1.tbl_dea_custDataTable GetData() {
  11835. this.Adapter.SelectCommand = this.CommandCollection[0];
  11836. DataSet1.tbl_dea_custDataTable dataTable = new DataSet1.tbl_dea_custDataTable();
  11837. this.Adapter.Fill(dataTable);
  11838. return dataTable;
  11839. }
  11840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11842. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11843. public virtual int Update(DataSet1.tbl_dea_custDataTable dataTable) {
  11844. return this.Adapter.Update(dataTable);
  11845. }
  11846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11848. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11849. public virtual int Update(DataSet1 dataSet) {
  11850. return this.Adapter.Update(dataSet, "tbl_dea_cust");
  11851. }
  11852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11854. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11855. public virtual int Update(global::System.Data.DataRow dataRow) {
  11856. return this.Adapter.Update(new global::System.Data.DataRow[] {
  11857. dataRow});
  11858. }
  11859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11861. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11862. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  11863. return this.Adapter.Update(dataRows);
  11864. }
  11865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11867. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11868. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  11869. public virtual int Delete(int Original_id, string Original_type, string Original_name, string Original_email, string Original_contact, global::System.Nullable<global::System.DateTime> Original_added_date, global::System.Nullable<int> Original_added_by) {
  11870. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  11871. if ((Original_type == null)) {
  11872. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  11873. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  11874. }
  11875. else {
  11876. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  11877. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_type));
  11878. }
  11879. if ((Original_name == null)) {
  11880. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  11881. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  11882. }
  11883. else {
  11884. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  11885. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_name));
  11886. }
  11887. if ((Original_email == null)) {
  11888. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  11889. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  11890. }
  11891. else {
  11892. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  11893. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_email));
  11894. }
  11895. if ((Original_contact == null)) {
  11896. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  11897. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  11898. }
  11899. else {
  11900. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  11901. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_contact));
  11902. }
  11903. if ((Original_added_date.HasValue == true)) {
  11904. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  11905. this.Adapter.DeleteCommand.Parameters[10].Value = ((System.DateTime)(Original_added_date.Value));
  11906. }
  11907. else {
  11908. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  11909. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  11910. }
  11911. if ((Original_added_by.HasValue == true)) {
  11912. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  11913. this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_added_by.Value));
  11914. }
  11915. else {
  11916. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  11917. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  11918. }
  11919. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  11920. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11921. != global::System.Data.ConnectionState.Open)) {
  11922. this.Adapter.DeleteCommand.Connection.Open();
  11923. }
  11924. try {
  11925. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  11926. return returnValue;
  11927. }
  11928. finally {
  11929. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11930. this.Adapter.DeleteCommand.Connection.Close();
  11931. }
  11932. }
  11933. }
  11934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11936. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11937. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  11938. public virtual int Insert(string type, string name, string email, string contact, string address, global::System.Nullable<global::System.DateTime> added_date, global::System.Nullable<int> added_by) {
  11939. if ((type == null)) {
  11940. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  11941. }
  11942. else {
  11943. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(type));
  11944. }
  11945. if ((name == null)) {
  11946. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  11947. }
  11948. else {
  11949. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(name));
  11950. }
  11951. if ((email == null)) {
  11952. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  11953. }
  11954. else {
  11955. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(email));
  11956. }
  11957. if ((contact == null)) {
  11958. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  11959. }
  11960. else {
  11961. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(contact));
  11962. }
  11963. if ((address == null)) {
  11964. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  11965. }
  11966. else {
  11967. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(address));
  11968. }
  11969. if ((added_date.HasValue == true)) {
  11970. this.Adapter.InsertCommand.Parameters[5].Value = ((System.DateTime)(added_date.Value));
  11971. }
  11972. else {
  11973. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  11974. }
  11975. if ((added_by.HasValue == true)) {
  11976. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(added_by.Value));
  11977. }
  11978. else {
  11979. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  11980. }
  11981. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  11982. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  11983. != global::System.Data.ConnectionState.Open)) {
  11984. this.Adapter.InsertCommand.Connection.Open();
  11985. }
  11986. try {
  11987. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  11988. return returnValue;
  11989. }
  11990. finally {
  11991. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  11992. this.Adapter.InsertCommand.Connection.Close();
  11993. }
  11994. }
  11995. }
  11996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  11998. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  11999. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12000. public virtual int Update(string type, string name, string email, string contact, string address, global::System.Nullable<global::System.DateTime> added_date, global::System.Nullable<int> added_by, int Original_id, string Original_type, string Original_name, string Original_email, string Original_contact, global::System.Nullable<global::System.DateTime> Original_added_date, global::System.Nullable<int> Original_added_by, int id) {
  12001. if ((type == null)) {
  12002. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  12003. }
  12004. else {
  12005. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(type));
  12006. }
  12007. if ((name == null)) {
  12008. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  12009. }
  12010. else {
  12011. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(name));
  12012. }
  12013. if ((email == null)) {
  12014. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  12015. }
  12016. else {
  12017. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(email));
  12018. }
  12019. if ((contact == null)) {
  12020. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  12021. }
  12022. else {
  12023. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(contact));
  12024. }
  12025. if ((address == null)) {
  12026. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  12027. }
  12028. else {
  12029. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(address));
  12030. }
  12031. if ((added_date.HasValue == true)) {
  12032. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(added_date.Value));
  12033. }
  12034. else {
  12035. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  12036. }
  12037. if ((added_by.HasValue == true)) {
  12038. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(added_by.Value));
  12039. }
  12040. else {
  12041. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  12042. }
  12043. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_id));
  12044. if ((Original_type == null)) {
  12045. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  12046. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  12047. }
  12048. else {
  12049. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  12050. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_type));
  12051. }
  12052. if ((Original_name == null)) {
  12053. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  12054. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  12055. }
  12056. else {
  12057. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  12058. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_name));
  12059. }
  12060. if ((Original_email == null)) {
  12061. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  12062. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  12063. }
  12064. else {
  12065. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  12066. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_email));
  12067. }
  12068. if ((Original_contact == null)) {
  12069. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  12070. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  12071. }
  12072. else {
  12073. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  12074. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_contact));
  12075. }
  12076. if ((Original_added_date.HasValue == true)) {
  12077. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  12078. this.Adapter.UpdateCommand.Parameters[17].Value = ((System.DateTime)(Original_added_date.Value));
  12079. }
  12080. else {
  12081. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  12082. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  12083. }
  12084. if ((Original_added_by.HasValue == true)) {
  12085. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  12086. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_added_by.Value));
  12087. }
  12088. else {
  12089. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  12090. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  12091. }
  12092. this.Adapter.UpdateCommand.Parameters[20].Value = ((int)(id));
  12093. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  12094. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12095. != global::System.Data.ConnectionState.Open)) {
  12096. this.Adapter.UpdateCommand.Connection.Open();
  12097. }
  12098. try {
  12099. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  12100. return returnValue;
  12101. }
  12102. finally {
  12103. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12104. this.Adapter.UpdateCommand.Connection.Close();
  12105. }
  12106. }
  12107. }
  12108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12110. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12111. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12112. public virtual int Update(string type, string name, string email, string contact, string address, global::System.Nullable<global::System.DateTime> added_date, global::System.Nullable<int> added_by, int Original_id, string Original_type, string Original_name, string Original_email, string Original_contact, global::System.Nullable<global::System.DateTime> Original_added_date, global::System.Nullable<int> Original_added_by) {
  12113. return this.Update(type, name, email, contact, address, added_date, added_by, Original_id, Original_type, Original_name, Original_email, Original_contact, Original_added_date, Original_added_by, Original_id);
  12114. }
  12115. }
  12116. /// <summary>
  12117. ///Represents the connection and commands used to retrieve and save data.
  12118. ///</summary>
  12119. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  12120. [global::System.ComponentModel.ToolboxItem(true)]
  12121. [global::System.ComponentModel.DataObjectAttribute(true)]
  12122. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  12123. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  12124. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12125. public partial class tbl_productsTableAdapter : global::System.ComponentModel.Component {
  12126. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  12127. private global::System.Data.SqlClient.SqlConnection _connection;
  12128. private global::System.Data.SqlClient.SqlTransaction _transaction;
  12129. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  12130. private bool _clearBeforeFill;
  12131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12133. public tbl_productsTableAdapter() {
  12134. this.ClearBeforeFill = true;
  12135. }
  12136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12138. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  12139. get {
  12140. if ((this._adapter == null)) {
  12141. this.InitAdapter();
  12142. }
  12143. return this._adapter;
  12144. }
  12145. }
  12146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12148. internal global::System.Data.SqlClient.SqlConnection Connection {
  12149. get {
  12150. if ((this._connection == null)) {
  12151. this.InitConnection();
  12152. }
  12153. return this._connection;
  12154. }
  12155. set {
  12156. this._connection = value;
  12157. if ((this.Adapter.InsertCommand != null)) {
  12158. this.Adapter.InsertCommand.Connection = value;
  12159. }
  12160. if ((this.Adapter.DeleteCommand != null)) {
  12161. this.Adapter.DeleteCommand.Connection = value;
  12162. }
  12163. if ((this.Adapter.UpdateCommand != null)) {
  12164. this.Adapter.UpdateCommand.Connection = value;
  12165. }
  12166. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12167. if ((this.CommandCollection[i] != null)) {
  12168. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  12169. }
  12170. }
  12171. }
  12172. }
  12173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12175. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  12176. get {
  12177. return this._transaction;
  12178. }
  12179. set {
  12180. this._transaction = value;
  12181. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12182. this.CommandCollection[i].Transaction = this._transaction;
  12183. }
  12184. if (((this.Adapter != null)
  12185. && (this.Adapter.DeleteCommand != null))) {
  12186. this.Adapter.DeleteCommand.Transaction = this._transaction;
  12187. }
  12188. if (((this.Adapter != null)
  12189. && (this.Adapter.InsertCommand != null))) {
  12190. this.Adapter.InsertCommand.Transaction = this._transaction;
  12191. }
  12192. if (((this.Adapter != null)
  12193. && (this.Adapter.UpdateCommand != null))) {
  12194. this.Adapter.UpdateCommand.Transaction = this._transaction;
  12195. }
  12196. }
  12197. }
  12198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12200. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  12201. get {
  12202. if ((this._commandCollection == null)) {
  12203. this.InitCommandCollection();
  12204. }
  12205. return this._commandCollection;
  12206. }
  12207. }
  12208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12210. public bool ClearBeforeFill {
  12211. get {
  12212. return this._clearBeforeFill;
  12213. }
  12214. set {
  12215. this._clearBeforeFill = value;
  12216. }
  12217. }
  12218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12220. private void InitAdapter() {
  12221. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  12222. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  12223. tableMapping.SourceTable = "Table";
  12224. tableMapping.DataSetTable = "tbl_products";
  12225. tableMapping.ColumnMappings.Add("id", "id");
  12226. tableMapping.ColumnMappings.Add("name", "name");
  12227. tableMapping.ColumnMappings.Add("category", "category");
  12228. tableMapping.ColumnMappings.Add("description", "description");
  12229. tableMapping.ColumnMappings.Add("rate", "rate");
  12230. tableMapping.ColumnMappings.Add("qty", "qty");
  12231. tableMapping.ColumnMappings.Add("added_date", "added_date");
  12232. tableMapping.ColumnMappings.Add("added_by", "added_by");
  12233. this._adapter.TableMappings.Add(tableMapping);
  12234. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  12235. this._adapter.DeleteCommand.Connection = this.Connection;
  12236. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[tbl_products] WHERE (([id] = @Original_id) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_category = 1 AND [category] IS NULL) OR ([category] = @Original_category)) AND ((@IsNull_rate = 1 AND [rate] IS NULL) OR ([rate] = @Original_rate)) AND ((@IsNull_qty = 1 AND [qty] IS NULL) OR ([qty] = @Original_qty)) AND ((@IsNull_added_date = 1 AND [added_date] IS NULL) OR ([added_date] = @Original_added_date)) AND ((@IsNull_added_by = 1 AND [added_by] IS NULL) OR ([added_by] = @Original_added_by)))";
  12237. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  12238. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12239. 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, "", "", ""));
  12240. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12241. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_category", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "category", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12242. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_category", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "category", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12243. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_rate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12244. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_rate", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "rate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12245. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "qty", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12246. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_qty", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "qty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12247. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_date", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12248. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12249. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12250. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12251. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  12252. this._adapter.InsertCommand.Connection = this.Connection;
  12253. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[tbl_products] ([name], [category], [description], [rate], [qty], [added_date], [added_by]) VALUES (@name, @category, @description, @rate, @qty, @added_date, @added_by);
  12254. SELECT id, name, category, description, rate, qty, added_date, added_by FROM tbl_products WHERE (id = SCOPE_IDENTITY())";
  12255. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  12256. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12257. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@category", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "category", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12258. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description", global::System.Data.SqlDbType.Text, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12259. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@rate", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "rate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12260. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qty", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "qty", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12261. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12262. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12263. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  12264. this._adapter.UpdateCommand.Connection = this.Connection;
  12265. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[tbl_products] SET [name] = @name, [category] = @category, [description] = @description, [rate] = @rate, [qty] = @qty, [added_date] = @added_date, [added_by] = @added_by WHERE (([id] = @Original_id) AND ((@IsNull_name = 1 AND [name] IS NULL) OR ([name] = @Original_name)) AND ((@IsNull_category = 1 AND [category] IS NULL) OR ([category] = @Original_category)) AND ((@IsNull_rate = 1 AND [rate] IS NULL) OR ([rate] = @Original_rate)) AND ((@IsNull_qty = 1 AND [qty] IS NULL) OR ([qty] = @Original_qty)) AND ((@IsNull_added_date = 1 AND [added_date] IS NULL) OR ([added_date] = @Original_added_date)) AND ((@IsNull_added_by = 1 AND [added_by] IS NULL) OR ([added_by] = @Original_added_by)));
  12266. SELECT id, name, category, description, rate, qty, added_date, added_by FROM tbl_products WHERE (id = @id)";
  12267. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  12268. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12269. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@category", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "category", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12270. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@description", global::System.Data.SqlDbType.Text, 0, global::System.Data.ParameterDirection.Input, 0, 0, "description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12271. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@rate", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "rate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12272. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qty", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "qty", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12273. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12274. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12275. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12276. 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, "", "", ""));
  12277. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12278. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_category", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "category", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12279. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_category", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "category", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12280. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_rate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12281. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_rate", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "rate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12282. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "qty", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12283. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_qty", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "qty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12284. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_date", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12285. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12286. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12287. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12288. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12289. }
  12290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12292. private void InitConnection() {
  12293. this._connection = new global::System.Data.SqlClient.SqlConnection();
  12294. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  12295. }
  12296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12298. private void InitCommandCollection() {
  12299. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  12300. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  12301. this._commandCollection[0].Connection = this.Connection;
  12302. this._commandCollection[0].CommandText = "SELECT id, name, category, description, rate, qty, added_date, added_by FROM dbo." +
  12303. "tbl_products";
  12304. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  12305. }
  12306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12308. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12309. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  12310. public virtual int Fill(DataSet1.tbl_productsDataTable dataTable) {
  12311. this.Adapter.SelectCommand = this.CommandCollection[0];
  12312. if ((this.ClearBeforeFill == true)) {
  12313. dataTable.Clear();
  12314. }
  12315. int returnValue = this.Adapter.Fill(dataTable);
  12316. return returnValue;
  12317. }
  12318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12320. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12321. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  12322. public virtual DataSet1.tbl_productsDataTable GetData() {
  12323. this.Adapter.SelectCommand = this.CommandCollection[0];
  12324. DataSet1.tbl_productsDataTable dataTable = new DataSet1.tbl_productsDataTable();
  12325. this.Adapter.Fill(dataTable);
  12326. return dataTable;
  12327. }
  12328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12330. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12331. public virtual int Update(DataSet1.tbl_productsDataTable dataTable) {
  12332. return this.Adapter.Update(dataTable);
  12333. }
  12334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12336. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12337. public virtual int Update(DataSet1 dataSet) {
  12338. return this.Adapter.Update(dataSet, "tbl_products");
  12339. }
  12340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12342. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12343. public virtual int Update(global::System.Data.DataRow dataRow) {
  12344. return this.Adapter.Update(new global::System.Data.DataRow[] {
  12345. dataRow});
  12346. }
  12347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12349. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12350. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  12351. return this.Adapter.Update(dataRows);
  12352. }
  12353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12355. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12356. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  12357. public virtual int Delete(int Original_id, string Original_name, string Original_category, global::System.Nullable<decimal> Original_rate, global::System.Nullable<decimal> Original_qty, global::System.Nullable<global::System.DateTime> Original_added_date, global::System.Nullable<int> Original_added_by) {
  12358. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  12359. if ((Original_name == null)) {
  12360. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  12361. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  12362. }
  12363. else {
  12364. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  12365. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_name));
  12366. }
  12367. if ((Original_category == null)) {
  12368. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  12369. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  12370. }
  12371. else {
  12372. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  12373. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_category));
  12374. }
  12375. if ((Original_rate.HasValue == true)) {
  12376. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  12377. this.Adapter.DeleteCommand.Parameters[6].Value = ((decimal)(Original_rate.Value));
  12378. }
  12379. else {
  12380. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  12381. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  12382. }
  12383. if ((Original_qty.HasValue == true)) {
  12384. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  12385. this.Adapter.DeleteCommand.Parameters[8].Value = ((decimal)(Original_qty.Value));
  12386. }
  12387. else {
  12388. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  12389. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  12390. }
  12391. if ((Original_added_date.HasValue == true)) {
  12392. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  12393. this.Adapter.DeleteCommand.Parameters[10].Value = ((System.DateTime)(Original_added_date.Value));
  12394. }
  12395. else {
  12396. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  12397. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  12398. }
  12399. if ((Original_added_by.HasValue == true)) {
  12400. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  12401. this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_added_by.Value));
  12402. }
  12403. else {
  12404. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  12405. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  12406. }
  12407. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  12408. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12409. != global::System.Data.ConnectionState.Open)) {
  12410. this.Adapter.DeleteCommand.Connection.Open();
  12411. }
  12412. try {
  12413. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  12414. return returnValue;
  12415. }
  12416. finally {
  12417. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12418. this.Adapter.DeleteCommand.Connection.Close();
  12419. }
  12420. }
  12421. }
  12422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12424. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12425. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  12426. public virtual int Insert(string name, string category, string description, global::System.Nullable<decimal> rate, global::System.Nullable<decimal> qty, global::System.Nullable<global::System.DateTime> added_date, global::System.Nullable<int> added_by) {
  12427. if ((name == null)) {
  12428. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  12429. }
  12430. else {
  12431. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(name));
  12432. }
  12433. if ((category == null)) {
  12434. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  12435. }
  12436. else {
  12437. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(category));
  12438. }
  12439. if ((description == null)) {
  12440. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  12441. }
  12442. else {
  12443. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(description));
  12444. }
  12445. if ((rate.HasValue == true)) {
  12446. this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(rate.Value));
  12447. }
  12448. else {
  12449. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  12450. }
  12451. if ((qty.HasValue == true)) {
  12452. this.Adapter.InsertCommand.Parameters[4].Value = ((decimal)(qty.Value));
  12453. }
  12454. else {
  12455. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  12456. }
  12457. if ((added_date.HasValue == true)) {
  12458. this.Adapter.InsertCommand.Parameters[5].Value = ((System.DateTime)(added_date.Value));
  12459. }
  12460. else {
  12461. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  12462. }
  12463. if ((added_by.HasValue == true)) {
  12464. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(added_by.Value));
  12465. }
  12466. else {
  12467. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  12468. }
  12469. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  12470. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12471. != global::System.Data.ConnectionState.Open)) {
  12472. this.Adapter.InsertCommand.Connection.Open();
  12473. }
  12474. try {
  12475. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  12476. return returnValue;
  12477. }
  12478. finally {
  12479. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12480. this.Adapter.InsertCommand.Connection.Close();
  12481. }
  12482. }
  12483. }
  12484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12486. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12487. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12488. public virtual int Update(string name, string category, string description, global::System.Nullable<decimal> rate, global::System.Nullable<decimal> qty, global::System.Nullable<global::System.DateTime> added_date, global::System.Nullable<int> added_by, int Original_id, string Original_name, string Original_category, global::System.Nullable<decimal> Original_rate, global::System.Nullable<decimal> Original_qty, global::System.Nullable<global::System.DateTime> Original_added_date, global::System.Nullable<int> Original_added_by, int id) {
  12489. if ((name == null)) {
  12490. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  12491. }
  12492. else {
  12493. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(name));
  12494. }
  12495. if ((category == null)) {
  12496. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  12497. }
  12498. else {
  12499. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(category));
  12500. }
  12501. if ((description == null)) {
  12502. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  12503. }
  12504. else {
  12505. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(description));
  12506. }
  12507. if ((rate.HasValue == true)) {
  12508. this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(rate.Value));
  12509. }
  12510. else {
  12511. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  12512. }
  12513. if ((qty.HasValue == true)) {
  12514. this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(qty.Value));
  12515. }
  12516. else {
  12517. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  12518. }
  12519. if ((added_date.HasValue == true)) {
  12520. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(added_date.Value));
  12521. }
  12522. else {
  12523. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  12524. }
  12525. if ((added_by.HasValue == true)) {
  12526. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(added_by.Value));
  12527. }
  12528. else {
  12529. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  12530. }
  12531. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_id));
  12532. if ((Original_name == null)) {
  12533. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  12534. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  12535. }
  12536. else {
  12537. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  12538. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_name));
  12539. }
  12540. if ((Original_category == null)) {
  12541. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  12542. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  12543. }
  12544. else {
  12545. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  12546. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_category));
  12547. }
  12548. if ((Original_rate.HasValue == true)) {
  12549. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  12550. this.Adapter.UpdateCommand.Parameters[13].Value = ((decimal)(Original_rate.Value));
  12551. }
  12552. else {
  12553. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  12554. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  12555. }
  12556. if ((Original_qty.HasValue == true)) {
  12557. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  12558. this.Adapter.UpdateCommand.Parameters[15].Value = ((decimal)(Original_qty.Value));
  12559. }
  12560. else {
  12561. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  12562. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  12563. }
  12564. if ((Original_added_date.HasValue == true)) {
  12565. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  12566. this.Adapter.UpdateCommand.Parameters[17].Value = ((System.DateTime)(Original_added_date.Value));
  12567. }
  12568. else {
  12569. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  12570. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  12571. }
  12572. if ((Original_added_by.HasValue == true)) {
  12573. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  12574. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_added_by.Value));
  12575. }
  12576. else {
  12577. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  12578. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  12579. }
  12580. this.Adapter.UpdateCommand.Parameters[20].Value = ((int)(id));
  12581. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  12582. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12583. != global::System.Data.ConnectionState.Open)) {
  12584. this.Adapter.UpdateCommand.Connection.Open();
  12585. }
  12586. try {
  12587. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  12588. return returnValue;
  12589. }
  12590. finally {
  12591. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12592. this.Adapter.UpdateCommand.Connection.Close();
  12593. }
  12594. }
  12595. }
  12596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12598. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12599. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12600. public virtual int Update(string name, string category, string description, global::System.Nullable<decimal> rate, global::System.Nullable<decimal> qty, global::System.Nullable<global::System.DateTime> added_date, global::System.Nullable<int> added_by, int Original_id, string Original_name, string Original_category, global::System.Nullable<decimal> Original_rate, global::System.Nullable<decimal> Original_qty, global::System.Nullable<global::System.DateTime> Original_added_date, global::System.Nullable<int> Original_added_by) {
  12601. return this.Update(name, category, description, rate, qty, added_date, added_by, Original_id, Original_name, Original_category, Original_rate, Original_qty, Original_added_date, Original_added_by, Original_id);
  12602. }
  12603. }
  12604. /// <summary>
  12605. ///Represents the connection and commands used to retrieve and save data.
  12606. ///</summary>
  12607. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  12608. [global::System.ComponentModel.ToolboxItem(true)]
  12609. [global::System.ComponentModel.DataObjectAttribute(true)]
  12610. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  12611. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  12612. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12613. public partial class tbl_transaction_detailTableAdapter : global::System.ComponentModel.Component {
  12614. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  12615. private global::System.Data.SqlClient.SqlConnection _connection;
  12616. private global::System.Data.SqlClient.SqlTransaction _transaction;
  12617. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  12618. private bool _clearBeforeFill;
  12619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12621. public tbl_transaction_detailTableAdapter() {
  12622. this.ClearBeforeFill = true;
  12623. }
  12624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12626. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  12627. get {
  12628. if ((this._adapter == null)) {
  12629. this.InitAdapter();
  12630. }
  12631. return this._adapter;
  12632. }
  12633. }
  12634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12636. internal global::System.Data.SqlClient.SqlConnection Connection {
  12637. get {
  12638. if ((this._connection == null)) {
  12639. this.InitConnection();
  12640. }
  12641. return this._connection;
  12642. }
  12643. set {
  12644. this._connection = value;
  12645. if ((this.Adapter.InsertCommand != null)) {
  12646. this.Adapter.InsertCommand.Connection = value;
  12647. }
  12648. if ((this.Adapter.DeleteCommand != null)) {
  12649. this.Adapter.DeleteCommand.Connection = value;
  12650. }
  12651. if ((this.Adapter.UpdateCommand != null)) {
  12652. this.Adapter.UpdateCommand.Connection = value;
  12653. }
  12654. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12655. if ((this.CommandCollection[i] != null)) {
  12656. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  12657. }
  12658. }
  12659. }
  12660. }
  12661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12663. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  12664. get {
  12665. return this._transaction;
  12666. }
  12667. set {
  12668. this._transaction = value;
  12669. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  12670. this.CommandCollection[i].Transaction = this._transaction;
  12671. }
  12672. if (((this.Adapter != null)
  12673. && (this.Adapter.DeleteCommand != null))) {
  12674. this.Adapter.DeleteCommand.Transaction = this._transaction;
  12675. }
  12676. if (((this.Adapter != null)
  12677. && (this.Adapter.InsertCommand != null))) {
  12678. this.Adapter.InsertCommand.Transaction = this._transaction;
  12679. }
  12680. if (((this.Adapter != null)
  12681. && (this.Adapter.UpdateCommand != null))) {
  12682. this.Adapter.UpdateCommand.Transaction = this._transaction;
  12683. }
  12684. }
  12685. }
  12686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12688. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  12689. get {
  12690. if ((this._commandCollection == null)) {
  12691. this.InitCommandCollection();
  12692. }
  12693. return this._commandCollection;
  12694. }
  12695. }
  12696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12698. public bool ClearBeforeFill {
  12699. get {
  12700. return this._clearBeforeFill;
  12701. }
  12702. set {
  12703. this._clearBeforeFill = value;
  12704. }
  12705. }
  12706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12708. private void InitAdapter() {
  12709. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  12710. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  12711. tableMapping.SourceTable = "Table";
  12712. tableMapping.DataSetTable = "tbl_transaction_detail";
  12713. tableMapping.ColumnMappings.Add("id", "id");
  12714. tableMapping.ColumnMappings.Add("product_id", "product_id");
  12715. tableMapping.ColumnMappings.Add("rate", "rate");
  12716. tableMapping.ColumnMappings.Add("qty", "qty");
  12717. tableMapping.ColumnMappings.Add("total", "total");
  12718. tableMapping.ColumnMappings.Add("dea_cust_id", "dea_cust_id");
  12719. tableMapping.ColumnMappings.Add("added_date", "added_date");
  12720. tableMapping.ColumnMappings.Add("added_by", "added_by");
  12721. this._adapter.TableMappings.Add(tableMapping);
  12722. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  12723. this._adapter.DeleteCommand.Connection = this.Connection;
  12724. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[tbl_transaction_detail] WHERE (([id] = @Original_id) AND ((@IsNull_product_id = 1 AND [product_id] IS NULL) OR ([product_id] = @Original_product_id)) AND ((@IsNull_rate = 1 AND [rate] IS NULL) OR ([rate] = @Original_rate)) AND ((@IsNull_qty = 1 AND [qty] IS NULL) OR ([qty] = @Original_qty)) AND ((@IsNull_total = 1 AND [total] IS NULL) OR ([total] = @Original_total)) AND ((@IsNull_dea_cust_id = 1 AND [dea_cust_id] IS NULL) OR ([dea_cust_id] = @Original_dea_cust_id)) AND ((@IsNull_added_date = 1 AND [added_date] IS NULL) OR ([added_date] = @Original_added_date)) AND ((@IsNull_added_by = 1 AND [added_by] IS NULL) OR ([added_by] = @Original_added_by)))";
  12725. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  12726. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12727. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_product_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "product_id", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12728. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_product_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "product_id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12729. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_rate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12730. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_rate", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "rate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12731. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "qty", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12732. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_qty", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "qty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12733. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_total", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "total", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12734. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_total", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "total", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12735. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dea_cust_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dea_cust_id", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12736. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dea_cust_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dea_cust_id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12737. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_date", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12738. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12739. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12740. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12741. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  12742. this._adapter.InsertCommand.Connection = this.Connection;
  12743. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[tbl_transaction_detail] ([product_id], [rate], [qty], [total], [dea_cust_id], [added_date], [added_by]) VALUES (@product_id, @rate, @qty, @total, @dea_cust_id, @added_date, @added_by);
  12744. SELECT id, product_id, rate, qty, total, dea_cust_id, added_date, added_by FROM tbl_transaction_detail WHERE (id = SCOPE_IDENTITY())";
  12745. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  12746. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@product_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "product_id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12747. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@rate", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "rate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12748. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qty", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "qty", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12749. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@total", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "total", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12750. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dea_cust_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dea_cust_id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12751. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12752. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12753. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  12754. this._adapter.UpdateCommand.Connection = this.Connection;
  12755. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[tbl_transaction_detail] SET [product_id] = @product_id, [rate] = @rate, [qty] = @qty, [total] = @total, [dea_cust_id] = @dea_cust_id, [added_date] = @added_date, [added_by] = @added_by WHERE (([id] = @Original_id) AND ((@IsNull_product_id = 1 AND [product_id] IS NULL) OR ([product_id] = @Original_product_id)) AND ((@IsNull_rate = 1 AND [rate] IS NULL) OR ([rate] = @Original_rate)) AND ((@IsNull_qty = 1 AND [qty] IS NULL) OR ([qty] = @Original_qty)) AND ((@IsNull_total = 1 AND [total] IS NULL) OR ([total] = @Original_total)) AND ((@IsNull_dea_cust_id = 1 AND [dea_cust_id] IS NULL) OR ([dea_cust_id] = @Original_dea_cust_id)) AND ((@IsNull_added_date = 1 AND [added_date] IS NULL) OR ([added_date] = @Original_added_date)) AND ((@IsNull_added_by = 1 AND [added_by] IS NULL) OR ([added_by] = @Original_added_by)));
  12756. SELECT id, product_id, rate, qty, total, dea_cust_id, added_date, added_by FROM tbl_transaction_detail WHERE (id = @id)";
  12757. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  12758. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@product_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "product_id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12759. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@rate", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "rate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12760. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@qty", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "qty", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12761. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@total", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "total", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12762. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dea_cust_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dea_cust_id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12763. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12764. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12765. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12766. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_product_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "product_id", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12767. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_product_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "product_id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12768. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_rate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "rate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12769. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_rate", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "rate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12770. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_qty", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "qty", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12771. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_qty", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "qty", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12772. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_total", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "total", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12773. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_total", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "total", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12774. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dea_cust_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dea_cust_id", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12775. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dea_cust_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dea_cust_id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12776. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_date", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12777. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12778. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  12779. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  12780. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  12781. }
  12782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12784. private void InitConnection() {
  12785. this._connection = new global::System.Data.SqlClient.SqlConnection();
  12786. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  12787. }
  12788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12790. private void InitCommandCollection() {
  12791. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  12792. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  12793. this._commandCollection[0].Connection = this.Connection;
  12794. this._commandCollection[0].CommandText = "SELECT id, product_id, rate, qty, total, dea_cust_id, added_date, added_by FROM d" +
  12795. "bo.tbl_transaction_detail";
  12796. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  12797. }
  12798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12800. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12801. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  12802. public virtual int Fill(DataSet1.tbl_transaction_detailDataTable dataTable) {
  12803. this.Adapter.SelectCommand = this.CommandCollection[0];
  12804. if ((this.ClearBeforeFill == true)) {
  12805. dataTable.Clear();
  12806. }
  12807. int returnValue = this.Adapter.Fill(dataTable);
  12808. return returnValue;
  12809. }
  12810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12812. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12813. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  12814. public virtual DataSet1.tbl_transaction_detailDataTable GetData() {
  12815. this.Adapter.SelectCommand = this.CommandCollection[0];
  12816. DataSet1.tbl_transaction_detailDataTable dataTable = new DataSet1.tbl_transaction_detailDataTable();
  12817. this.Adapter.Fill(dataTable);
  12818. return dataTable;
  12819. }
  12820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12822. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12823. public virtual int Update(DataSet1.tbl_transaction_detailDataTable dataTable) {
  12824. return this.Adapter.Update(dataTable);
  12825. }
  12826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12828. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12829. public virtual int Update(DataSet1 dataSet) {
  12830. return this.Adapter.Update(dataSet, "tbl_transaction_detail");
  12831. }
  12832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12834. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12835. public virtual int Update(global::System.Data.DataRow dataRow) {
  12836. return this.Adapter.Update(new global::System.Data.DataRow[] {
  12837. dataRow});
  12838. }
  12839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12841. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12842. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  12843. return this.Adapter.Update(dataRows);
  12844. }
  12845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12847. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12848. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  12849. public virtual int Delete(int Original_id, global::System.Nullable<int> Original_product_id, global::System.Nullable<decimal> Original_rate, global::System.Nullable<decimal> Original_qty, global::System.Nullable<decimal> Original_total, global::System.Nullable<int> Original_dea_cust_id, global::System.Nullable<global::System.DateTime> Original_added_date, global::System.Nullable<int> Original_added_by) {
  12850. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  12851. if ((Original_product_id.HasValue == true)) {
  12852. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  12853. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_product_id.Value));
  12854. }
  12855. else {
  12856. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  12857. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  12858. }
  12859. if ((Original_rate.HasValue == true)) {
  12860. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  12861. this.Adapter.DeleteCommand.Parameters[4].Value = ((decimal)(Original_rate.Value));
  12862. }
  12863. else {
  12864. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  12865. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  12866. }
  12867. if ((Original_qty.HasValue == true)) {
  12868. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  12869. this.Adapter.DeleteCommand.Parameters[6].Value = ((decimal)(Original_qty.Value));
  12870. }
  12871. else {
  12872. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  12873. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  12874. }
  12875. if ((Original_total.HasValue == true)) {
  12876. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  12877. this.Adapter.DeleteCommand.Parameters[8].Value = ((decimal)(Original_total.Value));
  12878. }
  12879. else {
  12880. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  12881. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  12882. }
  12883. if ((Original_dea_cust_id.HasValue == true)) {
  12884. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  12885. this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_dea_cust_id.Value));
  12886. }
  12887. else {
  12888. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  12889. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  12890. }
  12891. if ((Original_added_date.HasValue == true)) {
  12892. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  12893. this.Adapter.DeleteCommand.Parameters[12].Value = ((System.DateTime)(Original_added_date.Value));
  12894. }
  12895. else {
  12896. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  12897. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  12898. }
  12899. if ((Original_added_by.HasValue == true)) {
  12900. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  12901. this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_added_by.Value));
  12902. }
  12903. else {
  12904. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  12905. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  12906. }
  12907. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  12908. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12909. != global::System.Data.ConnectionState.Open)) {
  12910. this.Adapter.DeleteCommand.Connection.Open();
  12911. }
  12912. try {
  12913. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  12914. return returnValue;
  12915. }
  12916. finally {
  12917. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12918. this.Adapter.DeleteCommand.Connection.Close();
  12919. }
  12920. }
  12921. }
  12922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12924. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12925. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  12926. public virtual int Insert(global::System.Nullable<int> product_id, global::System.Nullable<decimal> rate, global::System.Nullable<decimal> qty, global::System.Nullable<decimal> total, global::System.Nullable<int> dea_cust_id, global::System.Nullable<global::System.DateTime> added_date, global::System.Nullable<int> added_by) {
  12927. if ((product_id.HasValue == true)) {
  12928. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(product_id.Value));
  12929. }
  12930. else {
  12931. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  12932. }
  12933. if ((rate.HasValue == true)) {
  12934. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(rate.Value));
  12935. }
  12936. else {
  12937. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  12938. }
  12939. if ((qty.HasValue == true)) {
  12940. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(qty.Value));
  12941. }
  12942. else {
  12943. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  12944. }
  12945. if ((total.HasValue == true)) {
  12946. this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(total.Value));
  12947. }
  12948. else {
  12949. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  12950. }
  12951. if ((dea_cust_id.HasValue == true)) {
  12952. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(dea_cust_id.Value));
  12953. }
  12954. else {
  12955. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  12956. }
  12957. if ((added_date.HasValue == true)) {
  12958. this.Adapter.InsertCommand.Parameters[5].Value = ((System.DateTime)(added_date.Value));
  12959. }
  12960. else {
  12961. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  12962. }
  12963. if ((added_by.HasValue == true)) {
  12964. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(added_by.Value));
  12965. }
  12966. else {
  12967. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  12968. }
  12969. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  12970. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  12971. != global::System.Data.ConnectionState.Open)) {
  12972. this.Adapter.InsertCommand.Connection.Open();
  12973. }
  12974. try {
  12975. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  12976. return returnValue;
  12977. }
  12978. finally {
  12979. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  12980. this.Adapter.InsertCommand.Connection.Close();
  12981. }
  12982. }
  12983. }
  12984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  12986. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  12987. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  12988. public virtual int Update(
  12989. global::System.Nullable<int> product_id,
  12990. global::System.Nullable<decimal> rate,
  12991. global::System.Nullable<decimal> qty,
  12992. global::System.Nullable<decimal> total,
  12993. global::System.Nullable<int> dea_cust_id,
  12994. global::System.Nullable<global::System.DateTime> added_date,
  12995. global::System.Nullable<int> added_by,
  12996. int Original_id,
  12997. global::System.Nullable<int> Original_product_id,
  12998. global::System.Nullable<decimal> Original_rate,
  12999. global::System.Nullable<decimal> Original_qty,
  13000. global::System.Nullable<decimal> Original_total,
  13001. global::System.Nullable<int> Original_dea_cust_id,
  13002. global::System.Nullable<global::System.DateTime> Original_added_date,
  13003. global::System.Nullable<int> Original_added_by,
  13004. int id) {
  13005. if ((product_id.HasValue == true)) {
  13006. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(product_id.Value));
  13007. }
  13008. else {
  13009. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  13010. }
  13011. if ((rate.HasValue == true)) {
  13012. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(rate.Value));
  13013. }
  13014. else {
  13015. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  13016. }
  13017. if ((qty.HasValue == true)) {
  13018. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(qty.Value));
  13019. }
  13020. else {
  13021. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  13022. }
  13023. if ((total.HasValue == true)) {
  13024. this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(total.Value));
  13025. }
  13026. else {
  13027. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  13028. }
  13029. if ((dea_cust_id.HasValue == true)) {
  13030. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(dea_cust_id.Value));
  13031. }
  13032. else {
  13033. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  13034. }
  13035. if ((added_date.HasValue == true)) {
  13036. this.Adapter.UpdateCommand.Parameters[5].Value = ((System.DateTime)(added_date.Value));
  13037. }
  13038. else {
  13039. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  13040. }
  13041. if ((added_by.HasValue == true)) {
  13042. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(added_by.Value));
  13043. }
  13044. else {
  13045. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  13046. }
  13047. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_id));
  13048. if ((Original_product_id.HasValue == true)) {
  13049. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  13050. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_product_id.Value));
  13051. }
  13052. else {
  13053. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  13054. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  13055. }
  13056. if ((Original_rate.HasValue == true)) {
  13057. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  13058. this.Adapter.UpdateCommand.Parameters[11].Value = ((decimal)(Original_rate.Value));
  13059. }
  13060. else {
  13061. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  13062. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  13063. }
  13064. if ((Original_qty.HasValue == true)) {
  13065. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  13066. this.Adapter.UpdateCommand.Parameters[13].Value = ((decimal)(Original_qty.Value));
  13067. }
  13068. else {
  13069. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  13070. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  13071. }
  13072. if ((Original_total.HasValue == true)) {
  13073. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  13074. this.Adapter.UpdateCommand.Parameters[15].Value = ((decimal)(Original_total.Value));
  13075. }
  13076. else {
  13077. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  13078. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  13079. }
  13080. if ((Original_dea_cust_id.HasValue == true)) {
  13081. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  13082. this.Adapter.UpdateCommand.Parameters[17].Value = ((int)(Original_dea_cust_id.Value));
  13083. }
  13084. else {
  13085. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  13086. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  13087. }
  13088. if ((Original_added_date.HasValue == true)) {
  13089. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  13090. this.Adapter.UpdateCommand.Parameters[19].Value = ((System.DateTime)(Original_added_date.Value));
  13091. }
  13092. else {
  13093. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  13094. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  13095. }
  13096. if ((Original_added_by.HasValue == true)) {
  13097. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  13098. this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_added_by.Value));
  13099. }
  13100. else {
  13101. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  13102. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  13103. }
  13104. this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(id));
  13105. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  13106. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  13107. != global::System.Data.ConnectionState.Open)) {
  13108. this.Adapter.UpdateCommand.Connection.Open();
  13109. }
  13110. try {
  13111. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  13112. return returnValue;
  13113. }
  13114. finally {
  13115. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  13116. this.Adapter.UpdateCommand.Connection.Close();
  13117. }
  13118. }
  13119. }
  13120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13122. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13123. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  13124. public virtual int Update(global::System.Nullable<int> product_id, global::System.Nullable<decimal> rate, global::System.Nullable<decimal> qty, global::System.Nullable<decimal> total, global::System.Nullable<int> dea_cust_id, global::System.Nullable<global::System.DateTime> added_date, global::System.Nullable<int> added_by, int Original_id, global::System.Nullable<int> Original_product_id, global::System.Nullable<decimal> Original_rate, global::System.Nullable<decimal> Original_qty, global::System.Nullable<decimal> Original_total, global::System.Nullable<int> Original_dea_cust_id, global::System.Nullable<global::System.DateTime> Original_added_date, global::System.Nullable<int> Original_added_by) {
  13125. return this.Update(product_id, rate, qty, total, dea_cust_id, added_date, added_by, Original_id, Original_product_id, Original_rate, Original_qty, Original_total, Original_dea_cust_id, Original_added_date, Original_added_by, Original_id);
  13126. }
  13127. }
  13128. /// <summary>
  13129. ///Represents the connection and commands used to retrieve and save data.
  13130. ///</summary>
  13131. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  13132. [global::System.ComponentModel.ToolboxItem(true)]
  13133. [global::System.ComponentModel.DataObjectAttribute(true)]
  13134. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  13135. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  13136. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13137. public partial class tbl_transactionsTableAdapter : global::System.ComponentModel.Component {
  13138. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  13139. private global::System.Data.SqlClient.SqlConnection _connection;
  13140. private global::System.Data.SqlClient.SqlTransaction _transaction;
  13141. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  13142. private bool _clearBeforeFill;
  13143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13145. public tbl_transactionsTableAdapter() {
  13146. this.ClearBeforeFill = true;
  13147. }
  13148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13150. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  13151. get {
  13152. if ((this._adapter == null)) {
  13153. this.InitAdapter();
  13154. }
  13155. return this._adapter;
  13156. }
  13157. }
  13158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13160. internal global::System.Data.SqlClient.SqlConnection Connection {
  13161. get {
  13162. if ((this._connection == null)) {
  13163. this.InitConnection();
  13164. }
  13165. return this._connection;
  13166. }
  13167. set {
  13168. this._connection = value;
  13169. if ((this.Adapter.InsertCommand != null)) {
  13170. this.Adapter.InsertCommand.Connection = value;
  13171. }
  13172. if ((this.Adapter.DeleteCommand != null)) {
  13173. this.Adapter.DeleteCommand.Connection = value;
  13174. }
  13175. if ((this.Adapter.UpdateCommand != null)) {
  13176. this.Adapter.UpdateCommand.Connection = value;
  13177. }
  13178. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13179. if ((this.CommandCollection[i] != null)) {
  13180. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  13181. }
  13182. }
  13183. }
  13184. }
  13185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13187. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  13188. get {
  13189. return this._transaction;
  13190. }
  13191. set {
  13192. this._transaction = value;
  13193. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13194. this.CommandCollection[i].Transaction = this._transaction;
  13195. }
  13196. if (((this.Adapter != null)
  13197. && (this.Adapter.DeleteCommand != null))) {
  13198. this.Adapter.DeleteCommand.Transaction = this._transaction;
  13199. }
  13200. if (((this.Adapter != null)
  13201. && (this.Adapter.InsertCommand != null))) {
  13202. this.Adapter.InsertCommand.Transaction = this._transaction;
  13203. }
  13204. if (((this.Adapter != null)
  13205. && (this.Adapter.UpdateCommand != null))) {
  13206. this.Adapter.UpdateCommand.Transaction = this._transaction;
  13207. }
  13208. }
  13209. }
  13210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13212. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  13213. get {
  13214. if ((this._commandCollection == null)) {
  13215. this.InitCommandCollection();
  13216. }
  13217. return this._commandCollection;
  13218. }
  13219. }
  13220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13222. public bool ClearBeforeFill {
  13223. get {
  13224. return this._clearBeforeFill;
  13225. }
  13226. set {
  13227. this._clearBeforeFill = value;
  13228. }
  13229. }
  13230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13232. private void InitAdapter() {
  13233. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  13234. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  13235. tableMapping.SourceTable = "Table";
  13236. tableMapping.DataSetTable = "tbl_transactions";
  13237. tableMapping.ColumnMappings.Add("id", "id");
  13238. tableMapping.ColumnMappings.Add("type", "type");
  13239. tableMapping.ColumnMappings.Add("dea_cust_id", "dea_cust_id");
  13240. tableMapping.ColumnMappings.Add("grandTotal", "grandTotal");
  13241. tableMapping.ColumnMappings.Add("transaction_date", "transaction_date");
  13242. tableMapping.ColumnMappings.Add("tax", "tax");
  13243. tableMapping.ColumnMappings.Add("discount", "discount");
  13244. tableMapping.ColumnMappings.Add("added_by", "added_by");
  13245. this._adapter.TableMappings.Add(tableMapping);
  13246. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  13247. this._adapter.DeleteCommand.Connection = this.Connection;
  13248. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[tbl_transactions] WHERE (([id] = @Original_id) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_dea_cust_id = 1 AND [dea_cust_id] IS NULL) OR ([dea_cust_id] = @Original_dea_cust_id)) AND ((@IsNull_grandTotal = 1 AND [grandTotal] IS NULL) OR ([grandTotal] = @Original_grandTotal)) AND ((@IsNull_transaction_date = 1 AND [transaction_date] IS NULL) OR ([transaction_date] = @Original_transaction_date)) AND ((@IsNull_tax = 1 AND [tax] IS NULL) OR ([tax] = @Original_tax)) AND ((@IsNull_discount = 1 AND [discount] IS NULL) OR ([discount] = @Original_discount)) AND ((@IsNull_added_by = 1 AND [added_by] IS NULL) OR ([added_by] = @Original_added_by)))";
  13249. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  13250. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13251. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13252. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13253. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dea_cust_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dea_cust_id", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13254. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dea_cust_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dea_cust_id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13255. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_grandTotal", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grandTotal", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13256. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_grandTotal", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "grandTotal", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13257. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_transaction_date", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "transaction_date", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13258. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_transaction_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "transaction_date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13259. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_tax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tax", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13260. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tax", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "tax", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13261. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_discount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "discount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13262. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_discount", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13263. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13264. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13265. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  13266. this._adapter.InsertCommand.Connection = this.Connection;
  13267. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[tbl_transactions] ([type], [dea_cust_id], [grandTotal], [transaction_date], [tax], [discount], [added_by]) VALUES (@type, @dea_cust_id, @grandTotal, @transaction_date, @tax, @discount, @added_by);
  13268. SELECT id, type, dea_cust_id, grandTotal, transaction_date, tax, discount, added_by FROM tbl_transactions WHERE (id = SCOPE_IDENTITY())";
  13269. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  13270. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13271. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dea_cust_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dea_cust_id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13272. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grandTotal", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "grandTotal", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13273. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@transaction_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "transaction_date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13274. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tax", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "tax", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13275. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@discount", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13276. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13277. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  13278. this._adapter.UpdateCommand.Connection = this.Connection;
  13279. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[tbl_transactions] SET [type] = @type, [dea_cust_id] = @dea_cust_id, [grandTotal] = @grandTotal, [transaction_date] = @transaction_date, [tax] = @tax, [discount] = @discount, [added_by] = @added_by WHERE (([id] = @Original_id) AND ((@IsNull_type = 1 AND [type] IS NULL) OR ([type] = @Original_type)) AND ((@IsNull_dea_cust_id = 1 AND [dea_cust_id] IS NULL) OR ([dea_cust_id] = @Original_dea_cust_id)) AND ((@IsNull_grandTotal = 1 AND [grandTotal] IS NULL) OR ([grandTotal] = @Original_grandTotal)) AND ((@IsNull_transaction_date = 1 AND [transaction_date] IS NULL) OR ([transaction_date] = @Original_transaction_date)) AND ((@IsNull_tax = 1 AND [tax] IS NULL) OR ([tax] = @Original_tax)) AND ((@IsNull_discount = 1 AND [discount] IS NULL) OR ([discount] = @Original_discount)) AND ((@IsNull_added_by = 1 AND [added_by] IS NULL) OR ([added_by] = @Original_added_by)));
  13280. SELECT id, type, dea_cust_id, grandTotal, transaction_date, tax, discount, added_by FROM tbl_transactions WHERE (id = @id)";
  13281. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  13282. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13283. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@dea_cust_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dea_cust_id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13284. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@grandTotal", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "grandTotal", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13285. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@transaction_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "transaction_date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13286. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@tax", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "tax", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13287. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@discount", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "discount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13288. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13289. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13290. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13291. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13292. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_dea_cust_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dea_cust_id", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13293. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_dea_cust_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "dea_cust_id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13294. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_grandTotal", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "grandTotal", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13295. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_grandTotal", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "grandTotal", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13296. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_transaction_date", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "transaction_date", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13297. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_transaction_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "transaction_date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13298. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_tax", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "tax", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13299. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_tax", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "tax", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13300. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_discount", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "discount", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13301. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_discount", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "discount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13302. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13303. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13304. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13305. }
  13306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13308. private void InitConnection() {
  13309. this._connection = new global::System.Data.SqlClient.SqlConnection();
  13310. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  13311. }
  13312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13314. private void InitCommandCollection() {
  13315. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  13316. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  13317. this._commandCollection[0].Connection = this.Connection;
  13318. this._commandCollection[0].CommandText = "SELECT id, type, dea_cust_id, grandTotal, transaction_date, tax, discount, added_" +
  13319. "by FROM dbo.tbl_transactions";
  13320. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  13321. }
  13322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13324. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13325. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  13326. public virtual int Fill(DataSet1.tbl_transactionsDataTable dataTable) {
  13327. this.Adapter.SelectCommand = this.CommandCollection[0];
  13328. if ((this.ClearBeforeFill == true)) {
  13329. dataTable.Clear();
  13330. }
  13331. int returnValue = this.Adapter.Fill(dataTable);
  13332. return returnValue;
  13333. }
  13334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13336. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13337. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  13338. public virtual DataSet1.tbl_transactionsDataTable GetData() {
  13339. this.Adapter.SelectCommand = this.CommandCollection[0];
  13340. DataSet1.tbl_transactionsDataTable dataTable = new DataSet1.tbl_transactionsDataTable();
  13341. this.Adapter.Fill(dataTable);
  13342. return dataTable;
  13343. }
  13344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13346. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13347. public virtual int Update(DataSet1.tbl_transactionsDataTable dataTable) {
  13348. return this.Adapter.Update(dataTable);
  13349. }
  13350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13352. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13353. public virtual int Update(DataSet1 dataSet) {
  13354. return this.Adapter.Update(dataSet, "tbl_transactions");
  13355. }
  13356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13358. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13359. public virtual int Update(global::System.Data.DataRow dataRow) {
  13360. return this.Adapter.Update(new global::System.Data.DataRow[] {
  13361. dataRow});
  13362. }
  13363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13365. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13366. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  13367. return this.Adapter.Update(dataRows);
  13368. }
  13369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13371. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13372. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  13373. public virtual int Delete(int Original_id, string Original_type, global::System.Nullable<int> Original_dea_cust_id, global::System.Nullable<decimal> Original_grandTotal, global::System.Nullable<global::System.DateTime> Original_transaction_date, global::System.Nullable<decimal> Original_tax, global::System.Nullable<decimal> Original_discount, global::System.Nullable<int> Original_added_by) {
  13374. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  13375. if ((Original_type == null)) {
  13376. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  13377. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  13378. }
  13379. else {
  13380. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  13381. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_type));
  13382. }
  13383. if ((Original_dea_cust_id.HasValue == true)) {
  13384. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  13385. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_dea_cust_id.Value));
  13386. }
  13387. else {
  13388. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  13389. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  13390. }
  13391. if ((Original_grandTotal.HasValue == true)) {
  13392. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  13393. this.Adapter.DeleteCommand.Parameters[6].Value = ((decimal)(Original_grandTotal.Value));
  13394. }
  13395. else {
  13396. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  13397. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  13398. }
  13399. if ((Original_transaction_date.HasValue == true)) {
  13400. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  13401. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_transaction_date.Value));
  13402. }
  13403. else {
  13404. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  13405. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  13406. }
  13407. if ((Original_tax.HasValue == true)) {
  13408. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  13409. this.Adapter.DeleteCommand.Parameters[10].Value = ((decimal)(Original_tax.Value));
  13410. }
  13411. else {
  13412. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  13413. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  13414. }
  13415. if ((Original_discount.HasValue == true)) {
  13416. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  13417. this.Adapter.DeleteCommand.Parameters[12].Value = ((decimal)(Original_discount.Value));
  13418. }
  13419. else {
  13420. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  13421. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  13422. }
  13423. if ((Original_added_by.HasValue == true)) {
  13424. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  13425. this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_added_by.Value));
  13426. }
  13427. else {
  13428. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  13429. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  13430. }
  13431. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  13432. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  13433. != global::System.Data.ConnectionState.Open)) {
  13434. this.Adapter.DeleteCommand.Connection.Open();
  13435. }
  13436. try {
  13437. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  13438. return returnValue;
  13439. }
  13440. finally {
  13441. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  13442. this.Adapter.DeleteCommand.Connection.Close();
  13443. }
  13444. }
  13445. }
  13446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13448. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13449. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  13450. public virtual int Insert(string type, global::System.Nullable<int> dea_cust_id, global::System.Nullable<decimal> grandTotal, global::System.Nullable<global::System.DateTime> transaction_date, global::System.Nullable<decimal> tax, global::System.Nullable<decimal> discount, global::System.Nullable<int> added_by) {
  13451. if ((type == null)) {
  13452. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  13453. }
  13454. else {
  13455. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(type));
  13456. }
  13457. if ((dea_cust_id.HasValue == true)) {
  13458. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(dea_cust_id.Value));
  13459. }
  13460. else {
  13461. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  13462. }
  13463. if ((grandTotal.HasValue == true)) {
  13464. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(grandTotal.Value));
  13465. }
  13466. else {
  13467. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  13468. }
  13469. if ((transaction_date.HasValue == true)) {
  13470. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(transaction_date.Value));
  13471. }
  13472. else {
  13473. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  13474. }
  13475. if ((tax.HasValue == true)) {
  13476. this.Adapter.InsertCommand.Parameters[4].Value = ((decimal)(tax.Value));
  13477. }
  13478. else {
  13479. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  13480. }
  13481. if ((discount.HasValue == true)) {
  13482. this.Adapter.InsertCommand.Parameters[5].Value = ((decimal)(discount.Value));
  13483. }
  13484. else {
  13485. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  13486. }
  13487. if ((added_by.HasValue == true)) {
  13488. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(added_by.Value));
  13489. }
  13490. else {
  13491. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  13492. }
  13493. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  13494. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  13495. != global::System.Data.ConnectionState.Open)) {
  13496. this.Adapter.InsertCommand.Connection.Open();
  13497. }
  13498. try {
  13499. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  13500. return returnValue;
  13501. }
  13502. finally {
  13503. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  13504. this.Adapter.InsertCommand.Connection.Close();
  13505. }
  13506. }
  13507. }
  13508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13510. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13511. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  13512. public virtual int Update(
  13513. string type,
  13514. global::System.Nullable<int> dea_cust_id,
  13515. global::System.Nullable<decimal> grandTotal,
  13516. global::System.Nullable<global::System.DateTime> transaction_date,
  13517. global::System.Nullable<decimal> tax,
  13518. global::System.Nullable<decimal> discount,
  13519. global::System.Nullable<int> added_by,
  13520. int Original_id,
  13521. string Original_type,
  13522. global::System.Nullable<int> Original_dea_cust_id,
  13523. global::System.Nullable<decimal> Original_grandTotal,
  13524. global::System.Nullable<global::System.DateTime> Original_transaction_date,
  13525. global::System.Nullable<decimal> Original_tax,
  13526. global::System.Nullable<decimal> Original_discount,
  13527. global::System.Nullable<int> Original_added_by,
  13528. int id) {
  13529. if ((type == null)) {
  13530. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  13531. }
  13532. else {
  13533. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(type));
  13534. }
  13535. if ((dea_cust_id.HasValue == true)) {
  13536. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(dea_cust_id.Value));
  13537. }
  13538. else {
  13539. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  13540. }
  13541. if ((grandTotal.HasValue == true)) {
  13542. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(grandTotal.Value));
  13543. }
  13544. else {
  13545. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  13546. }
  13547. if ((transaction_date.HasValue == true)) {
  13548. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(transaction_date.Value));
  13549. }
  13550. else {
  13551. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  13552. }
  13553. if ((tax.HasValue == true)) {
  13554. this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(tax.Value));
  13555. }
  13556. else {
  13557. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  13558. }
  13559. if ((discount.HasValue == true)) {
  13560. this.Adapter.UpdateCommand.Parameters[5].Value = ((decimal)(discount.Value));
  13561. }
  13562. else {
  13563. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  13564. }
  13565. if ((added_by.HasValue == true)) {
  13566. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(added_by.Value));
  13567. }
  13568. else {
  13569. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  13570. }
  13571. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_id));
  13572. if ((Original_type == null)) {
  13573. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  13574. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  13575. }
  13576. else {
  13577. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  13578. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_type));
  13579. }
  13580. if ((Original_dea_cust_id.HasValue == true)) {
  13581. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  13582. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_dea_cust_id.Value));
  13583. }
  13584. else {
  13585. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  13586. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  13587. }
  13588. if ((Original_grandTotal.HasValue == true)) {
  13589. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  13590. this.Adapter.UpdateCommand.Parameters[13].Value = ((decimal)(Original_grandTotal.Value));
  13591. }
  13592. else {
  13593. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  13594. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  13595. }
  13596. if ((Original_transaction_date.HasValue == true)) {
  13597. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  13598. this.Adapter.UpdateCommand.Parameters[15].Value = ((System.DateTime)(Original_transaction_date.Value));
  13599. }
  13600. else {
  13601. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  13602. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  13603. }
  13604. if ((Original_tax.HasValue == true)) {
  13605. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  13606. this.Adapter.UpdateCommand.Parameters[17].Value = ((decimal)(Original_tax.Value));
  13607. }
  13608. else {
  13609. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  13610. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  13611. }
  13612. if ((Original_discount.HasValue == true)) {
  13613. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  13614. this.Adapter.UpdateCommand.Parameters[19].Value = ((decimal)(Original_discount.Value));
  13615. }
  13616. else {
  13617. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  13618. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  13619. }
  13620. if ((Original_added_by.HasValue == true)) {
  13621. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  13622. this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_added_by.Value));
  13623. }
  13624. else {
  13625. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  13626. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  13627. }
  13628. this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(id));
  13629. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  13630. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  13631. != global::System.Data.ConnectionState.Open)) {
  13632. this.Adapter.UpdateCommand.Connection.Open();
  13633. }
  13634. try {
  13635. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  13636. return returnValue;
  13637. }
  13638. finally {
  13639. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  13640. this.Adapter.UpdateCommand.Connection.Close();
  13641. }
  13642. }
  13643. }
  13644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13646. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13647. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  13648. public virtual int Update(string type, global::System.Nullable<int> dea_cust_id, global::System.Nullable<decimal> grandTotal, global::System.Nullable<global::System.DateTime> transaction_date, global::System.Nullable<decimal> tax, global::System.Nullable<decimal> discount, global::System.Nullable<int> added_by, int Original_id, string Original_type, global::System.Nullable<int> Original_dea_cust_id, global::System.Nullable<decimal> Original_grandTotal, global::System.Nullable<global::System.DateTime> Original_transaction_date, global::System.Nullable<decimal> Original_tax, global::System.Nullable<decimal> Original_discount, global::System.Nullable<int> Original_added_by) {
  13649. return this.Update(type, dea_cust_id, grandTotal, transaction_date, tax, discount, added_by, Original_id, Original_type, Original_dea_cust_id, Original_grandTotal, Original_transaction_date, Original_tax, Original_discount, Original_added_by, Original_id);
  13650. }
  13651. }
  13652. /// <summary>
  13653. ///Represents the connection and commands used to retrieve and save data.
  13654. ///</summary>
  13655. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  13656. [global::System.ComponentModel.ToolboxItem(true)]
  13657. [global::System.ComponentModel.DataObjectAttribute(true)]
  13658. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  13659. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  13660. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13661. public partial class tbl_usersTableAdapter : global::System.ComponentModel.Component {
  13662. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  13663. private global::System.Data.SqlClient.SqlConnection _connection;
  13664. private global::System.Data.SqlClient.SqlTransaction _transaction;
  13665. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  13666. private bool _clearBeforeFill;
  13667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13669. public tbl_usersTableAdapter() {
  13670. this.ClearBeforeFill = true;
  13671. }
  13672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13674. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  13675. get {
  13676. if ((this._adapter == null)) {
  13677. this.InitAdapter();
  13678. }
  13679. return this._adapter;
  13680. }
  13681. }
  13682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13684. internal global::System.Data.SqlClient.SqlConnection Connection {
  13685. get {
  13686. if ((this._connection == null)) {
  13687. this.InitConnection();
  13688. }
  13689. return this._connection;
  13690. }
  13691. set {
  13692. this._connection = value;
  13693. if ((this.Adapter.InsertCommand != null)) {
  13694. this.Adapter.InsertCommand.Connection = value;
  13695. }
  13696. if ((this.Adapter.DeleteCommand != null)) {
  13697. this.Adapter.DeleteCommand.Connection = value;
  13698. }
  13699. if ((this.Adapter.UpdateCommand != null)) {
  13700. this.Adapter.UpdateCommand.Connection = value;
  13701. }
  13702. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13703. if ((this.CommandCollection[i] != null)) {
  13704. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  13705. }
  13706. }
  13707. }
  13708. }
  13709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13711. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  13712. get {
  13713. return this._transaction;
  13714. }
  13715. set {
  13716. this._transaction = value;
  13717. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  13718. this.CommandCollection[i].Transaction = this._transaction;
  13719. }
  13720. if (((this.Adapter != null)
  13721. && (this.Adapter.DeleteCommand != null))) {
  13722. this.Adapter.DeleteCommand.Transaction = this._transaction;
  13723. }
  13724. if (((this.Adapter != null)
  13725. && (this.Adapter.InsertCommand != null))) {
  13726. this.Adapter.InsertCommand.Transaction = this._transaction;
  13727. }
  13728. if (((this.Adapter != null)
  13729. && (this.Adapter.UpdateCommand != null))) {
  13730. this.Adapter.UpdateCommand.Transaction = this._transaction;
  13731. }
  13732. }
  13733. }
  13734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13736. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  13737. get {
  13738. if ((this._commandCollection == null)) {
  13739. this.InitCommandCollection();
  13740. }
  13741. return this._commandCollection;
  13742. }
  13743. }
  13744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13746. public bool ClearBeforeFill {
  13747. get {
  13748. return this._clearBeforeFill;
  13749. }
  13750. set {
  13751. this._clearBeforeFill = value;
  13752. }
  13753. }
  13754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13756. private void InitAdapter() {
  13757. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  13758. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  13759. tableMapping.SourceTable = "Table";
  13760. tableMapping.DataSetTable = "tbl_users";
  13761. tableMapping.ColumnMappings.Add("id", "id");
  13762. tableMapping.ColumnMappings.Add("first_name", "first_name");
  13763. tableMapping.ColumnMappings.Add("last_name", "last_name");
  13764. tableMapping.ColumnMappings.Add("email", "email");
  13765. tableMapping.ColumnMappings.Add("username", "username");
  13766. tableMapping.ColumnMappings.Add("password", "password");
  13767. tableMapping.ColumnMappings.Add("contact", "contact");
  13768. tableMapping.ColumnMappings.Add("address", "address");
  13769. tableMapping.ColumnMappings.Add("gender", "gender");
  13770. tableMapping.ColumnMappings.Add("user_type", "user_type");
  13771. tableMapping.ColumnMappings.Add("added_date", "added_date");
  13772. tableMapping.ColumnMappings.Add("added_by", "added_by");
  13773. this._adapter.TableMappings.Add(tableMapping);
  13774. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  13775. this._adapter.DeleteCommand.Connection = this.Connection;
  13776. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[tbl_users] WHERE (([id] = @Original_id) AND ((@IsNull_first_name = 1 AND [first_name] IS NULL) OR ([first_name] = @Original_first_name)) AND ((@IsNull_last_name = 1 AND [last_name] IS NULL) OR ([last_name] = @Original_last_name)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_username = 1 AND [username] IS NULL) OR ([username] = @Original_username)) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)) AND ((@IsNull_contact = 1 AND [contact] IS NULL) OR ([contact] = @Original_contact)) AND ((@IsNull_gender = 1 AND [gender] IS NULL) OR ([gender] = @Original_gender)) AND ((@IsNull_user_type = 1 AND [user_type] IS NULL) OR ([user_type] = @Original_user_type)) AND ((@IsNull_added_date = 1 AND [added_date] IS NULL) OR ([added_date] = @Original_added_date)) AND ((@IsNull_added_by = 1 AND [added_by] IS NULL) OR ([added_by] = @Original_added_by)))";
  13777. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  13778. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13779. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_first_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "first_name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13780. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_first_name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "first_name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13781. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_last_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "last_name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13782. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_last_name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "last_name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13783. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13784. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13785. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_username", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13786. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_username", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13787. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13788. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_password", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13789. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_contact", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "contact", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13790. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_contact", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "contact", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13791. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_gender", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gender", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13792. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gender", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gender", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13793. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_user_type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "user_type", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13794. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_user_type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "user_type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13795. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_date", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13796. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13797. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13798. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13799. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  13800. this._adapter.InsertCommand.Connection = this.Connection;
  13801. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[tbl_users] ([first_name], [last_name], [email], [username], [password], [contact], [address], [gender], [user_type], [added_date], [added_by]) VALUES (@first_name, @last_name, @email, @username, @password, @contact, @address, @gender, @user_type, @added_date, @added_by);
  13802. SELECT id, first_name, last_name, email, username, password, contact, address, gender, user_type, added_date, added_by FROM tbl_users WHERE (id = SCOPE_IDENTITY())";
  13803. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  13804. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@first_name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "first_name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13805. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@last_name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "last_name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13806. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13807. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@username", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13808. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@password", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13809. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@contact", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "contact", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13810. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@address", global::System.Data.SqlDbType.Text, 0, global::System.Data.ParameterDirection.Input, 0, 0, "address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13811. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gender", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gender", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13812. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@user_type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "user_type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13813. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13814. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13815. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  13816. this._adapter.UpdateCommand.Connection = this.Connection;
  13817. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[tbl_users] SET [first_name] = @first_name, [last_name] = @last_name, [email] = @email, [username] = @username, [password] = @password, [contact] = @contact, [address] = @address, [gender] = @gender, [user_type] = @user_type, [added_date] = @added_date, [added_by] = @added_by WHERE (([id] = @Original_id) AND ((@IsNull_first_name = 1 AND [first_name] IS NULL) OR ([first_name] = @Original_first_name)) AND ((@IsNull_last_name = 1 AND [last_name] IS NULL) OR ([last_name] = @Original_last_name)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_username = 1 AND [username] IS NULL) OR ([username] = @Original_username)) AND ((@IsNull_password = 1 AND [password] IS NULL) OR ([password] = @Original_password)) AND ((@IsNull_contact = 1 AND [contact] IS NULL) OR ([contact] = @Original_contact)) AND ((@IsNull_gender = 1 AND [gender] IS NULL) OR ([gender] = @Original_gender)) AND ((@IsNull_user_type = 1 AND [user_type] IS NULL) OR ([user_type] = @Original_user_type)) AND ((@IsNull_added_date = 1 AND [added_date] IS NULL) OR ([added_date] = @Original_added_date)) AND ((@IsNull_added_by = 1 AND [added_by] IS NULL) OR ([added_by] = @Original_added_by)));
  13818. SELECT id, first_name, last_name, email, username, password, contact, address, gender, user_type, added_date, added_by FROM tbl_users WHERE (id = @id)";
  13819. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  13820. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@first_name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "first_name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13821. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@last_name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "last_name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13822. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13823. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@username", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13824. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@password", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13825. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@contact", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "contact", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13826. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@address", global::System.Data.SqlDbType.Text, 0, global::System.Data.ParameterDirection.Input, 0, 0, "address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13827. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gender", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gender", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13828. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@user_type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "user_type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13829. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13830. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13831. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13832. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_first_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "first_name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13833. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_first_name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "first_name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13834. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_last_name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "last_name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13835. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_last_name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "last_name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13836. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13837. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13838. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_username", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13839. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_username", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "username", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13840. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13841. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_password", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13842. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_contact", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "contact", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13843. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_contact", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "contact", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13844. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_gender", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gender", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13845. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_gender", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "gender", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13846. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_user_type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "user_type", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13847. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_user_type", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "user_type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13848. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_date", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13849. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13850. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  13851. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_added_by", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "added_by", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  13852. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  13853. }
  13854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13856. private void InitConnection() {
  13857. this._connection = new global::System.Data.SqlClient.SqlConnection();
  13858. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  13859. }
  13860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13862. private void InitCommandCollection() {
  13863. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  13864. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  13865. this._commandCollection[0].Connection = this.Connection;
  13866. this._commandCollection[0].CommandText = "SELECT id, first_name, last_name, email, username, password, contact, address, ge" +
  13867. "nder, user_type, added_date, added_by FROM dbo.tbl_users";
  13868. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  13869. }
  13870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13872. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13873. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  13874. public virtual int Fill(DataSet1.tbl_usersDataTable dataTable) {
  13875. this.Adapter.SelectCommand = this.CommandCollection[0];
  13876. if ((this.ClearBeforeFill == true)) {
  13877. dataTable.Clear();
  13878. }
  13879. int returnValue = this.Adapter.Fill(dataTable);
  13880. return returnValue;
  13881. }
  13882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13884. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13885. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  13886. public virtual DataSet1.tbl_usersDataTable GetData() {
  13887. this.Adapter.SelectCommand = this.CommandCollection[0];
  13888. DataSet1.tbl_usersDataTable dataTable = new DataSet1.tbl_usersDataTable();
  13889. this.Adapter.Fill(dataTable);
  13890. return dataTable;
  13891. }
  13892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13894. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13895. public virtual int Update(DataSet1.tbl_usersDataTable dataTable) {
  13896. return this.Adapter.Update(dataTable);
  13897. }
  13898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13900. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13901. public virtual int Update(DataSet1 dataSet) {
  13902. return this.Adapter.Update(dataSet, "tbl_users");
  13903. }
  13904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13906. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13907. public virtual int Update(global::System.Data.DataRow dataRow) {
  13908. return this.Adapter.Update(new global::System.Data.DataRow[] {
  13909. dataRow});
  13910. }
  13911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13913. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13914. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  13915. return this.Adapter.Update(dataRows);
  13916. }
  13917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  13918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  13919. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  13920. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  13921. public virtual int Delete(int Original_id, string Original_first_name, string Original_last_name, string Original_email, string Original_username, string Original_password, string Original_contact, string Original_gender, string Original_user_type, global::System.Nullable<global::System.DateTime> Original_added_date, global::System.Nullable<int> Original_added_by) {
  13922. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id));
  13923. if ((Original_first_name == null)) {
  13924. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  13925. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  13926. }
  13927. else {
  13928. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  13929. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_first_name));
  13930. }
  13931. if ((Original_last_name == null)) {
  13932. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  13933. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  13934. }
  13935. else {
  13936. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  13937. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_last_name));
  13938. }
  13939. if ((Original_email == null)) {
  13940. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  13941. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  13942. }
  13943. else {
  13944. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  13945. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_email));
  13946. }
  13947. if ((Original_username == null)) {
  13948. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  13949. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  13950. }
  13951. else {
  13952. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  13953. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_username));
  13954. }
  13955. if ((Original_password == null)) {
  13956. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  13957. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  13958. }
  13959. else {
  13960. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  13961. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_password));
  13962. }
  13963. if ((Original_contact == null)) {
  13964. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  13965. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  13966. }
  13967. else {
  13968. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  13969. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_contact));
  13970. }
  13971. if ((Original_gender == null)) {
  13972. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  13973. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  13974. }
  13975. else {
  13976. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  13977. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_gender));
  13978. }
  13979. if ((Original_user_type == null)) {
  13980. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
  13981. this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
  13982. }
  13983. else {
  13984. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
  13985. this.Adapter.DeleteCommand.Parameters[16].Value = ((string)(Original_user_type));
  13986. }
  13987. if ((Original_added_date.HasValue == true)) {
  13988. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
  13989. this.Adapter.DeleteCommand.Parameters[18].Value = ((System.DateTime)(Original_added_date.Value));
  13990. }
  13991. else {
  13992. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
  13993. this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
  13994. }
  13995. if ((Original_added_by.HasValue == true)) {
  13996. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
  13997. this.Adapter.DeleteCommand.Parameters[20].Value = ((int)(Original_added_by.Value));
  13998. }
  13999. else {
  14000. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
  14001. this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
  14002. }
  14003. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  14004. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  14005. != global::System.Data.ConnectionState.Open)) {
  14006. this.Adapter.DeleteCommand.Connection.Open();
  14007. }
  14008. try {
  14009. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  14010. return returnValue;
  14011. }
  14012. finally {
  14013. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  14014. this.Adapter.DeleteCommand.Connection.Close();
  14015. }
  14016. }
  14017. }
  14018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14020. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14021. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  14022. public virtual int Insert(string first_name, string last_name, string email, string username, string password, string contact, string address, string gender, string user_type, global::System.Nullable<global::System.DateTime> added_date, global::System.Nullable<int> added_by) {
  14023. if ((first_name == null)) {
  14024. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  14025. }
  14026. else {
  14027. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(first_name));
  14028. }
  14029. if ((last_name == null)) {
  14030. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  14031. }
  14032. else {
  14033. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(last_name));
  14034. }
  14035. if ((email == null)) {
  14036. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  14037. }
  14038. else {
  14039. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(email));
  14040. }
  14041. if ((username == null)) {
  14042. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  14043. }
  14044. else {
  14045. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(username));
  14046. }
  14047. if ((password == null)) {
  14048. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  14049. }
  14050. else {
  14051. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(password));
  14052. }
  14053. if ((contact == null)) {
  14054. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  14055. }
  14056. else {
  14057. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(contact));
  14058. }
  14059. if ((address == null)) {
  14060. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  14061. }
  14062. else {
  14063. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(address));
  14064. }
  14065. if ((gender == null)) {
  14066. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  14067. }
  14068. else {
  14069. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(gender));
  14070. }
  14071. if ((user_type == null)) {
  14072. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  14073. }
  14074. else {
  14075. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(user_type));
  14076. }
  14077. if ((added_date.HasValue == true)) {
  14078. this.Adapter.InsertCommand.Parameters[9].Value = ((System.DateTime)(added_date.Value));
  14079. }
  14080. else {
  14081. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  14082. }
  14083. if ((added_by.HasValue == true)) {
  14084. this.Adapter.InsertCommand.Parameters[10].Value = ((int)(added_by.Value));
  14085. }
  14086. else {
  14087. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  14088. }
  14089. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  14090. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  14091. != global::System.Data.ConnectionState.Open)) {
  14092. this.Adapter.InsertCommand.Connection.Open();
  14093. }
  14094. try {
  14095. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  14096. return returnValue;
  14097. }
  14098. finally {
  14099. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  14100. this.Adapter.InsertCommand.Connection.Close();
  14101. }
  14102. }
  14103. }
  14104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14106. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14107. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  14108. public virtual int Update(
  14109. string first_name,
  14110. string last_name,
  14111. string email,
  14112. string username,
  14113. string password,
  14114. string contact,
  14115. string address,
  14116. string gender,
  14117. string user_type,
  14118. global::System.Nullable<global::System.DateTime> added_date,
  14119. global::System.Nullable<int> added_by,
  14120. int Original_id,
  14121. string Original_first_name,
  14122. string Original_last_name,
  14123. string Original_email,
  14124. string Original_username,
  14125. string Original_password,
  14126. string Original_contact,
  14127. string Original_gender,
  14128. string Original_user_type,
  14129. global::System.Nullable<global::System.DateTime> Original_added_date,
  14130. global::System.Nullable<int> Original_added_by,
  14131. int id) {
  14132. if ((first_name == null)) {
  14133. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  14134. }
  14135. else {
  14136. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(first_name));
  14137. }
  14138. if ((last_name == null)) {
  14139. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  14140. }
  14141. else {
  14142. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(last_name));
  14143. }
  14144. if ((email == null)) {
  14145. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  14146. }
  14147. else {
  14148. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(email));
  14149. }
  14150. if ((username == null)) {
  14151. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  14152. }
  14153. else {
  14154. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(username));
  14155. }
  14156. if ((password == null)) {
  14157. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  14158. }
  14159. else {
  14160. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(password));
  14161. }
  14162. if ((contact == null)) {
  14163. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  14164. }
  14165. else {
  14166. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(contact));
  14167. }
  14168. if ((address == null)) {
  14169. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  14170. }
  14171. else {
  14172. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(address));
  14173. }
  14174. if ((gender == null)) {
  14175. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  14176. }
  14177. else {
  14178. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(gender));
  14179. }
  14180. if ((user_type == null)) {
  14181. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  14182. }
  14183. else {
  14184. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(user_type));
  14185. }
  14186. if ((added_date.HasValue == true)) {
  14187. this.Adapter.UpdateCommand.Parameters[9].Value = ((System.DateTime)(added_date.Value));
  14188. }
  14189. else {
  14190. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  14191. }
  14192. if ((added_by.HasValue == true)) {
  14193. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(added_by.Value));
  14194. }
  14195. else {
  14196. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  14197. }
  14198. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_id));
  14199. if ((Original_first_name == null)) {
  14200. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  14201. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  14202. }
  14203. else {
  14204. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  14205. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_first_name));
  14206. }
  14207. if ((Original_last_name == null)) {
  14208. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  14209. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  14210. }
  14211. else {
  14212. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  14213. this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_last_name));
  14214. }
  14215. if ((Original_email == null)) {
  14216. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  14217. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  14218. }
  14219. else {
  14220. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  14221. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_email));
  14222. }
  14223. if ((Original_username == null)) {
  14224. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  14225. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  14226. }
  14227. else {
  14228. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  14229. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_username));
  14230. }
  14231. if ((Original_password == null)) {
  14232. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  14233. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  14234. }
  14235. else {
  14236. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  14237. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_password));
  14238. }
  14239. if ((Original_contact == null)) {
  14240. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
  14241. this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
  14242. }
  14243. else {
  14244. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
  14245. this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_contact));
  14246. }
  14247. if ((Original_gender == null)) {
  14248. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
  14249. this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
  14250. }
  14251. else {
  14252. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
  14253. this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_gender));
  14254. }
  14255. if ((Original_user_type == null)) {
  14256. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
  14257. this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
  14258. }
  14259. else {
  14260. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
  14261. this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_user_type));
  14262. }
  14263. if ((Original_added_date.HasValue == true)) {
  14264. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
  14265. this.Adapter.UpdateCommand.Parameters[29].Value = ((System.DateTime)(Original_added_date.Value));
  14266. }
  14267. else {
  14268. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
  14269. this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
  14270. }
  14271. if ((Original_added_by.HasValue == true)) {
  14272. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
  14273. this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_added_by.Value));
  14274. }
  14275. else {
  14276. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
  14277. this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
  14278. }
  14279. this.Adapter.UpdateCommand.Parameters[32].Value = ((int)(id));
  14280. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  14281. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  14282. != global::System.Data.ConnectionState.Open)) {
  14283. this.Adapter.UpdateCommand.Connection.Open();
  14284. }
  14285. try {
  14286. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  14287. return returnValue;
  14288. }
  14289. finally {
  14290. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  14291. this.Adapter.UpdateCommand.Connection.Close();
  14292. }
  14293. }
  14294. }
  14295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14297. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14298. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  14299. public virtual int Update(
  14300. string first_name,
  14301. string last_name,
  14302. string email,
  14303. string username,
  14304. string password,
  14305. string contact,
  14306. string address,
  14307. string gender,
  14308. string user_type,
  14309. global::System.Nullable<global::System.DateTime> added_date,
  14310. global::System.Nullable<int> added_by,
  14311. int Original_id,
  14312. string Original_first_name,
  14313. string Original_last_name,
  14314. string Original_email,
  14315. string Original_username,
  14316. string Original_password,
  14317. string Original_contact,
  14318. string Original_gender,
  14319. string Original_user_type,
  14320. global::System.Nullable<global::System.DateTime> Original_added_date,
  14321. global::System.Nullable<int> Original_added_by) {
  14322. return this.Update(first_name, last_name, email, username, password, contact, address, gender, user_type, added_date, added_by, Original_id, Original_first_name, Original_last_name, Original_email, Original_username, Original_password, Original_contact, Original_gender, Original_user_type, Original_added_date, Original_added_by, Original_id);
  14323. }
  14324. }
  14325. /// <summary>
  14326. ///Represents the connection and commands used to retrieve and save data.
  14327. ///</summary>
  14328. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  14329. [global::System.ComponentModel.ToolboxItem(true)]
  14330. [global::System.ComponentModel.DataObjectAttribute(true)]
  14331. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  14332. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  14333. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14334. public partial class TovariTableAdapter : global::System.ComponentModel.Component {
  14335. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  14336. private global::System.Data.SqlClient.SqlConnection _connection;
  14337. private global::System.Data.SqlClient.SqlTransaction _transaction;
  14338. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  14339. private bool _clearBeforeFill;
  14340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14342. public TovariTableAdapter() {
  14343. this.ClearBeforeFill = true;
  14344. }
  14345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14347. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  14348. get {
  14349. if ((this._adapter == null)) {
  14350. this.InitAdapter();
  14351. }
  14352. return this._adapter;
  14353. }
  14354. }
  14355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14357. internal global::System.Data.SqlClient.SqlConnection Connection {
  14358. get {
  14359. if ((this._connection == null)) {
  14360. this.InitConnection();
  14361. }
  14362. return this._connection;
  14363. }
  14364. set {
  14365. this._connection = value;
  14366. if ((this.Adapter.InsertCommand != null)) {
  14367. this.Adapter.InsertCommand.Connection = value;
  14368. }
  14369. if ((this.Adapter.DeleteCommand != null)) {
  14370. this.Adapter.DeleteCommand.Connection = value;
  14371. }
  14372. if ((this.Adapter.UpdateCommand != null)) {
  14373. this.Adapter.UpdateCommand.Connection = value;
  14374. }
  14375. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  14376. if ((this.CommandCollection[i] != null)) {
  14377. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  14378. }
  14379. }
  14380. }
  14381. }
  14382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14384. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  14385. get {
  14386. return this._transaction;
  14387. }
  14388. set {
  14389. this._transaction = value;
  14390. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  14391. this.CommandCollection[i].Transaction = this._transaction;
  14392. }
  14393. if (((this.Adapter != null)
  14394. && (this.Adapter.DeleteCommand != null))) {
  14395. this.Adapter.DeleteCommand.Transaction = this._transaction;
  14396. }
  14397. if (((this.Adapter != null)
  14398. && (this.Adapter.InsertCommand != null))) {
  14399. this.Adapter.InsertCommand.Transaction = this._transaction;
  14400. }
  14401. if (((this.Adapter != null)
  14402. && (this.Adapter.UpdateCommand != null))) {
  14403. this.Adapter.UpdateCommand.Transaction = this._transaction;
  14404. }
  14405. }
  14406. }
  14407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14409. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  14410. get {
  14411. if ((this._commandCollection == null)) {
  14412. this.InitCommandCollection();
  14413. }
  14414. return this._commandCollection;
  14415. }
  14416. }
  14417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14419. public bool ClearBeforeFill {
  14420. get {
  14421. return this._clearBeforeFill;
  14422. }
  14423. set {
  14424. this._clearBeforeFill = value;
  14425. }
  14426. }
  14427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14429. private void InitAdapter() {
  14430. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  14431. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  14432. tableMapping.SourceTable = "Table";
  14433. tableMapping.DataSetTable = "Tovari";
  14434. tableMapping.ColumnMappings.Add("Товар", "Товар");
  14435. this._adapter.TableMappings.Add(tableMapping);
  14436. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  14437. this._adapter.InsertCommand.Connection = this.Connection;
  14438. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Tovari] ([Товар]) VALUES (@Товар)";
  14439. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  14440. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Товар", global::System.Data.SqlDbType.Text, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Товар", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14441. }
  14442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14444. private void InitConnection() {
  14445. this._connection = new global::System.Data.SqlClient.SqlConnection();
  14446. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  14447. }
  14448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14450. private void InitCommandCollection() {
  14451. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  14452. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  14453. this._commandCollection[0].Connection = this.Connection;
  14454. this._commandCollection[0].CommandText = "SELECT Товар FROM dbo.Tovari";
  14455. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  14456. }
  14457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14459. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14460. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  14461. public virtual int Fill(DataSet1.TovariDataTable dataTable) {
  14462. this.Adapter.SelectCommand = this.CommandCollection[0];
  14463. if ((this.ClearBeforeFill == true)) {
  14464. dataTable.Clear();
  14465. }
  14466. int returnValue = this.Adapter.Fill(dataTable);
  14467. return returnValue;
  14468. }
  14469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14471. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14472. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  14473. public virtual DataSet1.TovariDataTable GetData() {
  14474. this.Adapter.SelectCommand = this.CommandCollection[0];
  14475. DataSet1.TovariDataTable dataTable = new DataSet1.TovariDataTable();
  14476. this.Adapter.Fill(dataTable);
  14477. return dataTable;
  14478. }
  14479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14481. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14482. public virtual int Update(DataSet1.TovariDataTable dataTable) {
  14483. return this.Adapter.Update(dataTable);
  14484. }
  14485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14487. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14488. public virtual int Update(DataSet1 dataSet) {
  14489. return this.Adapter.Update(dataSet, "Tovari");
  14490. }
  14491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14493. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14494. public virtual int Update(global::System.Data.DataRow dataRow) {
  14495. return this.Adapter.Update(new global::System.Data.DataRow[] {
  14496. dataRow});
  14497. }
  14498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14500. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14501. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  14502. return this.Adapter.Update(dataRows);
  14503. }
  14504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14506. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14507. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  14508. public virtual int Insert(string Товар) {
  14509. if ((Товар == null)) {
  14510. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  14511. }
  14512. else {
  14513. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Товар));
  14514. }
  14515. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  14516. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  14517. != global::System.Data.ConnectionState.Open)) {
  14518. this.Adapter.InsertCommand.Connection.Open();
  14519. }
  14520. try {
  14521. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  14522. return returnValue;
  14523. }
  14524. finally {
  14525. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  14526. this.Adapter.InsertCommand.Connection.Close();
  14527. }
  14528. }
  14529. }
  14530. }
  14531. /// <summary>
  14532. ///Represents the connection and commands used to retrieve and save data.
  14533. ///</summary>
  14534. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  14535. [global::System.ComponentModel.ToolboxItem(true)]
  14536. [global::System.ComponentModel.DataObjectAttribute(true)]
  14537. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  14538. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  14539. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14540. public partial class UserTableAdapter : global::System.ComponentModel.Component {
  14541. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  14542. private global::System.Data.SqlClient.SqlConnection _connection;
  14543. private global::System.Data.SqlClient.SqlTransaction _transaction;
  14544. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  14545. private bool _clearBeforeFill;
  14546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14548. public UserTableAdapter() {
  14549. this.ClearBeforeFill = true;
  14550. }
  14551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14553. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  14554. get {
  14555. if ((this._adapter == null)) {
  14556. this.InitAdapter();
  14557. }
  14558. return this._adapter;
  14559. }
  14560. }
  14561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14563. internal global::System.Data.SqlClient.SqlConnection Connection {
  14564. get {
  14565. if ((this._connection == null)) {
  14566. this.InitConnection();
  14567. }
  14568. return this._connection;
  14569. }
  14570. set {
  14571. this._connection = value;
  14572. if ((this.Adapter.InsertCommand != null)) {
  14573. this.Adapter.InsertCommand.Connection = value;
  14574. }
  14575. if ((this.Adapter.DeleteCommand != null)) {
  14576. this.Adapter.DeleteCommand.Connection = value;
  14577. }
  14578. if ((this.Adapter.UpdateCommand != null)) {
  14579. this.Adapter.UpdateCommand.Connection = value;
  14580. }
  14581. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  14582. if ((this.CommandCollection[i] != null)) {
  14583. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  14584. }
  14585. }
  14586. }
  14587. }
  14588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14590. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  14591. get {
  14592. return this._transaction;
  14593. }
  14594. set {
  14595. this._transaction = value;
  14596. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  14597. this.CommandCollection[i].Transaction = this._transaction;
  14598. }
  14599. if (((this.Adapter != null)
  14600. && (this.Adapter.DeleteCommand != null))) {
  14601. this.Adapter.DeleteCommand.Transaction = this._transaction;
  14602. }
  14603. if (((this.Adapter != null)
  14604. && (this.Adapter.InsertCommand != null))) {
  14605. this.Adapter.InsertCommand.Transaction = this._transaction;
  14606. }
  14607. if (((this.Adapter != null)
  14608. && (this.Adapter.UpdateCommand != null))) {
  14609. this.Adapter.UpdateCommand.Transaction = this._transaction;
  14610. }
  14611. }
  14612. }
  14613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14615. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  14616. get {
  14617. if ((this._commandCollection == null)) {
  14618. this.InitCommandCollection();
  14619. }
  14620. return this._commandCollection;
  14621. }
  14622. }
  14623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14625. public bool ClearBeforeFill {
  14626. get {
  14627. return this._clearBeforeFill;
  14628. }
  14629. set {
  14630. this._clearBeforeFill = value;
  14631. }
  14632. }
  14633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14635. private void InitAdapter() {
  14636. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  14637. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  14638. tableMapping.SourceTable = "Table";
  14639. tableMapping.DataSetTable = "User";
  14640. tableMapping.ColumnMappings.Add("UserID", "UserID");
  14641. tableMapping.ColumnMappings.Add("UserSurname", "UserSurname");
  14642. tableMapping.ColumnMappings.Add("UserName", "UserName");
  14643. tableMapping.ColumnMappings.Add("UserPatronymic", "UserPatronymic");
  14644. tableMapping.ColumnMappings.Add("UserLogin", "UserLogin");
  14645. tableMapping.ColumnMappings.Add("UserPassword", "UserPassword");
  14646. tableMapping.ColumnMappings.Add("UserRole", "UserRole");
  14647. this._adapter.TableMappings.Add(tableMapping);
  14648. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  14649. this._adapter.DeleteCommand.Connection = this.Connection;
  14650. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[User] WHERE (([UserID] = @Original_UserID) AND ([UserSurname] " +
  14651. "= @Original_UserSurname) AND ([UserName] = @Original_UserName) AND ([UserPatrony" +
  14652. "mic] = @Original_UserPatronymic) AND ([UserRole] = @Original_UserRole))";
  14653. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  14654. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14655. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserSurname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserSurname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14656. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14657. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserPatronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPatronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14658. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14659. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  14660. this._adapter.InsertCommand.Connection = this.Connection;
  14661. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[User] ([UserSurname], [UserName], [UserPatronymic], [UserLogin], [UserPassword], [UserRole]) VALUES (@UserSurname, @UserName, @UserPatronymic, @UserLogin, @UserPassword, @UserRole);
  14662. SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole FROM [User] WHERE (UserID = SCOPE_IDENTITY())";
  14663. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  14664. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserSurname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserSurname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14665. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14666. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserPatronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPatronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14667. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserLogin", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserLogin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14668. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserPassword", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPassword", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14669. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14670. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  14671. this._adapter.UpdateCommand.Connection = this.Connection;
  14672. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[User] SET [UserSurname] = @UserSurname, [UserName] = @UserName, [UserPatronymic] = @UserPatronymic, [UserLogin] = @UserLogin, [UserPassword] = @UserPassword, [UserRole] = @UserRole WHERE (([UserID] = @Original_UserID) AND ([UserSurname] = @Original_UserSurname) AND ([UserName] = @Original_UserName) AND ([UserPatronymic] = @Original_UserPatronymic) AND ([UserRole] = @Original_UserRole));
  14673. SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole FROM [User] WHERE (UserID = @UserID)";
  14674. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  14675. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserSurname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserSurname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14676. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14677. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserPatronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPatronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14678. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserLogin", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserLogin", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14679. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserPassword", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPassword", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14680. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14681. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14682. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserSurname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserSurname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14683. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14684. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserPatronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserPatronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14685. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserRole", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserRole", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  14686. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "UserID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  14687. }
  14688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14690. private void InitConnection() {
  14691. this._connection = new global::System.Data.SqlClient.SqlConnection();
  14692. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  14693. }
  14694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14696. private void InitCommandCollection() {
  14697. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  14698. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  14699. this._commandCollection[0].Connection = this.Connection;
  14700. this._commandCollection[0].CommandText = "SELECT UserID, UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, Us" +
  14701. "erRole FROM dbo.[User]";
  14702. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  14703. }
  14704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14706. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14707. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  14708. public virtual int Fill(DataSet1.UserDataTable dataTable) {
  14709. this.Adapter.SelectCommand = this.CommandCollection[0];
  14710. if ((this.ClearBeforeFill == true)) {
  14711. dataTable.Clear();
  14712. }
  14713. int returnValue = this.Adapter.Fill(dataTable);
  14714. return returnValue;
  14715. }
  14716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14718. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14719. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  14720. public virtual DataSet1.UserDataTable GetData() {
  14721. this.Adapter.SelectCommand = this.CommandCollection[0];
  14722. DataSet1.UserDataTable dataTable = new DataSet1.UserDataTable();
  14723. this.Adapter.Fill(dataTable);
  14724. return dataTable;
  14725. }
  14726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14728. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14729. public virtual int Update(DataSet1.UserDataTable dataTable) {
  14730. return this.Adapter.Update(dataTable);
  14731. }
  14732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14734. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14735. public virtual int Update(DataSet1 dataSet) {
  14736. return this.Adapter.Update(dataSet, "User");
  14737. }
  14738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14740. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14741. public virtual int Update(global::System.Data.DataRow dataRow) {
  14742. return this.Adapter.Update(new global::System.Data.DataRow[] {
  14743. dataRow});
  14744. }
  14745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14747. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14748. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  14749. return this.Adapter.Update(dataRows);
  14750. }
  14751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14753. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14754. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  14755. public virtual int Delete(int Original_UserID, string Original_UserSurname, string Original_UserName, string Original_UserPatronymic, int Original_UserRole) {
  14756. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_UserID));
  14757. if ((Original_UserSurname == null)) {
  14758. throw new global::System.ArgumentNullException("Original_UserSurname");
  14759. }
  14760. else {
  14761. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_UserSurname));
  14762. }
  14763. if ((Original_UserName == null)) {
  14764. throw new global::System.ArgumentNullException("Original_UserName");
  14765. }
  14766. else {
  14767. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_UserName));
  14768. }
  14769. if ((Original_UserPatronymic == null)) {
  14770. throw new global::System.ArgumentNullException("Original_UserPatronymic");
  14771. }
  14772. else {
  14773. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_UserPatronymic));
  14774. }
  14775. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_UserRole));
  14776. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  14777. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  14778. != global::System.Data.ConnectionState.Open)) {
  14779. this.Adapter.DeleteCommand.Connection.Open();
  14780. }
  14781. try {
  14782. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  14783. return returnValue;
  14784. }
  14785. finally {
  14786. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  14787. this.Adapter.DeleteCommand.Connection.Close();
  14788. }
  14789. }
  14790. }
  14791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14793. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14794. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  14795. public virtual int Insert(string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword, int UserRole) {
  14796. if ((UserSurname == null)) {
  14797. throw new global::System.ArgumentNullException("UserSurname");
  14798. }
  14799. else {
  14800. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(UserSurname));
  14801. }
  14802. if ((UserName == null)) {
  14803. throw new global::System.ArgumentNullException("UserName");
  14804. }
  14805. else {
  14806. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(UserName));
  14807. }
  14808. if ((UserPatronymic == null)) {
  14809. throw new global::System.ArgumentNullException("UserPatronymic");
  14810. }
  14811. else {
  14812. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(UserPatronymic));
  14813. }
  14814. if ((UserLogin == null)) {
  14815. throw new global::System.ArgumentNullException("UserLogin");
  14816. }
  14817. else {
  14818. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(UserLogin));
  14819. }
  14820. if ((UserPassword == null)) {
  14821. throw new global::System.ArgumentNullException("UserPassword");
  14822. }
  14823. else {
  14824. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(UserPassword));
  14825. }
  14826. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(UserRole));
  14827. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  14828. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  14829. != global::System.Data.ConnectionState.Open)) {
  14830. this.Adapter.InsertCommand.Connection.Open();
  14831. }
  14832. try {
  14833. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  14834. return returnValue;
  14835. }
  14836. finally {
  14837. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  14838. this.Adapter.InsertCommand.Connection.Close();
  14839. }
  14840. }
  14841. }
  14842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14844. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14845. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  14846. public virtual int Update(string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword, int UserRole, int Original_UserID, string Original_UserSurname, string Original_UserName, string Original_UserPatronymic, int Original_UserRole, int UserID) {
  14847. if ((UserSurname == null)) {
  14848. throw new global::System.ArgumentNullException("UserSurname");
  14849. }
  14850. else {
  14851. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(UserSurname));
  14852. }
  14853. if ((UserName == null)) {
  14854. throw new global::System.ArgumentNullException("UserName");
  14855. }
  14856. else {
  14857. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(UserName));
  14858. }
  14859. if ((UserPatronymic == null)) {
  14860. throw new global::System.ArgumentNullException("UserPatronymic");
  14861. }
  14862. else {
  14863. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(UserPatronymic));
  14864. }
  14865. if ((UserLogin == null)) {
  14866. throw new global::System.ArgumentNullException("UserLogin");
  14867. }
  14868. else {
  14869. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(UserLogin));
  14870. }
  14871. if ((UserPassword == null)) {
  14872. throw new global::System.ArgumentNullException("UserPassword");
  14873. }
  14874. else {
  14875. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(UserPassword));
  14876. }
  14877. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(UserRole));
  14878. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_UserID));
  14879. if ((Original_UserSurname == null)) {
  14880. throw new global::System.ArgumentNullException("Original_UserSurname");
  14881. }
  14882. else {
  14883. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_UserSurname));
  14884. }
  14885. if ((Original_UserName == null)) {
  14886. throw new global::System.ArgumentNullException("Original_UserName");
  14887. }
  14888. else {
  14889. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_UserName));
  14890. }
  14891. if ((Original_UserPatronymic == null)) {
  14892. throw new global::System.ArgumentNullException("Original_UserPatronymic");
  14893. }
  14894. else {
  14895. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_UserPatronymic));
  14896. }
  14897. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_UserRole));
  14898. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(UserID));
  14899. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  14900. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  14901. != global::System.Data.ConnectionState.Open)) {
  14902. this.Adapter.UpdateCommand.Connection.Open();
  14903. }
  14904. try {
  14905. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  14906. return returnValue;
  14907. }
  14908. finally {
  14909. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  14910. this.Adapter.UpdateCommand.Connection.Close();
  14911. }
  14912. }
  14913. }
  14914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14916. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14917. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  14918. public virtual int Update(string UserSurname, string UserName, string UserPatronymic, string UserLogin, string UserPassword, int UserRole, int Original_UserID, string Original_UserSurname, string Original_UserName, string Original_UserPatronymic, int Original_UserRole) {
  14919. return this.Update(UserSurname, UserName, UserPatronymic, UserLogin, UserPassword, UserRole, Original_UserID, Original_UserSurname, Original_UserName, Original_UserPatronymic, Original_UserRole, Original_UserID);
  14920. }
  14921. }
  14922. /// <summary>
  14923. ///Represents the connection and commands used to retrieve and save data.
  14924. ///</summary>
  14925. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  14926. [global::System.ComponentModel.ToolboxItem(true)]
  14927. [global::System.ComponentModel.DataObjectAttribute(true)]
  14928. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  14929. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  14930. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  14931. public partial class woorkersTableAdapter : global::System.ComponentModel.Component {
  14932. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  14933. private global::System.Data.SqlClient.SqlConnection _connection;
  14934. private global::System.Data.SqlClient.SqlTransaction _transaction;
  14935. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  14936. private bool _clearBeforeFill;
  14937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14939. public woorkersTableAdapter() {
  14940. this.ClearBeforeFill = true;
  14941. }
  14942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14944. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  14945. get {
  14946. if ((this._adapter == null)) {
  14947. this.InitAdapter();
  14948. }
  14949. return this._adapter;
  14950. }
  14951. }
  14952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14954. internal global::System.Data.SqlClient.SqlConnection Connection {
  14955. get {
  14956. if ((this._connection == null)) {
  14957. this.InitConnection();
  14958. }
  14959. return this._connection;
  14960. }
  14961. set {
  14962. this._connection = value;
  14963. if ((this.Adapter.InsertCommand != null)) {
  14964. this.Adapter.InsertCommand.Connection = value;
  14965. }
  14966. if ((this.Adapter.DeleteCommand != null)) {
  14967. this.Adapter.DeleteCommand.Connection = value;
  14968. }
  14969. if ((this.Adapter.UpdateCommand != null)) {
  14970. this.Adapter.UpdateCommand.Connection = value;
  14971. }
  14972. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  14973. if ((this.CommandCollection[i] != null)) {
  14974. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  14975. }
  14976. }
  14977. }
  14978. }
  14979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  14980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  14981. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  14982. get {
  14983. return this._transaction;
  14984. }
  14985. set {
  14986. this._transaction = value;
  14987. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  14988. this.CommandCollection[i].Transaction = this._transaction;
  14989. }
  14990. if (((this.Adapter != null)
  14991. && (this.Adapter.DeleteCommand != null))) {
  14992. this.Adapter.DeleteCommand.Transaction = this._transaction;
  14993. }
  14994. if (((this.Adapter != null)
  14995. && (this.Adapter.InsertCommand != null))) {
  14996. this.Adapter.InsertCommand.Transaction = this._transaction;
  14997. }
  14998. if (((this.Adapter != null)
  14999. && (this.Adapter.UpdateCommand != null))) {
  15000. this.Adapter.UpdateCommand.Transaction = this._transaction;
  15001. }
  15002. }
  15003. }
  15004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15006. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  15007. get {
  15008. if ((this._commandCollection == null)) {
  15009. this.InitCommandCollection();
  15010. }
  15011. return this._commandCollection;
  15012. }
  15013. }
  15014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15016. public bool ClearBeforeFill {
  15017. get {
  15018. return this._clearBeforeFill;
  15019. }
  15020. set {
  15021. this._clearBeforeFill = value;
  15022. }
  15023. }
  15024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15026. private void InitAdapter() {
  15027. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  15028. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  15029. tableMapping.SourceTable = "Table";
  15030. tableMapping.DataSetTable = "woorkers";
  15031. tableMapping.ColumnMappings.Add("ID", "ID");
  15032. tableMapping.ColumnMappings.Add("NAME", "NAME");
  15033. tableMapping.ColumnMappings.Add("login", "login");
  15034. tableMapping.ColumnMappings.Add("Salary", "Salary");
  15035. tableMapping.ColumnMappings.Add("Age", "Age");
  15036. tableMapping.ColumnMappings.Add("Date", "Date");
  15037. tableMapping.ColumnMappings.Add("Description", "Description");
  15038. this._adapter.TableMappings.Add(tableMapping);
  15039. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  15040. this._adapter.DeleteCommand.Connection = this.Connection;
  15041. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[woorkers] WHERE (([ID] = @Original_ID) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_login = 1 AND [login] IS NULL) OR ([login] = @Original_login)) AND ((@IsNull_Salary = 1 AND [Salary] IS NULL) OR ([Salary] = @Original_Salary)) AND ((@IsNull_Age = 1 AND [Age] IS NULL) OR ([Age] = @Original_Age)) AND ((@IsNull_Date = 1 AND [Date] IS NULL) OR ([Date] = @Original_Date)) AND ((@IsNull_Description = 1 AND [Description] IS NULL) OR ([Description] = @Original_Description)))";
  15042. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  15043. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15044. 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, "", "", ""));
  15045. 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, "", "", ""));
  15046. 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, "", "", ""));
  15047. 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, "", "", ""));
  15048. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Salary", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Salary", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  15049. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Salary", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Salary", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15050. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Age", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Age", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  15051. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Age", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Age", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15052. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Date", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  15053. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15054. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Description", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  15055. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15056. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  15057. this._adapter.InsertCommand.Connection = this.Connection;
  15058. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[woorkers] ([NAME], [login], [Salary], [Age], [Date], [Descript" +
  15059. "ion]) VALUES (@NAME, @login, @Salary, @Age, @Date, @Description);\r\nSELECT ID, NA" +
  15060. "ME, login, Salary, Age, Date, Description FROM woorkers WHERE (ID = SCOPE_IDENTI" +
  15061. "TY())";
  15062. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  15063. 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, "", "", ""));
  15064. 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, "", "", ""));
  15065. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Salary", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Salary", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15066. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Age", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Age", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15067. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15068. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15069. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  15070. this._adapter.UpdateCommand.Connection = this.Connection;
  15071. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[woorkers] SET [NAME] = @NAME, [login] = @login, [Salary] = @Salary, [Age] = @Age, [Date] = @Date, [Description] = @Description WHERE (([ID] = @Original_ID) AND ((@IsNull_NAME = 1 AND [NAME] IS NULL) OR ([NAME] = @Original_NAME)) AND ((@IsNull_login = 1 AND [login] IS NULL) OR ([login] = @Original_login)) AND ((@IsNull_Salary = 1 AND [Salary] IS NULL) OR ([Salary] = @Original_Salary)) AND ((@IsNull_Age = 1 AND [Age] IS NULL) OR ([Age] = @Original_Age)) AND ((@IsNull_Date = 1 AND [Date] IS NULL) OR ([Date] = @Original_Date)) AND ((@IsNull_Description = 1 AND [Description] IS NULL) OR ([Description] = @Original_Description)));
  15072. SELECT ID, NAME, login, Salary, Age, Date, Description FROM woorkers WHERE (ID = @ID)";
  15073. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  15074. 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, "", "", ""));
  15075. 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, "", "", ""));
  15076. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Salary", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Salary", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15077. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Age", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Age", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15078. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15079. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15080. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15081. 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, "", "", ""));
  15082. 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, "", "", ""));
  15083. 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, "", "", ""));
  15084. 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, "", "", ""));
  15085. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Salary", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Salary", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  15086. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Salary", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Salary", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15087. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Age", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Age", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  15088. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Age", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Age", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15089. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Date", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  15090. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Date", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15091. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Description", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  15092. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Description", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15093. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15094. }
  15095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15097. private void InitConnection() {
  15098. this._connection = new global::System.Data.SqlClient.SqlConnection();
  15099. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  15100. }
  15101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15103. private void InitCommandCollection() {
  15104. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  15105. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  15106. this._commandCollection[0].Connection = this.Connection;
  15107. this._commandCollection[0].CommandText = "SELECT ID, NAME, login, Salary, Age, Date, Description FROM dbo.woorkers";
  15108. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  15109. }
  15110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15112. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15113. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  15114. public virtual int Fill(DataSet1.woorkersDataTable dataTable) {
  15115. this.Adapter.SelectCommand = this.CommandCollection[0];
  15116. if ((this.ClearBeforeFill == true)) {
  15117. dataTable.Clear();
  15118. }
  15119. int returnValue = this.Adapter.Fill(dataTable);
  15120. return returnValue;
  15121. }
  15122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15124. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15125. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  15126. public virtual DataSet1.woorkersDataTable GetData() {
  15127. this.Adapter.SelectCommand = this.CommandCollection[0];
  15128. DataSet1.woorkersDataTable dataTable = new DataSet1.woorkersDataTable();
  15129. this.Adapter.Fill(dataTable);
  15130. return dataTable;
  15131. }
  15132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15134. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15135. public virtual int Update(DataSet1.woorkersDataTable dataTable) {
  15136. return this.Adapter.Update(dataTable);
  15137. }
  15138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15140. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15141. public virtual int Update(DataSet1 dataSet) {
  15142. return this.Adapter.Update(dataSet, "woorkers");
  15143. }
  15144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15146. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15147. public virtual int Update(global::System.Data.DataRow dataRow) {
  15148. return this.Adapter.Update(new global::System.Data.DataRow[] {
  15149. dataRow});
  15150. }
  15151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15153. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15154. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  15155. return this.Adapter.Update(dataRows);
  15156. }
  15157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15159. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15160. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  15161. public virtual int Delete(int Original_ID, string Original_NAME, string Original_login, global::System.Nullable<int> Original_Salary, global::System.Nullable<int> Original_Age, global::System.Nullable<global::System.DateTime> Original_Date, string Original_Description) {
  15162. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  15163. if ((Original_NAME == null)) {
  15164. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  15165. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  15166. }
  15167. else {
  15168. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  15169. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_NAME));
  15170. }
  15171. if ((Original_login == null)) {
  15172. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  15173. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  15174. }
  15175. else {
  15176. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  15177. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_login));
  15178. }
  15179. if ((Original_Salary.HasValue == true)) {
  15180. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  15181. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Salary.Value));
  15182. }
  15183. else {
  15184. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  15185. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  15186. }
  15187. if ((Original_Age.HasValue == true)) {
  15188. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  15189. this.Adapter.DeleteCommand.Parameters[8].Value = ((int)(Original_Age.Value));
  15190. }
  15191. else {
  15192. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  15193. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  15194. }
  15195. if ((Original_Date.HasValue == true)) {
  15196. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  15197. this.Adapter.DeleteCommand.Parameters[10].Value = ((System.DateTime)(Original_Date.Value));
  15198. }
  15199. else {
  15200. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  15201. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  15202. }
  15203. if ((Original_Description == null)) {
  15204. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  15205. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  15206. }
  15207. else {
  15208. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  15209. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Description));
  15210. }
  15211. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  15212. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  15213. != global::System.Data.ConnectionState.Open)) {
  15214. this.Adapter.DeleteCommand.Connection.Open();
  15215. }
  15216. try {
  15217. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  15218. return returnValue;
  15219. }
  15220. finally {
  15221. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  15222. this.Adapter.DeleteCommand.Connection.Close();
  15223. }
  15224. }
  15225. }
  15226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15228. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15229. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  15230. public virtual int Insert(string NAME, string login, global::System.Nullable<int> Salary, global::System.Nullable<int> Age, global::System.Nullable<global::System.DateTime> Date, string Description) {
  15231. if ((NAME == null)) {
  15232. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  15233. }
  15234. else {
  15235. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(NAME));
  15236. }
  15237. if ((login == null)) {
  15238. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  15239. }
  15240. else {
  15241. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(login));
  15242. }
  15243. if ((Salary.HasValue == true)) {
  15244. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Salary.Value));
  15245. }
  15246. else {
  15247. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  15248. }
  15249. if ((Age.HasValue == true)) {
  15250. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Age.Value));
  15251. }
  15252. else {
  15253. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  15254. }
  15255. if ((Date.HasValue == true)) {
  15256. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(Date.Value));
  15257. }
  15258. else {
  15259. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  15260. }
  15261. if ((Description == null)) {
  15262. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  15263. }
  15264. else {
  15265. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Description));
  15266. }
  15267. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  15268. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  15269. != global::System.Data.ConnectionState.Open)) {
  15270. this.Adapter.InsertCommand.Connection.Open();
  15271. }
  15272. try {
  15273. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  15274. return returnValue;
  15275. }
  15276. finally {
  15277. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  15278. this.Adapter.InsertCommand.Connection.Close();
  15279. }
  15280. }
  15281. }
  15282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15284. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15285. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  15286. public virtual int Update(string NAME, string login, global::System.Nullable<int> Salary, global::System.Nullable<int> Age, global::System.Nullable<global::System.DateTime> Date, string Description, int Original_ID, string Original_NAME, string Original_login, global::System.Nullable<int> Original_Salary, global::System.Nullable<int> Original_Age, global::System.Nullable<global::System.DateTime> Original_Date, string Original_Description, int ID) {
  15287. if ((NAME == null)) {
  15288. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  15289. }
  15290. else {
  15291. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(NAME));
  15292. }
  15293. if ((login == null)) {
  15294. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  15295. }
  15296. else {
  15297. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(login));
  15298. }
  15299. if ((Salary.HasValue == true)) {
  15300. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Salary.Value));
  15301. }
  15302. else {
  15303. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  15304. }
  15305. if ((Age.HasValue == true)) {
  15306. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Age.Value));
  15307. }
  15308. else {
  15309. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  15310. }
  15311. if ((Date.HasValue == true)) {
  15312. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(Date.Value));
  15313. }
  15314. else {
  15315. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  15316. }
  15317. if ((Description == null)) {
  15318. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  15319. }
  15320. else {
  15321. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Description));
  15322. }
  15323. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ID));
  15324. if ((Original_NAME == null)) {
  15325. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  15326. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  15327. }
  15328. else {
  15329. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  15330. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_NAME));
  15331. }
  15332. if ((Original_login == null)) {
  15333. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  15334. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  15335. }
  15336. else {
  15337. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  15338. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_login));
  15339. }
  15340. if ((Original_Salary.HasValue == true)) {
  15341. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  15342. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(Original_Salary.Value));
  15343. }
  15344. else {
  15345. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  15346. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  15347. }
  15348. if ((Original_Age.HasValue == true)) {
  15349. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  15350. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_Age.Value));
  15351. }
  15352. else {
  15353. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  15354. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  15355. }
  15356. if ((Original_Date.HasValue == true)) {
  15357. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  15358. this.Adapter.UpdateCommand.Parameters[16].Value = ((System.DateTime)(Original_Date.Value));
  15359. }
  15360. else {
  15361. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  15362. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  15363. }
  15364. if ((Original_Description == null)) {
  15365. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  15366. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  15367. }
  15368. else {
  15369. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  15370. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Description));
  15371. }
  15372. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(ID));
  15373. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  15374. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  15375. != global::System.Data.ConnectionState.Open)) {
  15376. this.Adapter.UpdateCommand.Connection.Open();
  15377. }
  15378. try {
  15379. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  15380. return returnValue;
  15381. }
  15382. finally {
  15383. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  15384. this.Adapter.UpdateCommand.Connection.Close();
  15385. }
  15386. }
  15387. }
  15388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15390. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15391. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  15392. public virtual int Update(string NAME, string login, global::System.Nullable<int> Salary, global::System.Nullable<int> Age, global::System.Nullable<global::System.DateTime> Date, string Description, int Original_ID, string Original_NAME, string Original_login, global::System.Nullable<int> Original_Salary, global::System.Nullable<int> Original_Age, global::System.Nullable<global::System.DateTime> Original_Date, string Original_Description) {
  15393. return this.Update(NAME, login, Salary, Age, Date, Description, Original_ID, Original_NAME, Original_login, Original_Salary, Original_Age, Original_Date, Original_Description, Original_ID);
  15394. }
  15395. }
  15396. /// <summary>
  15397. ///Represents the connection and commands used to retrieve and save data.
  15398. ///</summary>
  15399. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  15400. [global::System.ComponentModel.ToolboxItem(true)]
  15401. [global::System.ComponentModel.DataObjectAttribute(true)]
  15402. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  15403. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  15404. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15405. public partial class WorkerTableAdapter : global::System.ComponentModel.Component {
  15406. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  15407. private global::System.Data.SqlClient.SqlConnection _connection;
  15408. private global::System.Data.SqlClient.SqlTransaction _transaction;
  15409. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  15410. private bool _clearBeforeFill;
  15411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15413. public WorkerTableAdapter() {
  15414. this.ClearBeforeFill = true;
  15415. }
  15416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15418. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  15419. get {
  15420. if ((this._adapter == null)) {
  15421. this.InitAdapter();
  15422. }
  15423. return this._adapter;
  15424. }
  15425. }
  15426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15428. internal global::System.Data.SqlClient.SqlConnection Connection {
  15429. get {
  15430. if ((this._connection == null)) {
  15431. this.InitConnection();
  15432. }
  15433. return this._connection;
  15434. }
  15435. set {
  15436. this._connection = value;
  15437. if ((this.Adapter.InsertCommand != null)) {
  15438. this.Adapter.InsertCommand.Connection = value;
  15439. }
  15440. if ((this.Adapter.DeleteCommand != null)) {
  15441. this.Adapter.DeleteCommand.Connection = value;
  15442. }
  15443. if ((this.Adapter.UpdateCommand != null)) {
  15444. this.Adapter.UpdateCommand.Connection = value;
  15445. }
  15446. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  15447. if ((this.CommandCollection[i] != null)) {
  15448. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  15449. }
  15450. }
  15451. }
  15452. }
  15453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15455. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  15456. get {
  15457. return this._transaction;
  15458. }
  15459. set {
  15460. this._transaction = value;
  15461. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  15462. this.CommandCollection[i].Transaction = this._transaction;
  15463. }
  15464. if (((this.Adapter != null)
  15465. && (this.Adapter.DeleteCommand != null))) {
  15466. this.Adapter.DeleteCommand.Transaction = this._transaction;
  15467. }
  15468. if (((this.Adapter != null)
  15469. && (this.Adapter.InsertCommand != null))) {
  15470. this.Adapter.InsertCommand.Transaction = this._transaction;
  15471. }
  15472. if (((this.Adapter != null)
  15473. && (this.Adapter.UpdateCommand != null))) {
  15474. this.Adapter.UpdateCommand.Transaction = this._transaction;
  15475. }
  15476. }
  15477. }
  15478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15480. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  15481. get {
  15482. if ((this._commandCollection == null)) {
  15483. this.InitCommandCollection();
  15484. }
  15485. return this._commandCollection;
  15486. }
  15487. }
  15488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15490. public bool ClearBeforeFill {
  15491. get {
  15492. return this._clearBeforeFill;
  15493. }
  15494. set {
  15495. this._clearBeforeFill = value;
  15496. }
  15497. }
  15498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15500. private void InitAdapter() {
  15501. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  15502. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  15503. tableMapping.SourceTable = "Table";
  15504. tableMapping.DataSetTable = "Worker";
  15505. tableMapping.ColumnMappings.Add("id", "id");
  15506. tableMapping.ColumnMappings.Add("name", "name");
  15507. tableMapping.ColumnMappings.Add("logn", "logn");
  15508. tableMapping.ColumnMappings.Add("salary", "salary");
  15509. tableMapping.ColumnMappings.Add("age", "age");
  15510. tableMapping.ColumnMappings.Add("date", "date");
  15511. tableMapping.ColumnMappings.Add("discription", "discription");
  15512. this._adapter.TableMappings.Add(tableMapping);
  15513. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  15514. this._adapter.InsertCommand.Connection = this.Connection;
  15515. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Worker] ([id], [name], [logn], [salary], [age], [date], [discr" +
  15516. "iption]) VALUES (@id, @name, @logn, @salary, @age, @date, @discription)";
  15517. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  15518. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15519. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15520. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@logn", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "logn", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15521. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@salary", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "salary", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15522. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@age", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "age", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15523. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@date", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15524. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@discription", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "discription", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15525. }
  15526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15528. private void InitConnection() {
  15529. this._connection = new global::System.Data.SqlClient.SqlConnection();
  15530. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  15531. }
  15532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15534. private void InitCommandCollection() {
  15535. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  15536. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  15537. this._commandCollection[0].Connection = this.Connection;
  15538. this._commandCollection[0].CommandText = "SELECT id, name, logn, salary, age, date, discription FROM dbo.Worker";
  15539. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  15540. }
  15541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15543. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15544. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  15545. public virtual int Fill(DataSet1.WorkerDataTable dataTable) {
  15546. this.Adapter.SelectCommand = this.CommandCollection[0];
  15547. if ((this.ClearBeforeFill == true)) {
  15548. dataTable.Clear();
  15549. }
  15550. int returnValue = this.Adapter.Fill(dataTable);
  15551. return returnValue;
  15552. }
  15553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15556. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  15557. public virtual DataSet1.WorkerDataTable GetData() {
  15558. this.Adapter.SelectCommand = this.CommandCollection[0];
  15559. DataSet1.WorkerDataTable dataTable = new DataSet1.WorkerDataTable();
  15560. this.Adapter.Fill(dataTable);
  15561. return dataTable;
  15562. }
  15563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15565. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15566. public virtual int Update(DataSet1.WorkerDataTable dataTable) {
  15567. return this.Adapter.Update(dataTable);
  15568. }
  15569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15571. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15572. public virtual int Update(DataSet1 dataSet) {
  15573. return this.Adapter.Update(dataSet, "Worker");
  15574. }
  15575. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15577. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15578. public virtual int Update(global::System.Data.DataRow dataRow) {
  15579. return this.Adapter.Update(new global::System.Data.DataRow[] {
  15580. dataRow});
  15581. }
  15582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15584. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15585. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  15586. return this.Adapter.Update(dataRows);
  15587. }
  15588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15590. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15591. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  15592. public virtual int Insert(int id, string name, string logn, string salary, string age, System.DateTime date, string discription) {
  15593. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(id));
  15594. if ((name == null)) {
  15595. throw new global::System.ArgumentNullException("name");
  15596. }
  15597. else {
  15598. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(name));
  15599. }
  15600. if ((logn == null)) {
  15601. throw new global::System.ArgumentNullException("logn");
  15602. }
  15603. else {
  15604. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(logn));
  15605. }
  15606. if ((salary == null)) {
  15607. throw new global::System.ArgumentNullException("salary");
  15608. }
  15609. else {
  15610. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(salary));
  15611. }
  15612. if ((age == null)) {
  15613. throw new global::System.ArgumentNullException("age");
  15614. }
  15615. else {
  15616. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(age));
  15617. }
  15618. this.Adapter.InsertCommand.Parameters[5].Value = ((System.DateTime)(date));
  15619. if ((discription == null)) {
  15620. throw new global::System.ArgumentNullException("discription");
  15621. }
  15622. else {
  15623. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(discription));
  15624. }
  15625. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  15626. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  15627. != global::System.Data.ConnectionState.Open)) {
  15628. this.Adapter.InsertCommand.Connection.Open();
  15629. }
  15630. try {
  15631. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  15632. return returnValue;
  15633. }
  15634. finally {
  15635. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  15636. this.Adapter.InsertCommand.Connection.Close();
  15637. }
  15638. }
  15639. }
  15640. }
  15641. /// <summary>
  15642. ///Represents the connection and commands used to retrieve and save data.
  15643. ///</summary>
  15644. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  15645. [global::System.ComponentModel.ToolboxItem(true)]
  15646. [global::System.ComponentModel.DataObjectAttribute(true)]
  15647. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  15648. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  15649. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15650. public partial class WorkersTableAdapter : global::System.ComponentModel.Component {
  15651. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  15652. private global::System.Data.SqlClient.SqlConnection _connection;
  15653. private global::System.Data.SqlClient.SqlTransaction _transaction;
  15654. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  15655. private bool _clearBeforeFill;
  15656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15658. public WorkersTableAdapter() {
  15659. this.ClearBeforeFill = true;
  15660. }
  15661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15663. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  15664. get {
  15665. if ((this._adapter == null)) {
  15666. this.InitAdapter();
  15667. }
  15668. return this._adapter;
  15669. }
  15670. }
  15671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15673. internal global::System.Data.SqlClient.SqlConnection Connection {
  15674. get {
  15675. if ((this._connection == null)) {
  15676. this.InitConnection();
  15677. }
  15678. return this._connection;
  15679. }
  15680. set {
  15681. this._connection = value;
  15682. if ((this.Adapter.InsertCommand != null)) {
  15683. this.Adapter.InsertCommand.Connection = value;
  15684. }
  15685. if ((this.Adapter.DeleteCommand != null)) {
  15686. this.Adapter.DeleteCommand.Connection = value;
  15687. }
  15688. if ((this.Adapter.UpdateCommand != null)) {
  15689. this.Adapter.UpdateCommand.Connection = value;
  15690. }
  15691. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  15692. if ((this.CommandCollection[i] != null)) {
  15693. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  15694. }
  15695. }
  15696. }
  15697. }
  15698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15700. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  15701. get {
  15702. return this._transaction;
  15703. }
  15704. set {
  15705. this._transaction = value;
  15706. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  15707. this.CommandCollection[i].Transaction = this._transaction;
  15708. }
  15709. if (((this.Adapter != null)
  15710. && (this.Adapter.DeleteCommand != null))) {
  15711. this.Adapter.DeleteCommand.Transaction = this._transaction;
  15712. }
  15713. if (((this.Adapter != null)
  15714. && (this.Adapter.InsertCommand != null))) {
  15715. this.Adapter.InsertCommand.Transaction = this._transaction;
  15716. }
  15717. if (((this.Adapter != null)
  15718. && (this.Adapter.UpdateCommand != null))) {
  15719. this.Adapter.UpdateCommand.Transaction = this._transaction;
  15720. }
  15721. }
  15722. }
  15723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15725. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  15726. get {
  15727. if ((this._commandCollection == null)) {
  15728. this.InitCommandCollection();
  15729. }
  15730. return this._commandCollection;
  15731. }
  15732. }
  15733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15735. public bool ClearBeforeFill {
  15736. get {
  15737. return this._clearBeforeFill;
  15738. }
  15739. set {
  15740. this._clearBeforeFill = value;
  15741. }
  15742. }
  15743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15745. private void InitAdapter() {
  15746. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  15747. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  15748. tableMapping.SourceTable = "Table";
  15749. tableMapping.DataSetTable = "Workers";
  15750. tableMapping.ColumnMappings.Add("ID", "ID");
  15751. tableMapping.ColumnMappings.Add("Login", "Login");
  15752. tableMapping.ColumnMappings.Add("Salary", "Salary");
  15753. tableMapping.ColumnMappings.Add("Age", "Age");
  15754. tableMapping.ColumnMappings.Add("Date", "Date");
  15755. tableMapping.ColumnMappings.Add("Description", "Description");
  15756. this._adapter.TableMappings.Add(tableMapping);
  15757. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  15758. this._adapter.DeleteCommand.Connection = this.Connection;
  15759. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Workers] WHERE (([ID] = @Original_ID) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Salary = 1 AND [Salary] IS NULL) OR ([Salary] = @Original_Salary)) AND ((@IsNull_Age = 1 AND [Age] IS NULL) OR ([Age] = @Original_Age)) AND ((@IsNull_Date = 1 AND [Date] IS NULL) OR ([Date] = @Original_Date)))";
  15760. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  15761. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15762. 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, "", "", ""));
  15763. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15764. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Salary", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Salary", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  15765. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Salary", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Salary", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15766. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Age", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Age", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  15767. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Age", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Age", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15768. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Date", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  15769. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Date", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15770. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  15771. this._adapter.InsertCommand.Connection = this.Connection;
  15772. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Workers] ([Login], [Salary], [Age], [Date], [Description]) VAL" +
  15773. "UES (@Login, @Salary, @Age, @Date, @Description);\r\nSELECT ID, Login, Salary, Age" +
  15774. ", Date, Description FROM Workers WHERE (ID = SCOPE_IDENTITY())";
  15775. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  15776. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15777. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Salary", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Salary", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15778. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Age", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Age", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15779. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Date", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15780. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.Text, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15781. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  15782. this._adapter.UpdateCommand.Connection = this.Connection;
  15783. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Workers] SET [Login] = @Login, [Salary] = @Salary, [Age] = @Age, [Date] = @Date, [Description] = @Description WHERE (([ID] = @Original_ID) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Salary = 1 AND [Salary] IS NULL) OR ([Salary] = @Original_Salary)) AND ((@IsNull_Age = 1 AND [Age] IS NULL) OR ([Age] = @Original_Age)) AND ((@IsNull_Date = 1 AND [Date] IS NULL) OR ([Date] = @Original_Date)));
  15784. SELECT ID, Login, Salary, Age, Date, Description FROM Workers WHERE (ID = @ID)";
  15785. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  15786. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15787. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Salary", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Salary", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15788. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Age", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Age", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15789. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Date", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15790. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.Text, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15791. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15792. 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, "", "", ""));
  15793. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15794. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Salary", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Salary", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  15795. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Salary", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "Salary", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15796. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Age", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Age", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  15797. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Age", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Age", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15798. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Date", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  15799. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Date", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Date", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  15800. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  15801. }
  15802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15804. private void InitConnection() {
  15805. this._connection = new global::System.Data.SqlClient.SqlConnection();
  15806. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  15807. }
  15808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15810. private void InitCommandCollection() {
  15811. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  15812. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  15813. this._commandCollection[0].Connection = this.Connection;
  15814. this._commandCollection[0].CommandText = "SELECT ID, Login, Salary, Age, Date, Description FROM dbo.Workers";
  15815. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  15816. }
  15817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15819. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15820. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  15821. public virtual int Fill(DataSet1.WorkersDataTable dataTable) {
  15822. this.Adapter.SelectCommand = this.CommandCollection[0];
  15823. if ((this.ClearBeforeFill == true)) {
  15824. dataTable.Clear();
  15825. }
  15826. int returnValue = this.Adapter.Fill(dataTable);
  15827. return returnValue;
  15828. }
  15829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15831. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15832. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  15833. public virtual DataSet1.WorkersDataTable GetData() {
  15834. this.Adapter.SelectCommand = this.CommandCollection[0];
  15835. DataSet1.WorkersDataTable dataTable = new DataSet1.WorkersDataTable();
  15836. this.Adapter.Fill(dataTable);
  15837. return dataTable;
  15838. }
  15839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15841. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15842. public virtual int Update(DataSet1.WorkersDataTable dataTable) {
  15843. return this.Adapter.Update(dataTable);
  15844. }
  15845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15847. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15848. public virtual int Update(DataSet1 dataSet) {
  15849. return this.Adapter.Update(dataSet, "Workers");
  15850. }
  15851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15853. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15854. public virtual int Update(global::System.Data.DataRow dataRow) {
  15855. return this.Adapter.Update(new global::System.Data.DataRow[] {
  15856. dataRow});
  15857. }
  15858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15860. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15861. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  15862. return this.Adapter.Update(dataRows);
  15863. }
  15864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15866. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15867. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  15868. public virtual int Delete(int Original_ID, string Original_Login, global::System.Nullable<decimal> Original_Salary, global::System.Nullable<int> Original_Age, global::System.Nullable<global::System.DateTime> Original_Date) {
  15869. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
  15870. if ((Original_Login == null)) {
  15871. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  15872. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  15873. }
  15874. else {
  15875. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  15876. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Login));
  15877. }
  15878. if ((Original_Salary.HasValue == true)) {
  15879. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  15880. this.Adapter.DeleteCommand.Parameters[4].Value = ((decimal)(Original_Salary.Value));
  15881. }
  15882. else {
  15883. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  15884. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  15885. }
  15886. if ((Original_Age.HasValue == true)) {
  15887. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  15888. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_Age.Value));
  15889. }
  15890. else {
  15891. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  15892. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  15893. }
  15894. if ((Original_Date.HasValue == true)) {
  15895. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  15896. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_Date.Value));
  15897. }
  15898. else {
  15899. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  15900. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  15901. }
  15902. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  15903. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  15904. != global::System.Data.ConnectionState.Open)) {
  15905. this.Adapter.DeleteCommand.Connection.Open();
  15906. }
  15907. try {
  15908. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  15909. return returnValue;
  15910. }
  15911. finally {
  15912. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  15913. this.Adapter.DeleteCommand.Connection.Close();
  15914. }
  15915. }
  15916. }
  15917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15919. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15920. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  15921. public virtual int Insert(string Login, global::System.Nullable<decimal> Salary, global::System.Nullable<int> Age, global::System.Nullable<global::System.DateTime> Date, string Description) {
  15922. if ((Login == null)) {
  15923. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  15924. }
  15925. else {
  15926. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Login));
  15927. }
  15928. if ((Salary.HasValue == true)) {
  15929. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(Salary.Value));
  15930. }
  15931. else {
  15932. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  15933. }
  15934. if ((Age.HasValue == true)) {
  15935. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Age.Value));
  15936. }
  15937. else {
  15938. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  15939. }
  15940. if ((Date.HasValue == true)) {
  15941. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Date.Value));
  15942. }
  15943. else {
  15944. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  15945. }
  15946. if ((Description == null)) {
  15947. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  15948. }
  15949. else {
  15950. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Description));
  15951. }
  15952. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  15953. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  15954. != global::System.Data.ConnectionState.Open)) {
  15955. this.Adapter.InsertCommand.Connection.Open();
  15956. }
  15957. try {
  15958. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  15959. return returnValue;
  15960. }
  15961. finally {
  15962. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  15963. this.Adapter.InsertCommand.Connection.Close();
  15964. }
  15965. }
  15966. }
  15967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  15968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  15969. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  15970. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  15971. public virtual int Update(string Login, global::System.Nullable<decimal> Salary, global::System.Nullable<int> Age, global::System.Nullable<global::System.DateTime> Date, string Description, int Original_ID, string Original_Login, global::System.Nullable<decimal> Original_Salary, global::System.Nullable<int> Original_Age, global::System.Nullable<global::System.DateTime> Original_Date, int ID) {
  15972. if ((Login == null)) {
  15973. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  15974. }
  15975. else {
  15976. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Login));
  15977. }
  15978. if ((Salary.HasValue == true)) {
  15979. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(Salary.Value));
  15980. }
  15981. else {
  15982. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  15983. }
  15984. if ((Age.HasValue == true)) {
  15985. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Age.Value));
  15986. }
  15987. else {
  15988. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  15989. }
  15990. if ((Date.HasValue == true)) {
  15991. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(Date.Value));
  15992. }
  15993. else {
  15994. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  15995. }
  15996. if ((Description == null)) {
  15997. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  15998. }
  15999. else {
  16000. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Description));
  16001. }
  16002. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_ID));
  16003. if ((Original_Login == null)) {
  16004. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  16005. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  16006. }
  16007. else {
  16008. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  16009. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Login));
  16010. }
  16011. if ((Original_Salary.HasValue == true)) {
  16012. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  16013. this.Adapter.UpdateCommand.Parameters[9].Value = ((decimal)(Original_Salary.Value));
  16014. }
  16015. else {
  16016. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  16017. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  16018. }
  16019. if ((Original_Age.HasValue == true)) {
  16020. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  16021. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_Age.Value));
  16022. }
  16023. else {
  16024. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  16025. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  16026. }
  16027. if ((Original_Date.HasValue == true)) {
  16028. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  16029. this.Adapter.UpdateCommand.Parameters[13].Value = ((System.DateTime)(Original_Date.Value));
  16030. }
  16031. else {
  16032. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  16033. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  16034. }
  16035. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(ID));
  16036. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  16037. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  16038. != global::System.Data.ConnectionState.Open)) {
  16039. this.Adapter.UpdateCommand.Connection.Open();
  16040. }
  16041. try {
  16042. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  16043. return returnValue;
  16044. }
  16045. finally {
  16046. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  16047. this.Adapter.UpdateCommand.Connection.Close();
  16048. }
  16049. }
  16050. }
  16051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16053. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16054. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  16055. public virtual int Update(string Login, global::System.Nullable<decimal> Salary, global::System.Nullable<int> Age, global::System.Nullable<global::System.DateTime> Date, string Description, int Original_ID, string Original_Login, global::System.Nullable<decimal> Original_Salary, global::System.Nullable<int> Original_Age, global::System.Nullable<global::System.DateTime> Original_Date) {
  16056. return this.Update(Login, Salary, Age, Date, Description, Original_ID, Original_Login, Original_Salary, Original_Age, Original_Date, Original_ID);
  16057. }
  16058. }
  16059. /// <summary>
  16060. ///Represents the connection and commands used to retrieve and save data.
  16061. ///</summary>
  16062. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  16063. [global::System.ComponentModel.ToolboxItem(true)]
  16064. [global::System.ComponentModel.DataObjectAttribute(true)]
  16065. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  16066. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  16067. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16068. public partial class ПродажиTableAdapter : global::System.ComponentModel.Component {
  16069. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  16070. private global::System.Data.SqlClient.SqlConnection _connection;
  16071. private global::System.Data.SqlClient.SqlTransaction _transaction;
  16072. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  16073. private bool _clearBeforeFill;
  16074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16076. public ПродажиTableAdapter() {
  16077. this.ClearBeforeFill = true;
  16078. }
  16079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16081. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  16082. get {
  16083. if ((this._adapter == null)) {
  16084. this.InitAdapter();
  16085. }
  16086. return this._adapter;
  16087. }
  16088. }
  16089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16091. internal global::System.Data.SqlClient.SqlConnection Connection {
  16092. get {
  16093. if ((this._connection == null)) {
  16094. this.InitConnection();
  16095. }
  16096. return this._connection;
  16097. }
  16098. set {
  16099. this._connection = value;
  16100. if ((this.Adapter.InsertCommand != null)) {
  16101. this.Adapter.InsertCommand.Connection = value;
  16102. }
  16103. if ((this.Adapter.DeleteCommand != null)) {
  16104. this.Adapter.DeleteCommand.Connection = value;
  16105. }
  16106. if ((this.Adapter.UpdateCommand != null)) {
  16107. this.Adapter.UpdateCommand.Connection = value;
  16108. }
  16109. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  16110. if ((this.CommandCollection[i] != null)) {
  16111. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  16112. }
  16113. }
  16114. }
  16115. }
  16116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16118. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  16119. get {
  16120. return this._transaction;
  16121. }
  16122. set {
  16123. this._transaction = value;
  16124. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  16125. this.CommandCollection[i].Transaction = this._transaction;
  16126. }
  16127. if (((this.Adapter != null)
  16128. && (this.Adapter.DeleteCommand != null))) {
  16129. this.Adapter.DeleteCommand.Transaction = this._transaction;
  16130. }
  16131. if (((this.Adapter != null)
  16132. && (this.Adapter.InsertCommand != null))) {
  16133. this.Adapter.InsertCommand.Transaction = this._transaction;
  16134. }
  16135. if (((this.Adapter != null)
  16136. && (this.Adapter.UpdateCommand != null))) {
  16137. this.Adapter.UpdateCommand.Transaction = this._transaction;
  16138. }
  16139. }
  16140. }
  16141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16143. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  16144. get {
  16145. if ((this._commandCollection == null)) {
  16146. this.InitCommandCollection();
  16147. }
  16148. return this._commandCollection;
  16149. }
  16150. }
  16151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16153. public bool ClearBeforeFill {
  16154. get {
  16155. return this._clearBeforeFill;
  16156. }
  16157. set {
  16158. this._clearBeforeFill = value;
  16159. }
  16160. }
  16161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16163. private void InitAdapter() {
  16164. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  16165. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  16166. tableMapping.SourceTable = "Table";
  16167. tableMapping.DataSetTable = "Продажи";
  16168. tableMapping.ColumnMappings.Add("код_товара", "код_товара");
  16169. tableMapping.ColumnMappings.Add("дата", "дата");
  16170. tableMapping.ColumnMappings.Add("количество", "количество");
  16171. this._adapter.TableMappings.Add(tableMapping);
  16172. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  16173. this._adapter.DeleteCommand.Connection = this.Connection;
  16174. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Продажи] WHERE (([код_товара] = @Original_код_товара) AND ((@I" +
  16175. "sNull_дата = 1 AND [дата] IS NULL) OR ([дата] = @Original_дата)) AND ((@IsNull_к" +
  16176. "оличество = 1 AND [количество] IS NULL) OR ([количество] = @Original_количество)" +
  16177. "))";
  16178. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  16179. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_код_товара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "код_товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  16180. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_дата", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "дата", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  16181. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_дата", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "дата", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  16182. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  16183. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_количество", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  16184. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  16185. this._adapter.InsertCommand.Connection = this.Connection;
  16186. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Продажи] ([код_товара], [дата], [количество]) VALUES (@код_тов" +
  16187. "ара, @дата, @количество);\r\nSELECT код_товара, дата, количество FROM Продажи WHER" +
  16188. "E (код_товара = @код_товара)";
  16189. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  16190. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@код_товара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "код_товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  16191. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@дата", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "дата", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  16192. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@количество", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  16193. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  16194. this._adapter.UpdateCommand.Connection = this.Connection;
  16195. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Продажи] SET [код_товара] = @код_товара, [дата] = @дата, [количество] = @количество WHERE (([код_товара] = @Original_код_товара) AND ((@IsNull_дата = 1 AND [дата] IS NULL) OR ([дата] = @Original_дата)) AND ((@IsNull_количество = 1 AND [количество] IS NULL) OR ([количество] = @Original_количество)));
  16196. SELECT код_товара, дата, количество FROM Продажи WHERE (код_товара = @код_товара)";
  16197. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  16198. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@код_товара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "код_товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  16199. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@дата", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "дата", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  16200. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@количество", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "количество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  16201. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_код_товара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "код_товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  16202. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_дата", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "дата", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  16203. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_дата", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "дата", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  16204. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_количество", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "количество", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  16205. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_количество", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "количество", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  16206. }
  16207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16209. private void InitConnection() {
  16210. this._connection = new global::System.Data.SqlClient.SqlConnection();
  16211. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  16212. }
  16213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16215. private void InitCommandCollection() {
  16216. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  16217. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  16218. this._commandCollection[0].Connection = this.Connection;
  16219. this._commandCollection[0].CommandText = "SELECT код_товара, дата, количество FROM dbo.Продажи";
  16220. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  16221. }
  16222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16224. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16225. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  16226. public virtual int Fill(DataSet1.ПродажиDataTable dataTable) {
  16227. this.Adapter.SelectCommand = this.CommandCollection[0];
  16228. if ((this.ClearBeforeFill == true)) {
  16229. dataTable.Clear();
  16230. }
  16231. int returnValue = this.Adapter.Fill(dataTable);
  16232. return returnValue;
  16233. }
  16234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16236. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16237. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  16238. public virtual DataSet1.ПродажиDataTable GetData() {
  16239. this.Adapter.SelectCommand = this.CommandCollection[0];
  16240. DataSet1.ПродажиDataTable dataTable = new DataSet1.ПродажиDataTable();
  16241. this.Adapter.Fill(dataTable);
  16242. return dataTable;
  16243. }
  16244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16246. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16247. public virtual int Update(DataSet1.ПродажиDataTable dataTable) {
  16248. return this.Adapter.Update(dataTable);
  16249. }
  16250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16252. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16253. public virtual int Update(DataSet1 dataSet) {
  16254. return this.Adapter.Update(dataSet, "Продажи");
  16255. }
  16256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16258. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16259. public virtual int Update(global::System.Data.DataRow dataRow) {
  16260. return this.Adapter.Update(new global::System.Data.DataRow[] {
  16261. dataRow});
  16262. }
  16263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16265. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16266. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  16267. return this.Adapter.Update(dataRows);
  16268. }
  16269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16271. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16272. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  16273. public virtual int Delete(int Original_код_товара, string Original_дата, string Original_количество) {
  16274. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_код_товара));
  16275. if ((Original_дата == null)) {
  16276. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  16277. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  16278. }
  16279. else {
  16280. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  16281. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_дата));
  16282. }
  16283. if ((Original_количество == null)) {
  16284. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  16285. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  16286. }
  16287. else {
  16288. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  16289. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_количество));
  16290. }
  16291. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  16292. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  16293. != global::System.Data.ConnectionState.Open)) {
  16294. this.Adapter.DeleteCommand.Connection.Open();
  16295. }
  16296. try {
  16297. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  16298. return returnValue;
  16299. }
  16300. finally {
  16301. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  16302. this.Adapter.DeleteCommand.Connection.Close();
  16303. }
  16304. }
  16305. }
  16306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16308. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16309. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  16310. public virtual int Insert(int код_товара, string дата, string количество) {
  16311. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(код_товара));
  16312. if ((дата == null)) {
  16313. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  16314. }
  16315. else {
  16316. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(дата));
  16317. }
  16318. if ((количество == null)) {
  16319. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  16320. }
  16321. else {
  16322. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(количество));
  16323. }
  16324. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  16325. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  16326. != global::System.Data.ConnectionState.Open)) {
  16327. this.Adapter.InsertCommand.Connection.Open();
  16328. }
  16329. try {
  16330. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  16331. return returnValue;
  16332. }
  16333. finally {
  16334. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  16335. this.Adapter.InsertCommand.Connection.Close();
  16336. }
  16337. }
  16338. }
  16339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16341. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16342. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  16343. public virtual int Update(int код_товара, string дата, string количество, int Original_код_товара, string Original_дата, string Original_количество) {
  16344. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(код_товара));
  16345. if ((дата == null)) {
  16346. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  16347. }
  16348. else {
  16349. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(дата));
  16350. }
  16351. if ((количество == null)) {
  16352. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  16353. }
  16354. else {
  16355. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(количество));
  16356. }
  16357. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_код_товара));
  16358. if ((Original_дата == null)) {
  16359. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  16360. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  16361. }
  16362. else {
  16363. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  16364. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_дата));
  16365. }
  16366. if ((Original_количество == null)) {
  16367. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  16368. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  16369. }
  16370. else {
  16371. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  16372. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_количество));
  16373. }
  16374. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  16375. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  16376. != global::System.Data.ConnectionState.Open)) {
  16377. this.Adapter.UpdateCommand.Connection.Open();
  16378. }
  16379. try {
  16380. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  16381. return returnValue;
  16382. }
  16383. finally {
  16384. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  16385. this.Adapter.UpdateCommand.Connection.Close();
  16386. }
  16387. }
  16388. }
  16389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16391. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16392. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  16393. public virtual int Update(string дата, string количество, int Original_код_товара, string Original_дата, string Original_количество) {
  16394. return this.Update(Original_код_товара, дата, количество, Original_код_товара, Original_дата, Original_количество);
  16395. }
  16396. }
  16397. /// <summary>
  16398. ///Represents the connection and commands used to retrieve and save data.
  16399. ///</summary>
  16400. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  16401. [global::System.ComponentModel.ToolboxItem(true)]
  16402. [global::System.ComponentModel.DataObjectAttribute(true)]
  16403. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  16404. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  16405. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16406. public partial class ТоварыTableAdapter : global::System.ComponentModel.Component {
  16407. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  16408. private global::System.Data.SqlClient.SqlConnection _connection;
  16409. private global::System.Data.SqlClient.SqlTransaction _transaction;
  16410. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  16411. private bool _clearBeforeFill;
  16412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16414. public ТоварыTableAdapter() {
  16415. this.ClearBeforeFill = true;
  16416. }
  16417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16419. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  16420. get {
  16421. if ((this._adapter == null)) {
  16422. this.InitAdapter();
  16423. }
  16424. return this._adapter;
  16425. }
  16426. }
  16427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16429. internal global::System.Data.SqlClient.SqlConnection Connection {
  16430. get {
  16431. if ((this._connection == null)) {
  16432. this.InitConnection();
  16433. }
  16434. return this._connection;
  16435. }
  16436. set {
  16437. this._connection = value;
  16438. if ((this.Adapter.InsertCommand != null)) {
  16439. this.Adapter.InsertCommand.Connection = value;
  16440. }
  16441. if ((this.Adapter.DeleteCommand != null)) {
  16442. this.Adapter.DeleteCommand.Connection = value;
  16443. }
  16444. if ((this.Adapter.UpdateCommand != null)) {
  16445. this.Adapter.UpdateCommand.Connection = value;
  16446. }
  16447. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  16448. if ((this.CommandCollection[i] != null)) {
  16449. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  16450. }
  16451. }
  16452. }
  16453. }
  16454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16456. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  16457. get {
  16458. return this._transaction;
  16459. }
  16460. set {
  16461. this._transaction = value;
  16462. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  16463. this.CommandCollection[i].Transaction = this._transaction;
  16464. }
  16465. if (((this.Adapter != null)
  16466. && (this.Adapter.DeleteCommand != null))) {
  16467. this.Adapter.DeleteCommand.Transaction = this._transaction;
  16468. }
  16469. if (((this.Adapter != null)
  16470. && (this.Adapter.InsertCommand != null))) {
  16471. this.Adapter.InsertCommand.Transaction = this._transaction;
  16472. }
  16473. if (((this.Adapter != null)
  16474. && (this.Adapter.UpdateCommand != null))) {
  16475. this.Adapter.UpdateCommand.Transaction = this._transaction;
  16476. }
  16477. }
  16478. }
  16479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16481. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  16482. get {
  16483. if ((this._commandCollection == null)) {
  16484. this.InitCommandCollection();
  16485. }
  16486. return this._commandCollection;
  16487. }
  16488. }
  16489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16491. public bool ClearBeforeFill {
  16492. get {
  16493. return this._clearBeforeFill;
  16494. }
  16495. set {
  16496. this._clearBeforeFill = value;
  16497. }
  16498. }
  16499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16501. private void InitAdapter() {
  16502. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  16503. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  16504. tableMapping.SourceTable = "Table";
  16505. tableMapping.DataSetTable = "Товары";
  16506. tableMapping.ColumnMappings.Add("код", "код");
  16507. tableMapping.ColumnMappings.Add("название", "название");
  16508. this._adapter.TableMappings.Add(tableMapping);
  16509. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  16510. this._adapter.InsertCommand.Connection = this.Connection;
  16511. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Товары] ([код], [название]) VALUES (@код, @название)";
  16512. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  16513. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@код", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "код", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  16514. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@название", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  16515. }
  16516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16518. private void InitConnection() {
  16519. this._connection = new global::System.Data.SqlClient.SqlConnection();
  16520. this._connection.ConnectionString = global::IS31BorovikAleksandrStudents.Properties.Settings.Default.ConnectionString;
  16521. }
  16522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16524. private void InitCommandCollection() {
  16525. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  16526. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  16527. this._commandCollection[0].Connection = this.Connection;
  16528. this._commandCollection[0].CommandText = "SELECT код, название FROM dbo.Товары";
  16529. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  16530. }
  16531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16533. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16534. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  16535. public virtual int Fill(DataSet1.ТоварыDataTable dataTable) {
  16536. this.Adapter.SelectCommand = this.CommandCollection[0];
  16537. if ((this.ClearBeforeFill == true)) {
  16538. dataTable.Clear();
  16539. }
  16540. int returnValue = this.Adapter.Fill(dataTable);
  16541. return returnValue;
  16542. }
  16543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16545. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16546. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  16547. public virtual DataSet1.ТоварыDataTable GetData() {
  16548. this.Adapter.SelectCommand = this.CommandCollection[0];
  16549. DataSet1.ТоварыDataTable dataTable = new DataSet1.ТоварыDataTable();
  16550. this.Adapter.Fill(dataTable);
  16551. return dataTable;
  16552. }
  16553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16556. public virtual int Update(DataSet1.ТоварыDataTable dataTable) {
  16557. return this.Adapter.Update(dataTable);
  16558. }
  16559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16561. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16562. public virtual int Update(DataSet1 dataSet) {
  16563. return this.Adapter.Update(dataSet, "Товары");
  16564. }
  16565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16567. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16568. public virtual int Update(global::System.Data.DataRow dataRow) {
  16569. return this.Adapter.Update(new global::System.Data.DataRow[] {
  16570. dataRow});
  16571. }
  16572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16574. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16575. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  16576. return this.Adapter.Update(dataRows);
  16577. }
  16578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16580. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  16581. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  16582. public virtual int Insert(global::System.Nullable<int> код, string название) {
  16583. if ((код.HasValue == true)) {
  16584. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(код.Value));
  16585. }
  16586. else {
  16587. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  16588. }
  16589. if ((название == null)) {
  16590. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  16591. }
  16592. else {
  16593. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(название));
  16594. }
  16595. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  16596. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  16597. != global::System.Data.ConnectionState.Open)) {
  16598. this.Adapter.InsertCommand.Connection.Open();
  16599. }
  16600. try {
  16601. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  16602. return returnValue;
  16603. }
  16604. finally {
  16605. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  16606. this.Adapter.InsertCommand.Connection.Close();
  16607. }
  16608. }
  16609. }
  16610. }
  16611. /// <summary>
  16612. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  16613. ///</summary>
  16614. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  16615. [global::System.ComponentModel.ToolboxItem(true)]
  16616. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  16617. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  16618. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  16619. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  16620. private UpdateOrderOption _updateOrder;
  16621. private billinTableAdapter _billinTableAdapter;
  16622. private billingTableAdapter _billingTableAdapter;
  16623. private OrderTableAdapter _orderTableAdapter;
  16624. private OrderProductTableAdapter _orderProductTableAdapter;
  16625. private ProductTableAdapter _productTableAdapter;
  16626. private RoleTableAdapter _roleTableAdapter;
  16627. private tbl_categoriesTableAdapter _tbl_categoriesTableAdapter;
  16628. private tbl_dea_custTableAdapter _tbl_dea_custTableAdapter;
  16629. private tbl_productsTableAdapter _tbl_productsTableAdapter;
  16630. private tbl_transaction_detailTableAdapter _tbl_transaction_detailTableAdapter;
  16631. private tbl_transactionsTableAdapter _tbl_transactionsTableAdapter;
  16632. private tbl_usersTableAdapter _tbl_usersTableAdapter;
  16633. private TovariTableAdapter _tovariTableAdapter;
  16634. private UserTableAdapter _userTableAdapter;
  16635. private woorkersTableAdapter _woorkersTableAdapter;
  16636. private WorkerTableAdapter _workerTableAdapter;
  16637. private WorkersTableAdapter _workersTableAdapter;
  16638. private ПродажиTableAdapter _продажиTableAdapter;
  16639. private ТоварыTableAdapter _товарыTableAdapter;
  16640. private bool _backupDataSetBeforeUpdate;
  16641. private global::System.Data.IDbConnection _connection;
  16642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16644. public UpdateOrderOption UpdateOrder {
  16645. get {
  16646. return this._updateOrder;
  16647. }
  16648. set {
  16649. this._updateOrder = value;
  16650. }
  16651. }
  16652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16654. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16655. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16656. "a", "System.Drawing.Design.UITypeEditor")]
  16657. public billinTableAdapter billinTableAdapter {
  16658. get {
  16659. return this._billinTableAdapter;
  16660. }
  16661. set {
  16662. this._billinTableAdapter = value;
  16663. }
  16664. }
  16665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16667. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16668. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16669. "a", "System.Drawing.Design.UITypeEditor")]
  16670. public billingTableAdapter billingTableAdapter {
  16671. get {
  16672. return this._billingTableAdapter;
  16673. }
  16674. set {
  16675. this._billingTableAdapter = value;
  16676. }
  16677. }
  16678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16680. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16681. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16682. "a", "System.Drawing.Design.UITypeEditor")]
  16683. public OrderTableAdapter OrderTableAdapter {
  16684. get {
  16685. return this._orderTableAdapter;
  16686. }
  16687. set {
  16688. this._orderTableAdapter = value;
  16689. }
  16690. }
  16691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16693. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16694. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16695. "a", "System.Drawing.Design.UITypeEditor")]
  16696. public OrderProductTableAdapter OrderProductTableAdapter {
  16697. get {
  16698. return this._orderProductTableAdapter;
  16699. }
  16700. set {
  16701. this._orderProductTableAdapter = value;
  16702. }
  16703. }
  16704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16706. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16707. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16708. "a", "System.Drawing.Design.UITypeEditor")]
  16709. public ProductTableAdapter ProductTableAdapter {
  16710. get {
  16711. return this._productTableAdapter;
  16712. }
  16713. set {
  16714. this._productTableAdapter = value;
  16715. }
  16716. }
  16717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16719. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16720. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16721. "a", "System.Drawing.Design.UITypeEditor")]
  16722. public RoleTableAdapter RoleTableAdapter {
  16723. get {
  16724. return this._roleTableAdapter;
  16725. }
  16726. set {
  16727. this._roleTableAdapter = value;
  16728. }
  16729. }
  16730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16732. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16733. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16734. "a", "System.Drawing.Design.UITypeEditor")]
  16735. public tbl_categoriesTableAdapter tbl_categoriesTableAdapter {
  16736. get {
  16737. return this._tbl_categoriesTableAdapter;
  16738. }
  16739. set {
  16740. this._tbl_categoriesTableAdapter = value;
  16741. }
  16742. }
  16743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16745. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16746. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16747. "a", "System.Drawing.Design.UITypeEditor")]
  16748. public tbl_dea_custTableAdapter tbl_dea_custTableAdapter {
  16749. get {
  16750. return this._tbl_dea_custTableAdapter;
  16751. }
  16752. set {
  16753. this._tbl_dea_custTableAdapter = value;
  16754. }
  16755. }
  16756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16758. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16759. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16760. "a", "System.Drawing.Design.UITypeEditor")]
  16761. public tbl_productsTableAdapter tbl_productsTableAdapter {
  16762. get {
  16763. return this._tbl_productsTableAdapter;
  16764. }
  16765. set {
  16766. this._tbl_productsTableAdapter = value;
  16767. }
  16768. }
  16769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16771. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16772. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16773. "a", "System.Drawing.Design.UITypeEditor")]
  16774. public tbl_transaction_detailTableAdapter tbl_transaction_detailTableAdapter {
  16775. get {
  16776. return this._tbl_transaction_detailTableAdapter;
  16777. }
  16778. set {
  16779. this._tbl_transaction_detailTableAdapter = value;
  16780. }
  16781. }
  16782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16784. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16785. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16786. "a", "System.Drawing.Design.UITypeEditor")]
  16787. public tbl_transactionsTableAdapter tbl_transactionsTableAdapter {
  16788. get {
  16789. return this._tbl_transactionsTableAdapter;
  16790. }
  16791. set {
  16792. this._tbl_transactionsTableAdapter = value;
  16793. }
  16794. }
  16795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16797. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16798. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16799. "a", "System.Drawing.Design.UITypeEditor")]
  16800. public tbl_usersTableAdapter tbl_usersTableAdapter {
  16801. get {
  16802. return this._tbl_usersTableAdapter;
  16803. }
  16804. set {
  16805. this._tbl_usersTableAdapter = value;
  16806. }
  16807. }
  16808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16810. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16811. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16812. "a", "System.Drawing.Design.UITypeEditor")]
  16813. public TovariTableAdapter TovariTableAdapter {
  16814. get {
  16815. return this._tovariTableAdapter;
  16816. }
  16817. set {
  16818. this._tovariTableAdapter = value;
  16819. }
  16820. }
  16821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16823. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16824. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16825. "a", "System.Drawing.Design.UITypeEditor")]
  16826. public UserTableAdapter UserTableAdapter {
  16827. get {
  16828. return this._userTableAdapter;
  16829. }
  16830. set {
  16831. this._userTableAdapter = value;
  16832. }
  16833. }
  16834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16836. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16837. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16838. "a", "System.Drawing.Design.UITypeEditor")]
  16839. public woorkersTableAdapter woorkersTableAdapter {
  16840. get {
  16841. return this._woorkersTableAdapter;
  16842. }
  16843. set {
  16844. this._woorkersTableAdapter = value;
  16845. }
  16846. }
  16847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16849. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16850. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16851. "a", "System.Drawing.Design.UITypeEditor")]
  16852. public WorkerTableAdapter WorkerTableAdapter {
  16853. get {
  16854. return this._workerTableAdapter;
  16855. }
  16856. set {
  16857. this._workerTableAdapter = value;
  16858. }
  16859. }
  16860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16862. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16863. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16864. "a", "System.Drawing.Design.UITypeEditor")]
  16865. public WorkersTableAdapter WorkersTableAdapter {
  16866. get {
  16867. return this._workersTableAdapter;
  16868. }
  16869. set {
  16870. this._workersTableAdapter = value;
  16871. }
  16872. }
  16873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16875. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16876. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16877. "a", "System.Drawing.Design.UITypeEditor")]
  16878. public ПродажиTableAdapter ПродажиTableAdapter {
  16879. get {
  16880. return this._продажиTableAdapter;
  16881. }
  16882. set {
  16883. this._продажиTableAdapter = value;
  16884. }
  16885. }
  16886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16888. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  16889. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  16890. "a", "System.Drawing.Design.UITypeEditor")]
  16891. public ТоварыTableAdapter ТоварыTableAdapter {
  16892. get {
  16893. return this._товарыTableAdapter;
  16894. }
  16895. set {
  16896. this._товарыTableAdapter = value;
  16897. }
  16898. }
  16899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16901. public bool BackupDataSetBeforeUpdate {
  16902. get {
  16903. return this._backupDataSetBeforeUpdate;
  16904. }
  16905. set {
  16906. this._backupDataSetBeforeUpdate = value;
  16907. }
  16908. }
  16909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  16910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  16911. [global::System.ComponentModel.Browsable(false)]
  16912. public global::System.Data.IDbConnection Connection {
  16913. get {
  16914. if ((this._connection != null)) {
  16915. return this._connection;
  16916. }
  16917. if (((this._billinTableAdapter != null)
  16918. && (this._billinTableAdapter.Connection != null))) {
  16919. return this._billinTableAdapter.Connection;
  16920. }
  16921. if (((this._billingTableAdapter != null)
  16922. && (this._billingTableAdapter.Connection != null))) {
  16923. return this._billingTableAdapter.Connection;
  16924. }
  16925. if (((this._orderTableAdapter != null)
  16926. && (this._orderTableAdapter.Connection != null))) {
  16927. return this._orderTableAdapter.Connection;
  16928. }
  16929. if (((this._orderProductTableAdapter != null)
  16930. && (this._orderProductTableAdapter.Connection != null))) {
  16931. return this._orderProductTableAdapter.Connection;
  16932. }
  16933. if (((this._productTableAdapter != null)
  16934. && (this._productTableAdapter.Connection != null))) {
  16935. return this._productTableAdapter.Connection;
  16936. }
  16937. if (((this._roleTableAdapter != null)
  16938. && (this._roleTableAdapter.Connection != null))) {
  16939. return this._roleTableAdapter.Connection;
  16940. }
  16941. if (((this._tbl_categoriesTableAdapter != null)
  16942. && (this._tbl_categoriesTableAdapter.Connection != null))) {
  16943. return this._tbl_categoriesTableAdapter.Connection;
  16944. }
  16945. if (((this._tbl_dea_custTableAdapter != null)
  16946. && (this._tbl_dea_custTableAdapter.Connection != null))) {
  16947. return this._tbl_dea_custTableAdapter.Connection;
  16948. }
  16949. if (((this._tbl_productsTableAdapter != null)
  16950. && (this._tbl_productsTableAdapter.Connection != null))) {
  16951. return this._tbl_productsTableAdapter.Connection;
  16952. }
  16953. if (((this._tbl_transaction_detailTableAdapter != null)
  16954. && (this._tbl_transaction_detailTableAdapter.Connection != null))) {
  16955. return this._tbl_transaction_detailTableAdapter.Connection;
  16956. }
  16957. if (((this._tbl_transactionsTableAdapter != null)
  16958. && (this._tbl_transactionsTableAdapter.Connection != null))) {
  16959. return this._tbl_transactionsTableAdapter.Connection;
  16960. }
  16961. if (((this._tbl_usersTableAdapter != null)
  16962. && (this._tbl_usersTableAdapter.Connection != null))) {
  16963. return this._tbl_usersTableAdapter.Connection;
  16964. }
  16965. if (((this._tovariTableAdapter != null)
  16966. && (this._tovariTableAdapter.Connection != null))) {
  16967. return this._tovariTableAdapter.Connection;
  16968. }
  16969. if (((this._userTableAdapter != null)
  16970. && (this._userTableAdapter.Connection != null))) {
  16971. return this._userTableAdapter.Connection;
  16972. }
  16973. if (((this._woorkersTableAdapter != null)
  16974. && (this._woorkersTableAdapter.Connection != null))) {
  16975. return this._woorkersTableAdapter.Connection;
  16976. }
  16977. if (((this._workerTableAdapter != null)
  16978. && (this._workerTableAdapter.Connection != null))) {
  16979. return this._workerTableAdapter.Connection;
  16980. }
  16981. if (((this._workersTableAdapter != null)
  16982. && (this._workersTableAdapter.Connection != null))) {
  16983. return this._workersTableAdapter.Connection;
  16984. }
  16985. if (((this._продажиTableAdapter != null)
  16986. && (this._продажиTableAdapter.Connection != null))) {
  16987. return this._продажиTableAdapter.Connection;
  16988. }
  16989. if (((this._товарыTableAdapter != null)
  16990. && (this._товарыTableAdapter.Connection != null))) {
  16991. return this._товарыTableAdapter.Connection;
  16992. }
  16993. return null;
  16994. }
  16995. set {
  16996. this._connection = value;
  16997. }
  16998. }
  16999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  17000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  17001. [global::System.ComponentModel.Browsable(false)]
  17002. public int TableAdapterInstanceCount {
  17003. get {
  17004. int count = 0;
  17005. if ((this._billinTableAdapter != null)) {
  17006. count = (count + 1);
  17007. }
  17008. if ((this._billingTableAdapter != null)) {
  17009. count = (count + 1);
  17010. }
  17011. if ((this._orderTableAdapter != null)) {
  17012. count = (count + 1);
  17013. }
  17014. if ((this._orderProductTableAdapter != null)) {
  17015. count = (count + 1);
  17016. }
  17017. if ((this._productTableAdapter != null)) {
  17018. count = (count + 1);
  17019. }
  17020. if ((this._roleTableAdapter != null)) {
  17021. count = (count + 1);
  17022. }
  17023. if ((this._tbl_categoriesTableAdapter != null)) {
  17024. count = (count + 1);
  17025. }
  17026. if ((this._tbl_dea_custTableAdapter != null)) {
  17027. count = (count + 1);
  17028. }
  17029. if ((this._tbl_productsTableAdapter != null)) {
  17030. count = (count + 1);
  17031. }
  17032. if ((this._tbl_transaction_detailTableAdapter != null)) {
  17033. count = (count + 1);
  17034. }
  17035. if ((this._tbl_transactionsTableAdapter != null)) {
  17036. count = (count + 1);
  17037. }
  17038. if ((this._tbl_usersTableAdapter != null)) {
  17039. count = (count + 1);
  17040. }
  17041. if ((this._tovariTableAdapter != null)) {
  17042. count = (count + 1);
  17043. }
  17044. if ((this._userTableAdapter != null)) {
  17045. count = (count + 1);
  17046. }
  17047. if ((this._woorkersTableAdapter != null)) {
  17048. count = (count + 1);
  17049. }
  17050. if ((this._workerTableAdapter != null)) {
  17051. count = (count + 1);
  17052. }
  17053. if ((this._workersTableAdapter != null)) {
  17054. count = (count + 1);
  17055. }
  17056. if ((this._продажиTableAdapter != null)) {
  17057. count = (count + 1);
  17058. }
  17059. if ((this._товарыTableAdapter != null)) {
  17060. count = (count + 1);
  17061. }
  17062. return count;
  17063. }
  17064. }
  17065. /// <summary>
  17066. ///Update rows in top-down order.
  17067. ///</summary>
  17068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  17069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  17070. private int UpdateUpdatedRows(DataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  17071. int result = 0;
  17072. if ((this._orderTableAdapter != null)) {
  17073. global::System.Data.DataRow[] updatedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17074. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17075. if (((updatedRows != null)
  17076. && (0 < updatedRows.Length))) {
  17077. result = (result + this._orderTableAdapter.Update(updatedRows));
  17078. allChangedRows.AddRange(updatedRows);
  17079. }
  17080. }
  17081. if ((this._productTableAdapter != null)) {
  17082. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17083. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17084. if (((updatedRows != null)
  17085. && (0 < updatedRows.Length))) {
  17086. result = (result + this._productTableAdapter.Update(updatedRows));
  17087. allChangedRows.AddRange(updatedRows);
  17088. }
  17089. }
  17090. if ((this._roleTableAdapter != null)) {
  17091. global::System.Data.DataRow[] updatedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17092. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17093. if (((updatedRows != null)
  17094. && (0 < updatedRows.Length))) {
  17095. result = (result + this._roleTableAdapter.Update(updatedRows));
  17096. allChangedRows.AddRange(updatedRows);
  17097. }
  17098. }
  17099. if ((this._billinTableAdapter != null)) {
  17100. global::System.Data.DataRow[] updatedRows = dataSet.billin.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17101. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17102. if (((updatedRows != null)
  17103. && (0 < updatedRows.Length))) {
  17104. result = (result + this._billinTableAdapter.Update(updatedRows));
  17105. allChangedRows.AddRange(updatedRows);
  17106. }
  17107. }
  17108. if ((this._workersTableAdapter != null)) {
  17109. global::System.Data.DataRow[] updatedRows = dataSet.Workers.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17110. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17111. if (((updatedRows != null)
  17112. && (0 < updatedRows.Length))) {
  17113. result = (result + this._workersTableAdapter.Update(updatedRows));
  17114. allChangedRows.AddRange(updatedRows);
  17115. }
  17116. }
  17117. if ((this._workerTableAdapter != null)) {
  17118. global::System.Data.DataRow[] updatedRows = dataSet.Worker.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17119. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17120. if (((updatedRows != null)
  17121. && (0 < updatedRows.Length))) {
  17122. result = (result + this._workerTableAdapter.Update(updatedRows));
  17123. allChangedRows.AddRange(updatedRows);
  17124. }
  17125. }
  17126. if ((this._woorkersTableAdapter != null)) {
  17127. global::System.Data.DataRow[] updatedRows = dataSet.woorkers.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17128. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17129. if (((updatedRows != null)
  17130. && (0 < updatedRows.Length))) {
  17131. result = (result + this._woorkersTableAdapter.Update(updatedRows));
  17132. allChangedRows.AddRange(updatedRows);
  17133. }
  17134. }
  17135. if ((this._userTableAdapter != null)) {
  17136. global::System.Data.DataRow[] updatedRows = dataSet.User.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17137. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17138. if (((updatedRows != null)
  17139. && (0 < updatedRows.Length))) {
  17140. result = (result + this._userTableAdapter.Update(updatedRows));
  17141. allChangedRows.AddRange(updatedRows);
  17142. }
  17143. }
  17144. if ((this._tovariTableAdapter != null)) {
  17145. global::System.Data.DataRow[] updatedRows = dataSet.Tovari.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17146. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17147. if (((updatedRows != null)
  17148. && (0 < updatedRows.Length))) {
  17149. result = (result + this._tovariTableAdapter.Update(updatedRows));
  17150. allChangedRows.AddRange(updatedRows);
  17151. }
  17152. }
  17153. if ((this._tbl_usersTableAdapter != null)) {
  17154. global::System.Data.DataRow[] updatedRows = dataSet.tbl_users.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17155. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17156. if (((updatedRows != null)
  17157. && (0 < updatedRows.Length))) {
  17158. result = (result + this._tbl_usersTableAdapter.Update(updatedRows));
  17159. allChangedRows.AddRange(updatedRows);
  17160. }
  17161. }
  17162. if ((this._tbl_transaction_detailTableAdapter != null)) {
  17163. global::System.Data.DataRow[] updatedRows = dataSet.tbl_transaction_detail.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17164. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17165. if (((updatedRows != null)
  17166. && (0 < updatedRows.Length))) {
  17167. result = (result + this._tbl_transaction_detailTableAdapter.Update(updatedRows));
  17168. allChangedRows.AddRange(updatedRows);
  17169. }
  17170. }
  17171. if ((this._продажиTableAdapter != null)) {
  17172. global::System.Data.DataRow[] updatedRows = dataSet.Продажи.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17173. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17174. if (((updatedRows != null)
  17175. && (0 < updatedRows.Length))) {
  17176. result = (result + this._продажиTableAdapter.Update(updatedRows));
  17177. allChangedRows.AddRange(updatedRows);
  17178. }
  17179. }
  17180. if ((this._tbl_productsTableAdapter != null)) {
  17181. global::System.Data.DataRow[] updatedRows = dataSet.tbl_products.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17182. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17183. if (((updatedRows != null)
  17184. && (0 < updatedRows.Length))) {
  17185. result = (result + this._tbl_productsTableAdapter.Update(updatedRows));
  17186. allChangedRows.AddRange(updatedRows);
  17187. }
  17188. }
  17189. if ((this._tbl_dea_custTableAdapter != null)) {
  17190. global::System.Data.DataRow[] updatedRows = dataSet.tbl_dea_cust.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17191. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17192. if (((updatedRows != null)
  17193. && (0 < updatedRows.Length))) {
  17194. result = (result + this._tbl_dea_custTableAdapter.Update(updatedRows));
  17195. allChangedRows.AddRange(updatedRows);
  17196. }
  17197. }
  17198. if ((this._tbl_categoriesTableAdapter != null)) {
  17199. global::System.Data.DataRow[] updatedRows = dataSet.tbl_categories.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17200. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17201. if (((updatedRows != null)
  17202. && (0 < updatedRows.Length))) {
  17203. result = (result + this._tbl_categoriesTableAdapter.Update(updatedRows));
  17204. allChangedRows.AddRange(updatedRows);
  17205. }
  17206. }
  17207. if ((this._orderProductTableAdapter != null)) {
  17208. global::System.Data.DataRow[] updatedRows = dataSet.OrderProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17209. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17210. if (((updatedRows != null)
  17211. && (0 < updatedRows.Length))) {
  17212. result = (result + this._orderProductTableAdapter.Update(updatedRows));
  17213. allChangedRows.AddRange(updatedRows);
  17214. }
  17215. }
  17216. if ((this._billingTableAdapter != null)) {
  17217. global::System.Data.DataRow[] updatedRows = dataSet.billing.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17218. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17219. if (((updatedRows != null)
  17220. && (0 < updatedRows.Length))) {
  17221. result = (result + this._billingTableAdapter.Update(updatedRows));
  17222. allChangedRows.AddRange(updatedRows);
  17223. }
  17224. }
  17225. if ((this._tbl_transactionsTableAdapter != null)) {
  17226. global::System.Data.DataRow[] updatedRows = dataSet.tbl_transactions.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17227. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17228. if (((updatedRows != null)
  17229. && (0 < updatedRows.Length))) {
  17230. result = (result + this._tbl_transactionsTableAdapter.Update(updatedRows));
  17231. allChangedRows.AddRange(updatedRows);
  17232. }
  17233. }
  17234. if ((this._товарыTableAdapter != null)) {
  17235. global::System.Data.DataRow[] updatedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  17236. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  17237. if (((updatedRows != null)
  17238. && (0 < updatedRows.Length))) {
  17239. result = (result + this._товарыTableAdapter.Update(updatedRows));
  17240. allChangedRows.AddRange(updatedRows);
  17241. }
  17242. }
  17243. return result;
  17244. }
  17245. /// <summary>
  17246. ///Insert rows in top-down order.
  17247. ///</summary>
  17248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  17249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  17250. private int UpdateInsertedRows(DataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  17251. int result = 0;
  17252. if ((this._orderTableAdapter != null)) {
  17253. global::System.Data.DataRow[] addedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.Added);
  17254. if (((addedRows != null)
  17255. && (0 < addedRows.Length))) {
  17256. result = (result + this._orderTableAdapter.Update(addedRows));
  17257. allAddedRows.AddRange(addedRows);
  17258. }
  17259. }
  17260. if ((this._productTableAdapter != null)) {
  17261. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  17262. if (((addedRows != null)
  17263. && (0 < addedRows.Length))) {
  17264. result = (result + this._productTableAdapter.Update(addedRows));
  17265. allAddedRows.AddRange(addedRows);
  17266. }
  17267. }
  17268. if ((this._roleTableAdapter != null)) {
  17269. global::System.Data.DataRow[] addedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Added);
  17270. if (((addedRows != null)
  17271. && (0 < addedRows.Length))) {
  17272. result = (result + this._roleTableAdapter.Update(addedRows));
  17273. allAddedRows.AddRange(addedRows);
  17274. }
  17275. }
  17276. if ((this._billinTableAdapter != null)) {
  17277. global::System.Data.DataRow[] addedRows = dataSet.billin.Select(null, null, global::System.Data.DataViewRowState.Added);
  17278. if (((addedRows != null)
  17279. && (0 < addedRows.Length))) {
  17280. result = (result + this._billinTableAdapter.Update(addedRows));
  17281. allAddedRows.AddRange(addedRows);
  17282. }
  17283. }
  17284. if ((this._workersTableAdapter != null)) {
  17285. global::System.Data.DataRow[] addedRows = dataSet.Workers.Select(null, null, global::System.Data.DataViewRowState.Added);
  17286. if (((addedRows != null)
  17287. && (0 < addedRows.Length))) {
  17288. result = (result + this._workersTableAdapter.Update(addedRows));
  17289. allAddedRows.AddRange(addedRows);
  17290. }
  17291. }
  17292. if ((this._workerTableAdapter != null)) {
  17293. global::System.Data.DataRow[] addedRows = dataSet.Worker.Select(null, null, global::System.Data.DataViewRowState.Added);
  17294. if (((addedRows != null)
  17295. && (0 < addedRows.Length))) {
  17296. result = (result + this._workerTableAdapter.Update(addedRows));
  17297. allAddedRows.AddRange(addedRows);
  17298. }
  17299. }
  17300. if ((this._woorkersTableAdapter != null)) {
  17301. global::System.Data.DataRow[] addedRows = dataSet.woorkers.Select(null, null, global::System.Data.DataViewRowState.Added);
  17302. if (((addedRows != null)
  17303. && (0 < addedRows.Length))) {
  17304. result = (result + this._woorkersTableAdapter.Update(addedRows));
  17305. allAddedRows.AddRange(addedRows);
  17306. }
  17307. }
  17308. if ((this._userTableAdapter != null)) {
  17309. global::System.Data.DataRow[] addedRows = dataSet.User.Select(null, null, global::System.Data.DataViewRowState.Added);
  17310. if (((addedRows != null)
  17311. && (0 < addedRows.Length))) {
  17312. result = (result + this._userTableAdapter.Update(addedRows));
  17313. allAddedRows.AddRange(addedRows);
  17314. }
  17315. }
  17316. if ((this._tovariTableAdapter != null)) {
  17317. global::System.Data.DataRow[] addedRows = dataSet.Tovari.Select(null, null, global::System.Data.DataViewRowState.Added);
  17318. if (((addedRows != null)
  17319. && (0 < addedRows.Length))) {
  17320. result = (result + this._tovariTableAdapter.Update(addedRows));
  17321. allAddedRows.AddRange(addedRows);
  17322. }
  17323. }
  17324. if ((this._tbl_usersTableAdapter != null)) {
  17325. global::System.Data.DataRow[] addedRows = dataSet.tbl_users.Select(null, null, global::System.Data.DataViewRowState.Added);
  17326. if (((addedRows != null)
  17327. && (0 < addedRows.Length))) {
  17328. result = (result + this._tbl_usersTableAdapter.Update(addedRows));
  17329. allAddedRows.AddRange(addedRows);
  17330. }
  17331. }
  17332. if ((this._tbl_transaction_detailTableAdapter != null)) {
  17333. global::System.Data.DataRow[] addedRows = dataSet.tbl_transaction_detail.Select(null, null, global::System.Data.DataViewRowState.Added);
  17334. if (((addedRows != null)
  17335. && (0 < addedRows.Length))) {
  17336. result = (result + this._tbl_transaction_detailTableAdapter.Update(addedRows));
  17337. allAddedRows.AddRange(addedRows);
  17338. }
  17339. }
  17340. if ((this._продажиTableAdapter != null)) {
  17341. global::System.Data.DataRow[] addedRows = dataSet.Продажи.Select(null, null, global::System.Data.DataViewRowState.Added);
  17342. if (((addedRows != null)
  17343. && (0 < addedRows.Length))) {
  17344. result = (result + this._продажиTableAdapter.Update(addedRows));
  17345. allAddedRows.AddRange(addedRows);
  17346. }
  17347. }
  17348. if ((this._tbl_productsTableAdapter != null)) {
  17349. global::System.Data.DataRow[] addedRows = dataSet.tbl_products.Select(null, null, global::System.Data.DataViewRowState.Added);
  17350. if (((addedRows != null)
  17351. && (0 < addedRows.Length))) {
  17352. result = (result + this._tbl_productsTableAdapter.Update(addedRows));
  17353. allAddedRows.AddRange(addedRows);
  17354. }
  17355. }
  17356. if ((this._tbl_dea_custTableAdapter != null)) {
  17357. global::System.Data.DataRow[] addedRows = dataSet.tbl_dea_cust.Select(null, null, global::System.Data.DataViewRowState.Added);
  17358. if (((addedRows != null)
  17359. && (0 < addedRows.Length))) {
  17360. result = (result + this._tbl_dea_custTableAdapter.Update(addedRows));
  17361. allAddedRows.AddRange(addedRows);
  17362. }
  17363. }
  17364. if ((this._tbl_categoriesTableAdapter != null)) {
  17365. global::System.Data.DataRow[] addedRows = dataSet.tbl_categories.Select(null, null, global::System.Data.DataViewRowState.Added);
  17366. if (((addedRows != null)
  17367. && (0 < addedRows.Length))) {
  17368. result = (result + this._tbl_categoriesTableAdapter.Update(addedRows));
  17369. allAddedRows.AddRange(addedRows);
  17370. }
  17371. }
  17372. if ((this._orderProductTableAdapter != null)) {
  17373. global::System.Data.DataRow[] addedRows = dataSet.OrderProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  17374. if (((addedRows != null)
  17375. && (0 < addedRows.Length))) {
  17376. result = (result + this._orderProductTableAdapter.Update(addedRows));
  17377. allAddedRows.AddRange(addedRows);
  17378. }
  17379. }
  17380. if ((this._billingTableAdapter != null)) {
  17381. global::System.Data.DataRow[] addedRows = dataSet.billing.Select(null, null, global::System.Data.DataViewRowState.Added);
  17382. if (((addedRows != null)
  17383. && (0 < addedRows.Length))) {
  17384. result = (result + this._billingTableAdapter.Update(addedRows));
  17385. allAddedRows.AddRange(addedRows);
  17386. }
  17387. }
  17388. if ((this._tbl_transactionsTableAdapter != null)) {
  17389. global::System.Data.DataRow[] addedRows = dataSet.tbl_transactions.Select(null, null, global::System.Data.DataViewRowState.Added);
  17390. if (((addedRows != null)
  17391. && (0 < addedRows.Length))) {
  17392. result = (result + this._tbl_transactionsTableAdapter.Update(addedRows));
  17393. allAddedRows.AddRange(addedRows);
  17394. }
  17395. }
  17396. if ((this._товарыTableAdapter != null)) {
  17397. global::System.Data.DataRow[] addedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.Added);
  17398. if (((addedRows != null)
  17399. && (0 < addedRows.Length))) {
  17400. result = (result + this._товарыTableAdapter.Update(addedRows));
  17401. allAddedRows.AddRange(addedRows);
  17402. }
  17403. }
  17404. return result;
  17405. }
  17406. /// <summary>
  17407. ///Delete rows in bottom-up order.
  17408. ///</summary>
  17409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  17410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  17411. private int UpdateDeletedRows(DataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  17412. int result = 0;
  17413. if ((this._товарыTableAdapter != null)) {
  17414. global::System.Data.DataRow[] deletedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17415. if (((deletedRows != null)
  17416. && (0 < deletedRows.Length))) {
  17417. result = (result + this._товарыTableAdapter.Update(deletedRows));
  17418. allChangedRows.AddRange(deletedRows);
  17419. }
  17420. }
  17421. if ((this._tbl_transactionsTableAdapter != null)) {
  17422. global::System.Data.DataRow[] deletedRows = dataSet.tbl_transactions.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17423. if (((deletedRows != null)
  17424. && (0 < deletedRows.Length))) {
  17425. result = (result + this._tbl_transactionsTableAdapter.Update(deletedRows));
  17426. allChangedRows.AddRange(deletedRows);
  17427. }
  17428. }
  17429. if ((this._billingTableAdapter != null)) {
  17430. global::System.Data.DataRow[] deletedRows = dataSet.billing.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17431. if (((deletedRows != null)
  17432. && (0 < deletedRows.Length))) {
  17433. result = (result + this._billingTableAdapter.Update(deletedRows));
  17434. allChangedRows.AddRange(deletedRows);
  17435. }
  17436. }
  17437. if ((this._orderProductTableAdapter != null)) {
  17438. global::System.Data.DataRow[] deletedRows = dataSet.OrderProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17439. if (((deletedRows != null)
  17440. && (0 < deletedRows.Length))) {
  17441. result = (result + this._orderProductTableAdapter.Update(deletedRows));
  17442. allChangedRows.AddRange(deletedRows);
  17443. }
  17444. }
  17445. if ((this._tbl_categoriesTableAdapter != null)) {
  17446. global::System.Data.DataRow[] deletedRows = dataSet.tbl_categories.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17447. if (((deletedRows != null)
  17448. && (0 < deletedRows.Length))) {
  17449. result = (result + this._tbl_categoriesTableAdapter.Update(deletedRows));
  17450. allChangedRows.AddRange(deletedRows);
  17451. }
  17452. }
  17453. if ((this._tbl_dea_custTableAdapter != null)) {
  17454. global::System.Data.DataRow[] deletedRows = dataSet.tbl_dea_cust.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17455. if (((deletedRows != null)
  17456. && (0 < deletedRows.Length))) {
  17457. result = (result + this._tbl_dea_custTableAdapter.Update(deletedRows));
  17458. allChangedRows.AddRange(deletedRows);
  17459. }
  17460. }
  17461. if ((this._tbl_productsTableAdapter != null)) {
  17462. global::System.Data.DataRow[] deletedRows = dataSet.tbl_products.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17463. if (((deletedRows != null)
  17464. && (0 < deletedRows.Length))) {
  17465. result = (result + this._tbl_productsTableAdapter.Update(deletedRows));
  17466. allChangedRows.AddRange(deletedRows);
  17467. }
  17468. }
  17469. if ((this._продажиTableAdapter != null)) {
  17470. global::System.Data.DataRow[] deletedRows = dataSet.Продажи.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17471. if (((deletedRows != null)
  17472. && (0 < deletedRows.Length))) {
  17473. result = (result + this._продажиTableAdapter.Update(deletedRows));
  17474. allChangedRows.AddRange(deletedRows);
  17475. }
  17476. }
  17477. if ((this._tbl_transaction_detailTableAdapter != null)) {
  17478. global::System.Data.DataRow[] deletedRows = dataSet.tbl_transaction_detail.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17479. if (((deletedRows != null)
  17480. && (0 < deletedRows.Length))) {
  17481. result = (result + this._tbl_transaction_detailTableAdapter.Update(deletedRows));
  17482. allChangedRows.AddRange(deletedRows);
  17483. }
  17484. }
  17485. if ((this._tbl_usersTableAdapter != null)) {
  17486. global::System.Data.DataRow[] deletedRows = dataSet.tbl_users.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17487. if (((deletedRows != null)
  17488. && (0 < deletedRows.Length))) {
  17489. result = (result + this._tbl_usersTableAdapter.Update(deletedRows));
  17490. allChangedRows.AddRange(deletedRows);
  17491. }
  17492. }
  17493. if ((this._tovariTableAdapter != null)) {
  17494. global::System.Data.DataRow[] deletedRows = dataSet.Tovari.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17495. if (((deletedRows != null)
  17496. && (0 < deletedRows.Length))) {
  17497. result = (result + this._tovariTableAdapter.Update(deletedRows));
  17498. allChangedRows.AddRange(deletedRows);
  17499. }
  17500. }
  17501. if ((this._userTableAdapter != null)) {
  17502. global::System.Data.DataRow[] deletedRows = dataSet.User.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17503. if (((deletedRows != null)
  17504. && (0 < deletedRows.Length))) {
  17505. result = (result + this._userTableAdapter.Update(deletedRows));
  17506. allChangedRows.AddRange(deletedRows);
  17507. }
  17508. }
  17509. if ((this._woorkersTableAdapter != null)) {
  17510. global::System.Data.DataRow[] deletedRows = dataSet.woorkers.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17511. if (((deletedRows != null)
  17512. && (0 < deletedRows.Length))) {
  17513. result = (result + this._woorkersTableAdapter.Update(deletedRows));
  17514. allChangedRows.AddRange(deletedRows);
  17515. }
  17516. }
  17517. if ((this._workerTableAdapter != null)) {
  17518. global::System.Data.DataRow[] deletedRows = dataSet.Worker.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17519. if (((deletedRows != null)
  17520. && (0 < deletedRows.Length))) {
  17521. result = (result + this._workerTableAdapter.Update(deletedRows));
  17522. allChangedRows.AddRange(deletedRows);
  17523. }
  17524. }
  17525. if ((this._workersTableAdapter != null)) {
  17526. global::System.Data.DataRow[] deletedRows = dataSet.Workers.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17527. if (((deletedRows != null)
  17528. && (0 < deletedRows.Length))) {
  17529. result = (result + this._workersTableAdapter.Update(deletedRows));
  17530. allChangedRows.AddRange(deletedRows);
  17531. }
  17532. }
  17533. if ((this._billinTableAdapter != null)) {
  17534. global::System.Data.DataRow[] deletedRows = dataSet.billin.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17535. if (((deletedRows != null)
  17536. && (0 < deletedRows.Length))) {
  17537. result = (result + this._billinTableAdapter.Update(deletedRows));
  17538. allChangedRows.AddRange(deletedRows);
  17539. }
  17540. }
  17541. if ((this._roleTableAdapter != null)) {
  17542. global::System.Data.DataRow[] deletedRows = dataSet.Role.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17543. if (((deletedRows != null)
  17544. && (0 < deletedRows.Length))) {
  17545. result = (result + this._roleTableAdapter.Update(deletedRows));
  17546. allChangedRows.AddRange(deletedRows);
  17547. }
  17548. }
  17549. if ((this._productTableAdapter != null)) {
  17550. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17551. if (((deletedRows != null)
  17552. && (0 < deletedRows.Length))) {
  17553. result = (result + this._productTableAdapter.Update(deletedRows));
  17554. allChangedRows.AddRange(deletedRows);
  17555. }
  17556. }
  17557. if ((this._orderTableAdapter != null)) {
  17558. global::System.Data.DataRow[] deletedRows = dataSet.Order.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  17559. if (((deletedRows != null)
  17560. && (0 < deletedRows.Length))) {
  17561. result = (result + this._orderTableAdapter.Update(deletedRows));
  17562. allChangedRows.AddRange(deletedRows);
  17563. }
  17564. }
  17565. return result;
  17566. }
  17567. /// <summary>
  17568. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  17569. ///</summary>
  17570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  17571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  17572. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  17573. if (((updatedRows == null)
  17574. || (updatedRows.Length < 1))) {
  17575. return updatedRows;
  17576. }
  17577. if (((allAddedRows == null)
  17578. || (allAddedRows.Count < 1))) {
  17579. return updatedRows;
  17580. }
  17581. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  17582. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  17583. global::System.Data.DataRow row = updatedRows[i];
  17584. if ((allAddedRows.Contains(row) == false)) {
  17585. realUpdatedRows.Add(row);
  17586. }
  17587. }
  17588. return realUpdatedRows.ToArray();
  17589. }
  17590. /// <summary>
  17591. ///Update all changes to the dataset.
  17592. ///</summary>
  17593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  17594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  17595. public virtual int UpdateAll(DataSet1 dataSet) {
  17596. if ((dataSet == null)) {
  17597. throw new global::System.ArgumentNullException("dataSet");
  17598. }
  17599. if ((dataSet.HasChanges() == false)) {
  17600. return 0;
  17601. }
  17602. if (((this._billinTableAdapter != null)
  17603. && (this.MatchTableAdapterConnection(this._billinTableAdapter.Connection) == false))) {
  17604. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17605. "r, должны использовать одинаковую строку подключения.");
  17606. }
  17607. if (((this._billingTableAdapter != null)
  17608. && (this.MatchTableAdapterConnection(this._billingTableAdapter.Connection) == false))) {
  17609. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17610. "r, должны использовать одинаковую строку подключения.");
  17611. }
  17612. if (((this._orderTableAdapter != null)
  17613. && (this.MatchTableAdapterConnection(this._orderTableAdapter.Connection) == false))) {
  17614. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17615. "r, должны использовать одинаковую строку подключения.");
  17616. }
  17617. if (((this._orderProductTableAdapter != null)
  17618. && (this.MatchTableAdapterConnection(this._orderProductTableAdapter.Connection) == false))) {
  17619. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17620. "r, должны использовать одинаковую строку подключения.");
  17621. }
  17622. if (((this._productTableAdapter != null)
  17623. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  17624. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17625. "r, должны использовать одинаковую строку подключения.");
  17626. }
  17627. if (((this._roleTableAdapter != null)
  17628. && (this.MatchTableAdapterConnection(this._roleTableAdapter.Connection) == false))) {
  17629. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17630. "r, должны использовать одинаковую строку подключения.");
  17631. }
  17632. if (((this._tbl_categoriesTableAdapter != null)
  17633. && (this.MatchTableAdapterConnection(this._tbl_categoriesTableAdapter.Connection) == false))) {
  17634. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17635. "r, должны использовать одинаковую строку подключения.");
  17636. }
  17637. if (((this._tbl_dea_custTableAdapter != null)
  17638. && (this.MatchTableAdapterConnection(this._tbl_dea_custTableAdapter.Connection) == false))) {
  17639. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17640. "r, должны использовать одинаковую строку подключения.");
  17641. }
  17642. if (((this._tbl_productsTableAdapter != null)
  17643. && (this.MatchTableAdapterConnection(this._tbl_productsTableAdapter.Connection) == false))) {
  17644. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17645. "r, должны использовать одинаковую строку подключения.");
  17646. }
  17647. if (((this._tbl_transaction_detailTableAdapter != null)
  17648. && (this.MatchTableAdapterConnection(this._tbl_transaction_detailTableAdapter.Connection) == false))) {
  17649. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17650. "r, должны использовать одинаковую строку подключения.");
  17651. }
  17652. if (((this._tbl_transactionsTableAdapter != null)
  17653. && (this.MatchTableAdapterConnection(this._tbl_transactionsTableAdapter.Connection) == false))) {
  17654. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17655. "r, должны использовать одинаковую строку подключения.");
  17656. }
  17657. if (((this._tbl_usersTableAdapter != null)
  17658. && (this.MatchTableAdapterConnection(this._tbl_usersTableAdapter.Connection) == false))) {
  17659. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17660. "r, должны использовать одинаковую строку подключения.");
  17661. }
  17662. if (((this._tovariTableAdapter != null)
  17663. && (this.MatchTableAdapterConnection(this._tovariTableAdapter.Connection) == false))) {
  17664. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17665. "r, должны использовать одинаковую строку подключения.");
  17666. }
  17667. if (((this._userTableAdapter != null)
  17668. && (this.MatchTableAdapterConnection(this._userTableAdapter.Connection) == false))) {
  17669. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17670. "r, должны использовать одинаковую строку подключения.");
  17671. }
  17672. if (((this._woorkersTableAdapter != null)
  17673. && (this.MatchTableAdapterConnection(this._woorkersTableAdapter.Connection) == false))) {
  17674. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17675. "r, должны использовать одинаковую строку подключения.");
  17676. }
  17677. if (((this._workerTableAdapter != null)
  17678. && (this.MatchTableAdapterConnection(this._workerTableAdapter.Connection) == false))) {
  17679. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17680. "r, должны использовать одинаковую строку подключения.");
  17681. }
  17682. if (((this._workersTableAdapter != null)
  17683. && (this.MatchTableAdapterConnection(this._workersTableAdapter.Connection) == false))) {
  17684. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17685. "r, должны использовать одинаковую строку подключения.");
  17686. }
  17687. if (((this._продажиTableAdapter != null)
  17688. && (this.MatchTableAdapterConnection(this._продажиTableAdapter.Connection) == false))) {
  17689. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17690. "r, должны использовать одинаковую строку подключения.");
  17691. }
  17692. if (((this._товарыTableAdapter != null)
  17693. && (this.MatchTableAdapterConnection(this._товарыTableAdapter.Connection) == false))) {
  17694. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  17695. "r, должны использовать одинаковую строку подключения.");
  17696. }
  17697. global::System.Data.IDbConnection workConnection = this.Connection;
  17698. if ((workConnection == null)) {
  17699. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  17700. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  17701. }
  17702. bool workConnOpened = false;
  17703. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  17704. == global::System.Data.ConnectionState.Broken)) {
  17705. workConnection.Close();
  17706. }
  17707. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  17708. workConnection.Open();
  17709. workConnOpened = true;
  17710. }
  17711. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  17712. if ((workTransaction == null)) {
  17713. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  17714. "и или текущее состояние не позволяет начать транзакцию.");
  17715. }
  17716. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  17717. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  17718. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  17719. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  17720. int result = 0;
  17721. global::System.Data.DataSet backupDataSet = null;
  17722. if (this.BackupDataSetBeforeUpdate) {
  17723. backupDataSet = new global::System.Data.DataSet();
  17724. backupDataSet.Merge(dataSet);
  17725. }
  17726. try {
  17727. // ---- Prepare for update -----------
  17728. //
  17729. if ((this._billinTableAdapter != null)) {
  17730. revertConnections.Add(this._billinTableAdapter, this._billinTableAdapter.Connection);
  17731. this._billinTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17732. this._billinTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17733. if (this._billinTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17734. this._billinTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17735. adaptersWithAcceptChangesDuringUpdate.Add(this._billinTableAdapter.Adapter);
  17736. }
  17737. }
  17738. if ((this._billingTableAdapter != null)) {
  17739. revertConnections.Add(this._billingTableAdapter, this._billingTableAdapter.Connection);
  17740. this._billingTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17741. this._billingTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17742. if (this._billingTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17743. this._billingTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17744. adaptersWithAcceptChangesDuringUpdate.Add(this._billingTableAdapter.Adapter);
  17745. }
  17746. }
  17747. if ((this._orderTableAdapter != null)) {
  17748. revertConnections.Add(this._orderTableAdapter, this._orderTableAdapter.Connection);
  17749. this._orderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17750. this._orderTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17751. if (this._orderTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17752. this._orderTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17753. adaptersWithAcceptChangesDuringUpdate.Add(this._orderTableAdapter.Adapter);
  17754. }
  17755. }
  17756. if ((this._orderProductTableAdapter != null)) {
  17757. revertConnections.Add(this._orderProductTableAdapter, this._orderProductTableAdapter.Connection);
  17758. this._orderProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17759. this._orderProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17760. if (this._orderProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17761. this._orderProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17762. adaptersWithAcceptChangesDuringUpdate.Add(this._orderProductTableAdapter.Adapter);
  17763. }
  17764. }
  17765. if ((this._productTableAdapter != null)) {
  17766. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  17767. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17768. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17769. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17770. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17771. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  17772. }
  17773. }
  17774. if ((this._roleTableAdapter != null)) {
  17775. revertConnections.Add(this._roleTableAdapter, this._roleTableAdapter.Connection);
  17776. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17777. this._roleTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17778. if (this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17779. this._roleTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17780. adaptersWithAcceptChangesDuringUpdate.Add(this._roleTableAdapter.Adapter);
  17781. }
  17782. }
  17783. if ((this._tbl_categoriesTableAdapter != null)) {
  17784. revertConnections.Add(this._tbl_categoriesTableAdapter, this._tbl_categoriesTableAdapter.Connection);
  17785. this._tbl_categoriesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17786. this._tbl_categoriesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17787. if (this._tbl_categoriesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17788. this._tbl_categoriesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17789. adaptersWithAcceptChangesDuringUpdate.Add(this._tbl_categoriesTableAdapter.Adapter);
  17790. }
  17791. }
  17792. if ((this._tbl_dea_custTableAdapter != null)) {
  17793. revertConnections.Add(this._tbl_dea_custTableAdapter, this._tbl_dea_custTableAdapter.Connection);
  17794. this._tbl_dea_custTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17795. this._tbl_dea_custTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17796. if (this._tbl_dea_custTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17797. this._tbl_dea_custTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17798. adaptersWithAcceptChangesDuringUpdate.Add(this._tbl_dea_custTableAdapter.Adapter);
  17799. }
  17800. }
  17801. if ((this._tbl_productsTableAdapter != null)) {
  17802. revertConnections.Add(this._tbl_productsTableAdapter, this._tbl_productsTableAdapter.Connection);
  17803. this._tbl_productsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17804. this._tbl_productsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17805. if (this._tbl_productsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17806. this._tbl_productsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17807. adaptersWithAcceptChangesDuringUpdate.Add(this._tbl_productsTableAdapter.Adapter);
  17808. }
  17809. }
  17810. if ((this._tbl_transaction_detailTableAdapter != null)) {
  17811. revertConnections.Add(this._tbl_transaction_detailTableAdapter, this._tbl_transaction_detailTableAdapter.Connection);
  17812. this._tbl_transaction_detailTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17813. this._tbl_transaction_detailTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17814. if (this._tbl_transaction_detailTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17815. this._tbl_transaction_detailTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17816. adaptersWithAcceptChangesDuringUpdate.Add(this._tbl_transaction_detailTableAdapter.Adapter);
  17817. }
  17818. }
  17819. if ((this._tbl_transactionsTableAdapter != null)) {
  17820. revertConnections.Add(this._tbl_transactionsTableAdapter, this._tbl_transactionsTableAdapter.Connection);
  17821. this._tbl_transactionsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17822. this._tbl_transactionsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17823. if (this._tbl_transactionsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17824. this._tbl_transactionsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17825. adaptersWithAcceptChangesDuringUpdate.Add(this._tbl_transactionsTableAdapter.Adapter);
  17826. }
  17827. }
  17828. if ((this._tbl_usersTableAdapter != null)) {
  17829. revertConnections.Add(this._tbl_usersTableAdapter, this._tbl_usersTableAdapter.Connection);
  17830. this._tbl_usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17831. this._tbl_usersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17832. if (this._tbl_usersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17833. this._tbl_usersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17834. adaptersWithAcceptChangesDuringUpdate.Add(this._tbl_usersTableAdapter.Adapter);
  17835. }
  17836. }
  17837. if ((this._tovariTableAdapter != null)) {
  17838. revertConnections.Add(this._tovariTableAdapter, this._tovariTableAdapter.Connection);
  17839. this._tovariTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17840. this._tovariTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17841. if (this._tovariTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17842. this._tovariTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17843. adaptersWithAcceptChangesDuringUpdate.Add(this._tovariTableAdapter.Adapter);
  17844. }
  17845. }
  17846. if ((this._userTableAdapter != null)) {
  17847. revertConnections.Add(this._userTableAdapter, this._userTableAdapter.Connection);
  17848. this._userTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17849. this._userTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17850. if (this._userTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17851. this._userTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17852. adaptersWithAcceptChangesDuringUpdate.Add(this._userTableAdapter.Adapter);
  17853. }
  17854. }
  17855. if ((this._woorkersTableAdapter != null)) {
  17856. revertConnections.Add(this._woorkersTableAdapter, this._woorkersTableAdapter.Connection);
  17857. this._woorkersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17858. this._woorkersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17859. if (this._woorkersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17860. this._woorkersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17861. adaptersWithAcceptChangesDuringUpdate.Add(this._woorkersTableAdapter.Adapter);
  17862. }
  17863. }
  17864. if ((this._workerTableAdapter != null)) {
  17865. revertConnections.Add(this._workerTableAdapter, this._workerTableAdapter.Connection);
  17866. this._workerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17867. this._workerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17868. if (this._workerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17869. this._workerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17870. adaptersWithAcceptChangesDuringUpdate.Add(this._workerTableAdapter.Adapter);
  17871. }
  17872. }
  17873. if ((this._workersTableAdapter != null)) {
  17874. revertConnections.Add(this._workersTableAdapter, this._workersTableAdapter.Connection);
  17875. this._workersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17876. this._workersTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17877. if (this._workersTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17878. this._workersTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17879. adaptersWithAcceptChangesDuringUpdate.Add(this._workersTableAdapter.Adapter);
  17880. }
  17881. }
  17882. if ((this._продажиTableAdapter != null)) {
  17883. revertConnections.Add(this._продажиTableAdapter, this._продажиTableAdapter.Connection);
  17884. this._продажиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17885. this._продажиTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17886. if (this._продажиTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17887. this._продажиTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17888. adaptersWithAcceptChangesDuringUpdate.Add(this._продажиTableAdapter.Adapter);
  17889. }
  17890. }
  17891. if ((this._товарыTableAdapter != null)) {
  17892. revertConnections.Add(this._товарыTableAdapter, this._товарыTableAdapter.Connection);
  17893. this._товарыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  17894. this._товарыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  17895. if (this._товарыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  17896. this._товарыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  17897. adaptersWithAcceptChangesDuringUpdate.Add(this._товарыTableAdapter.Adapter);
  17898. }
  17899. }
  17900. //
  17901. //---- Perform updates -----------
  17902. //
  17903. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  17904. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  17905. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  17906. }
  17907. else {
  17908. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  17909. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  17910. }
  17911. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  17912. //
  17913. //---- Commit updates -----------
  17914. //
  17915. workTransaction.Commit();
  17916. if ((0 < allAddedRows.Count)) {
  17917. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  17918. allAddedRows.CopyTo(rows);
  17919. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  17920. global::System.Data.DataRow row = rows[i];
  17921. row.AcceptChanges();
  17922. }
  17923. }
  17924. if ((0 < allChangedRows.Count)) {
  17925. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  17926. allChangedRows.CopyTo(rows);
  17927. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  17928. global::System.Data.DataRow row = rows[i];
  17929. row.AcceptChanges();
  17930. }
  17931. }
  17932. }
  17933. catch (global::System.Exception ex) {
  17934. workTransaction.Rollback();
  17935. // ---- Restore the dataset -----------
  17936. if (this.BackupDataSetBeforeUpdate) {
  17937. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  17938. dataSet.Clear();
  17939. dataSet.Merge(backupDataSet);
  17940. }
  17941. else {
  17942. if ((0 < allAddedRows.Count)) {
  17943. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  17944. allAddedRows.CopyTo(rows);
  17945. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  17946. global::System.Data.DataRow row = rows[i];
  17947. row.AcceptChanges();
  17948. row.SetAdded();
  17949. }
  17950. }
  17951. }
  17952. throw ex;
  17953. }
  17954. finally {
  17955. if (workConnOpened) {
  17956. workConnection.Close();
  17957. }
  17958. if ((this._billinTableAdapter != null)) {
  17959. this._billinTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._billinTableAdapter]));
  17960. this._billinTableAdapter.Transaction = null;
  17961. }
  17962. if ((this._billingTableAdapter != null)) {
  17963. this._billingTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._billingTableAdapter]));
  17964. this._billingTableAdapter.Transaction = null;
  17965. }
  17966. if ((this._orderTableAdapter != null)) {
  17967. this._orderTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._orderTableAdapter]));
  17968. this._orderTableAdapter.Transaction = null;
  17969. }
  17970. if ((this._orderProductTableAdapter != null)) {
  17971. this._orderProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._orderProductTableAdapter]));
  17972. this._orderProductTableAdapter.Transaction = null;
  17973. }
  17974. if ((this._productTableAdapter != null)) {
  17975. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  17976. this._productTableAdapter.Transaction = null;
  17977. }
  17978. if ((this._roleTableAdapter != null)) {
  17979. this._roleTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._roleTableAdapter]));
  17980. this._roleTableAdapter.Transaction = null;
  17981. }
  17982. if ((this._tbl_categoriesTableAdapter != null)) {
  17983. this._tbl_categoriesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tbl_categoriesTableAdapter]));
  17984. this._tbl_categoriesTableAdapter.Transaction = null;
  17985. }
  17986. if ((this._tbl_dea_custTableAdapter != null)) {
  17987. this._tbl_dea_custTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tbl_dea_custTableAdapter]));
  17988. this._tbl_dea_custTableAdapter.Transaction = null;
  17989. }
  17990. if ((this._tbl_productsTableAdapter != null)) {
  17991. this._tbl_productsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tbl_productsTableAdapter]));
  17992. this._tbl_productsTableAdapter.Transaction = null;
  17993. }
  17994. if ((this._tbl_transaction_detailTableAdapter != null)) {
  17995. this._tbl_transaction_detailTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tbl_transaction_detailTableAdapter]));
  17996. this._tbl_transaction_detailTableAdapter.Transaction = null;
  17997. }
  17998. if ((this._tbl_transactionsTableAdapter != null)) {
  17999. this._tbl_transactionsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tbl_transactionsTableAdapter]));
  18000. this._tbl_transactionsTableAdapter.Transaction = null;
  18001. }
  18002. if ((this._tbl_usersTableAdapter != null)) {
  18003. this._tbl_usersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tbl_usersTableAdapter]));
  18004. this._tbl_usersTableAdapter.Transaction = null;
  18005. }
  18006. if ((this._tovariTableAdapter != null)) {
  18007. this._tovariTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._tovariTableAdapter]));
  18008. this._tovariTableAdapter.Transaction = null;
  18009. }
  18010. if ((this._userTableAdapter != null)) {
  18011. this._userTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._userTableAdapter]));
  18012. this._userTableAdapter.Transaction = null;
  18013. }
  18014. if ((this._woorkersTableAdapter != null)) {
  18015. this._woorkersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._woorkersTableAdapter]));
  18016. this._woorkersTableAdapter.Transaction = null;
  18017. }
  18018. if ((this._workerTableAdapter != null)) {
  18019. this._workerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._workerTableAdapter]));
  18020. this._workerTableAdapter.Transaction = null;
  18021. }
  18022. if ((this._workersTableAdapter != null)) {
  18023. this._workersTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._workersTableAdapter]));
  18024. this._workersTableAdapter.Transaction = null;
  18025. }
  18026. if ((this._продажиTableAdapter != null)) {
  18027. this._продажиTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._продажиTableAdapter]));
  18028. this._продажиTableAdapter.Transaction = null;
  18029. }
  18030. if ((this._товарыTableAdapter != null)) {
  18031. this._товарыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._товарыTableAdapter]));
  18032. this._товарыTableAdapter.Transaction = null;
  18033. }
  18034. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  18035. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  18036. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  18037. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  18038. global::System.Data.Common.DataAdapter adapter = adapters[i];
  18039. adapter.AcceptChangesDuringUpdate = true;
  18040. }
  18041. }
  18042. }
  18043. return result;
  18044. }
  18045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  18046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  18047. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  18048. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  18049. }
  18050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  18051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  18052. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  18053. if ((this._connection != null)) {
  18054. return true;
  18055. }
  18056. if (((this.Connection == null)
  18057. || (inputConnection == null))) {
  18058. return true;
  18059. }
  18060. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  18061. return true;
  18062. }
  18063. return false;
  18064. }
  18065. /// <summary>
  18066. ///Update Order Option
  18067. ///</summary>
  18068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  18069. public enum UpdateOrderOption {
  18070. InsertUpdateDelete = 0,
  18071. UpdateInsertDelete = 1,
  18072. }
  18073. /// <summary>
  18074. ///Used to sort self-referenced table's rows
  18075. ///</summary>
  18076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  18077. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  18078. private global::System.Data.DataRelation _relation;
  18079. private int _childFirst;
  18080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  18081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  18082. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  18083. this._relation = relation;
  18084. if (childFirst) {
  18085. this._childFirst = -1;
  18086. }
  18087. else {
  18088. this._childFirst = 1;
  18089. }
  18090. }
  18091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  18092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  18093. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  18094. global::System.Diagnostics.Debug.Assert((row != null));
  18095. global::System.Data.DataRow root = row;
  18096. distance = 0;
  18097. 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>();
  18098. traversedRows[row] = row;
  18099. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  18100. for (
  18101. ; ((parent != null)
  18102. && (traversedRows.ContainsKey(parent) == false));
  18103. ) {
  18104. distance = (distance + 1);
  18105. root = parent;
  18106. traversedRows[parent] = parent;
  18107. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  18108. }
  18109. if ((distance == 0)) {
  18110. traversedRows.Clear();
  18111. traversedRows[row] = row;
  18112. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  18113. for (
  18114. ; ((parent != null)
  18115. && (traversedRows.ContainsKey(parent) == false));
  18116. ) {
  18117. distance = (distance + 1);
  18118. root = parent;
  18119. traversedRows[parent] = parent;
  18120. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  18121. }
  18122. }
  18123. return root;
  18124. }
  18125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  18126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  18127. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  18128. if (object.ReferenceEquals(row1, row2)) {
  18129. return 0;
  18130. }
  18131. if ((row1 == null)) {
  18132. return -1;
  18133. }
  18134. if ((row2 == null)) {
  18135. return 1;
  18136. }
  18137. int distance1 = 0;
  18138. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  18139. int distance2 = 0;
  18140. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  18141. if (object.ReferenceEquals(root1, root2)) {
  18142. return (this._childFirst * distance1.CompareTo(distance2));
  18143. }
  18144. else {
  18145. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  18146. && (root2.Table != null)));
  18147. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  18148. return -1;
  18149. }
  18150. else {
  18151. return 1;
  18152. }
  18153. }
  18154. }
  18155. }
  18156. }
  18157. }
  18158. #pragma warning restore 1591