GushchinaDataSet1.Designer.cs 380 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace IS_hairdresser {
  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("GushchinaDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class GushchinaDataSet : global::System.Data.DataSet {
  22. private Consumables_soldDataTable tableConsumables_sold;
  23. private DeliveriesDataTable tableDeliveries;
  24. private ListDataTable tableList;
  25. private PurchaseDataTable tablePurchase;
  26. private Used_consumablesDataTable tableUsed_consumables;
  27. private WarehouseDataTable tableWarehouse;
  28. private global::System.Data.DataRelation relationFK_Consumables_sold_Warehouse;
  29. private global::System.Data.DataRelation relationFK_Deliveries_List;
  30. private global::System.Data.DataRelation relationFK_Deliveries_Warehouse;
  31. private global::System.Data.DataRelation relationFK_Used_consumables_Warehouse;
  32. private global::System.Data.DataRelation relationFK_Warehouse_List;
  33. private global::System.Data.DataRelation relationFK_Warehouse_Purchase;
  34. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  35. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  36. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  37. public GushchinaDataSet() {
  38. this.BeginInit();
  39. this.InitClass();
  40. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  41. base.Tables.CollectionChanged += schemaChangedHandler;
  42. base.Relations.CollectionChanged += schemaChangedHandler;
  43. this.EndInit();
  44. }
  45. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  46. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  47. protected GushchinaDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  48. base(info, context, false) {
  49. if ((this.IsBinarySerialized(info, context) == true)) {
  50. this.InitVars(false);
  51. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  52. this.Tables.CollectionChanged += schemaChangedHandler1;
  53. this.Relations.CollectionChanged += schemaChangedHandler1;
  54. return;
  55. }
  56. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  57. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  58. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  59. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  60. if ((ds.Tables["Consumables_sold"] != null)) {
  61. base.Tables.Add(new Consumables_soldDataTable(ds.Tables["Consumables_sold"]));
  62. }
  63. if ((ds.Tables["Deliveries"] != null)) {
  64. base.Tables.Add(new DeliveriesDataTable(ds.Tables["Deliveries"]));
  65. }
  66. if ((ds.Tables["List"] != null)) {
  67. base.Tables.Add(new ListDataTable(ds.Tables["List"]));
  68. }
  69. if ((ds.Tables["Purchase"] != null)) {
  70. base.Tables.Add(new PurchaseDataTable(ds.Tables["Purchase"]));
  71. }
  72. if ((ds.Tables["Used_consumables"] != null)) {
  73. base.Tables.Add(new Used_consumablesDataTable(ds.Tables["Used_consumables"]));
  74. }
  75. if ((ds.Tables["Warehouse"] != null)) {
  76. base.Tables.Add(new WarehouseDataTable(ds.Tables["Warehouse"]));
  77. }
  78. this.DataSetName = ds.DataSetName;
  79. this.Prefix = ds.Prefix;
  80. this.Namespace = ds.Namespace;
  81. this.Locale = ds.Locale;
  82. this.CaseSensitive = ds.CaseSensitive;
  83. this.EnforceConstraints = ds.EnforceConstraints;
  84. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  85. this.InitVars();
  86. }
  87. else {
  88. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  89. }
  90. this.GetSerializationData(info, context);
  91. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  92. base.Tables.CollectionChanged += schemaChangedHandler;
  93. this.Relations.CollectionChanged += schemaChangedHandler;
  94. }
  95. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  96. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  97. [global::System.ComponentModel.Browsable(false)]
  98. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  99. public Consumables_soldDataTable Consumables_sold {
  100. get {
  101. return this.tableConsumables_sold;
  102. }
  103. }
  104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  106. [global::System.ComponentModel.Browsable(false)]
  107. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  108. public DeliveriesDataTable Deliveries {
  109. get {
  110. return this.tableDeliveries;
  111. }
  112. }
  113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  115. [global::System.ComponentModel.Browsable(false)]
  116. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  117. public ListDataTable List {
  118. get {
  119. return this.tableList;
  120. }
  121. }
  122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  124. [global::System.ComponentModel.Browsable(false)]
  125. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  126. public PurchaseDataTable Purchase {
  127. get {
  128. return this.tablePurchase;
  129. }
  130. }
  131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  133. [global::System.ComponentModel.Browsable(false)]
  134. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  135. public Used_consumablesDataTable Used_consumables {
  136. get {
  137. return this.tableUsed_consumables;
  138. }
  139. }
  140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  142. [global::System.ComponentModel.Browsable(false)]
  143. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  144. public WarehouseDataTable Warehouse {
  145. get {
  146. return this.tableWarehouse;
  147. }
  148. }
  149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  151. [global::System.ComponentModel.BrowsableAttribute(true)]
  152. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  153. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  154. get {
  155. return this._schemaSerializationMode;
  156. }
  157. set {
  158. this._schemaSerializationMode = value;
  159. }
  160. }
  161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  163. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  164. public new global::System.Data.DataTableCollection Tables {
  165. get {
  166. return base.Tables;
  167. }
  168. }
  169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  171. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  172. public new global::System.Data.DataRelationCollection Relations {
  173. get {
  174. return base.Relations;
  175. }
  176. }
  177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  179. protected override void InitializeDerivedDataSet() {
  180. this.BeginInit();
  181. this.InitClass();
  182. this.EndInit();
  183. }
  184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  186. public override global::System.Data.DataSet Clone() {
  187. GushchinaDataSet cln = ((GushchinaDataSet)(base.Clone()));
  188. cln.InitVars();
  189. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  190. return cln;
  191. }
  192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  194. protected override bool ShouldSerializeTables() {
  195. return false;
  196. }
  197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  199. protected override bool ShouldSerializeRelations() {
  200. return false;
  201. }
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  204. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  205. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  206. this.Reset();
  207. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  208. ds.ReadXml(reader);
  209. if ((ds.Tables["Consumables_sold"] != null)) {
  210. base.Tables.Add(new Consumables_soldDataTable(ds.Tables["Consumables_sold"]));
  211. }
  212. if ((ds.Tables["Deliveries"] != null)) {
  213. base.Tables.Add(new DeliveriesDataTable(ds.Tables["Deliveries"]));
  214. }
  215. if ((ds.Tables["List"] != null)) {
  216. base.Tables.Add(new ListDataTable(ds.Tables["List"]));
  217. }
  218. if ((ds.Tables["Purchase"] != null)) {
  219. base.Tables.Add(new PurchaseDataTable(ds.Tables["Purchase"]));
  220. }
  221. if ((ds.Tables["Used_consumables"] != null)) {
  222. base.Tables.Add(new Used_consumablesDataTable(ds.Tables["Used_consumables"]));
  223. }
  224. if ((ds.Tables["Warehouse"] != null)) {
  225. base.Tables.Add(new WarehouseDataTable(ds.Tables["Warehouse"]));
  226. }
  227. this.DataSetName = ds.DataSetName;
  228. this.Prefix = ds.Prefix;
  229. this.Namespace = ds.Namespace;
  230. this.Locale = ds.Locale;
  231. this.CaseSensitive = ds.CaseSensitive;
  232. this.EnforceConstraints = ds.EnforceConstraints;
  233. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  234. this.InitVars();
  235. }
  236. else {
  237. this.ReadXml(reader);
  238. this.InitVars();
  239. }
  240. }
  241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  243. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  244. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  245. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  246. stream.Position = 0;
  247. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  248. }
  249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  251. internal void InitVars() {
  252. this.InitVars(true);
  253. }
  254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  256. internal void InitVars(bool initTable) {
  257. this.tableConsumables_sold = ((Consumables_soldDataTable)(base.Tables["Consumables_sold"]));
  258. if ((initTable == true)) {
  259. if ((this.tableConsumables_sold != null)) {
  260. this.tableConsumables_sold.InitVars();
  261. }
  262. }
  263. this.tableDeliveries = ((DeliveriesDataTable)(base.Tables["Deliveries"]));
  264. if ((initTable == true)) {
  265. if ((this.tableDeliveries != null)) {
  266. this.tableDeliveries.InitVars();
  267. }
  268. }
  269. this.tableList = ((ListDataTable)(base.Tables["List"]));
  270. if ((initTable == true)) {
  271. if ((this.tableList != null)) {
  272. this.tableList.InitVars();
  273. }
  274. }
  275. this.tablePurchase = ((PurchaseDataTable)(base.Tables["Purchase"]));
  276. if ((initTable == true)) {
  277. if ((this.tablePurchase != null)) {
  278. this.tablePurchase.InitVars();
  279. }
  280. }
  281. this.tableUsed_consumables = ((Used_consumablesDataTable)(base.Tables["Used_consumables"]));
  282. if ((initTable == true)) {
  283. if ((this.tableUsed_consumables != null)) {
  284. this.tableUsed_consumables.InitVars();
  285. }
  286. }
  287. this.tableWarehouse = ((WarehouseDataTable)(base.Tables["Warehouse"]));
  288. if ((initTable == true)) {
  289. if ((this.tableWarehouse != null)) {
  290. this.tableWarehouse.InitVars();
  291. }
  292. }
  293. this.relationFK_Consumables_sold_Warehouse = this.Relations["FK_Consumables_sold_Warehouse"];
  294. this.relationFK_Deliveries_List = this.Relations["FK_Deliveries_List"];
  295. this.relationFK_Deliveries_Warehouse = this.Relations["FK_Deliveries_Warehouse"];
  296. this.relationFK_Used_consumables_Warehouse = this.Relations["FK_Used_consumables_Warehouse"];
  297. this.relationFK_Warehouse_List = this.Relations["FK_Warehouse_List"];
  298. this.relationFK_Warehouse_Purchase = this.Relations["FK_Warehouse_Purchase"];
  299. }
  300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  302. private void InitClass() {
  303. this.DataSetName = "GushchinaDataSet";
  304. this.Prefix = "";
  305. this.Namespace = "http://tempuri.org/GushchinaDataSet.xsd";
  306. this.EnforceConstraints = true;
  307. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  308. this.tableConsumables_sold = new Consumables_soldDataTable();
  309. base.Tables.Add(this.tableConsumables_sold);
  310. this.tableDeliveries = new DeliveriesDataTable();
  311. base.Tables.Add(this.tableDeliveries);
  312. this.tableList = new ListDataTable();
  313. base.Tables.Add(this.tableList);
  314. this.tablePurchase = new PurchaseDataTable();
  315. base.Tables.Add(this.tablePurchase);
  316. this.tableUsed_consumables = new Used_consumablesDataTable();
  317. base.Tables.Add(this.tableUsed_consumables);
  318. this.tableWarehouse = new WarehouseDataTable();
  319. base.Tables.Add(this.tableWarehouse);
  320. this.relationFK_Consumables_sold_Warehouse = new global::System.Data.DataRelation("FK_Consumables_sold_Warehouse", new global::System.Data.DataColumn[] {
  321. this.tableWarehouse.АртикулColumn}, new global::System.Data.DataColumn[] {
  322. this.tableConsumables_sold.АртикулColumn}, false);
  323. this.Relations.Add(this.relationFK_Consumables_sold_Warehouse);
  324. this.relationFK_Deliveries_List = new global::System.Data.DataRelation("FK_Deliveries_List", new global::System.Data.DataColumn[] {
  325. this.tableList.АртикулColumn}, new global::System.Data.DataColumn[] {
  326. this.tableDeliveries.АртикулColumn}, false);
  327. this.Relations.Add(this.relationFK_Deliveries_List);
  328. this.relationFK_Deliveries_Warehouse = new global::System.Data.DataRelation("FK_Deliveries_Warehouse", new global::System.Data.DataColumn[] {
  329. this.tableWarehouse.АртикулColumn}, new global::System.Data.DataColumn[] {
  330. this.tableDeliveries.АртикулColumn}, false);
  331. this.Relations.Add(this.relationFK_Deliveries_Warehouse);
  332. this.relationFK_Used_consumables_Warehouse = new global::System.Data.DataRelation("FK_Used_consumables_Warehouse", new global::System.Data.DataColumn[] {
  333. this.tableWarehouse.АртикулColumn}, new global::System.Data.DataColumn[] {
  334. this.tableUsed_consumables.АртикулColumn}, false);
  335. this.Relations.Add(this.relationFK_Used_consumables_Warehouse);
  336. this.relationFK_Warehouse_List = new global::System.Data.DataRelation("FK_Warehouse_List", new global::System.Data.DataColumn[] {
  337. this.tableList.АртикулColumn}, new global::System.Data.DataColumn[] {
  338. this.tableWarehouse.АртикулColumn}, false);
  339. this.Relations.Add(this.relationFK_Warehouse_List);
  340. this.relationFK_Warehouse_Purchase = new global::System.Data.DataRelation("FK_Warehouse_Purchase", new global::System.Data.DataColumn[] {
  341. this.tablePurchase.АртикулColumn}, new global::System.Data.DataColumn[] {
  342. this.tableWarehouse.АртикулColumn}, false);
  343. this.Relations.Add(this.relationFK_Warehouse_Purchase);
  344. }
  345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  347. private bool ShouldSerializeConsumables_sold() {
  348. return false;
  349. }
  350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  352. private bool ShouldSerializeDeliveries() {
  353. return false;
  354. }
  355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  357. private bool ShouldSerializeList() {
  358. return false;
  359. }
  360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  362. private bool ShouldSerializePurchase() {
  363. return false;
  364. }
  365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  367. private bool ShouldSerializeUsed_consumables() {
  368. return false;
  369. }
  370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  372. private bool ShouldSerializeWarehouse() {
  373. return false;
  374. }
  375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  377. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  378. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  379. this.InitVars();
  380. }
  381. }
  382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  384. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  385. GushchinaDataSet ds = new GushchinaDataSet();
  386. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  387. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  388. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  389. any.Namespace = ds.Namespace;
  390. sequence.Items.Add(any);
  391. type.Particle = sequence;
  392. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  393. if (xs.Contains(dsSchema.TargetNamespace)) {
  394. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  395. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  396. try {
  397. global::System.Xml.Schema.XmlSchema schema = null;
  398. dsSchema.Write(s1);
  399. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  400. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  401. s2.SetLength(0);
  402. schema.Write(s2);
  403. if ((s1.Length == s2.Length)) {
  404. s1.Position = 0;
  405. s2.Position = 0;
  406. for (; ((s1.Position != s1.Length)
  407. && (s1.ReadByte() == s2.ReadByte())); ) {
  408. ;
  409. }
  410. if ((s1.Position == s1.Length)) {
  411. return type;
  412. }
  413. }
  414. }
  415. }
  416. finally {
  417. if ((s1 != null)) {
  418. s1.Close();
  419. }
  420. if ((s2 != null)) {
  421. s2.Close();
  422. }
  423. }
  424. }
  425. xs.Add(dsSchema);
  426. return type;
  427. }
  428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  429. public delegate void Consumables_soldRowChangeEventHandler(object sender, Consumables_soldRowChangeEvent e);
  430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  431. public delegate void DeliveriesRowChangeEventHandler(object sender, DeliveriesRowChangeEvent e);
  432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  433. public delegate void ListRowChangeEventHandler(object sender, ListRowChangeEvent e);
  434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  435. public delegate void PurchaseRowChangeEventHandler(object sender, PurchaseRowChangeEvent e);
  436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  437. public delegate void Used_consumablesRowChangeEventHandler(object sender, Used_consumablesRowChangeEvent e);
  438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  439. public delegate void WarehouseRowChangeEventHandler(object sender, WarehouseRowChangeEvent e);
  440. /// <summary>
  441. ///Represents the strongly named DataTable class.
  442. ///</summary>
  443. [global::System.Serializable()]
  444. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  445. public partial class Consumables_soldDataTable : global::System.Data.TypedTableBase<Consumables_soldRow> {
  446. private global::System.Data.DataColumn columnАртикул;
  447. private global::System.Data.DataColumn columnНаименование;
  448. private global::System.Data.DataColumn columnЦена;
  449. private global::System.Data.DataColumn columnКоличество;
  450. private global::System.Data.DataColumn columnДата;
  451. private global::System.Data.DataColumn columnСотрудник;
  452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  454. public Consumables_soldDataTable() {
  455. this.TableName = "Consumables_sold";
  456. this.BeginInit();
  457. this.InitClass();
  458. this.EndInit();
  459. }
  460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  462. internal Consumables_soldDataTable(global::System.Data.DataTable table) {
  463. this.TableName = table.TableName;
  464. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  465. this.CaseSensitive = table.CaseSensitive;
  466. }
  467. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  468. this.Locale = table.Locale;
  469. }
  470. if ((table.Namespace != table.DataSet.Namespace)) {
  471. this.Namespace = table.Namespace;
  472. }
  473. this.Prefix = table.Prefix;
  474. this.MinimumCapacity = table.MinimumCapacity;
  475. }
  476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  478. protected Consumables_soldDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  479. base(info, context) {
  480. this.InitVars();
  481. }
  482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  484. public global::System.Data.DataColumn АртикулColumn {
  485. get {
  486. return this.columnАртикул;
  487. }
  488. }
  489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  491. public global::System.Data.DataColumn НаименованиеColumn {
  492. get {
  493. return this.columnНаименование;
  494. }
  495. }
  496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  498. public global::System.Data.DataColumn ЦенаColumn {
  499. get {
  500. return this.columnЦена;
  501. }
  502. }
  503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  505. public global::System.Data.DataColumn КоличествоColumn {
  506. get {
  507. return this.columnКоличество;
  508. }
  509. }
  510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  512. public global::System.Data.DataColumn ДатаColumn {
  513. get {
  514. return this.columnДата;
  515. }
  516. }
  517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  519. public global::System.Data.DataColumn СотрудникColumn {
  520. get {
  521. return this.columnСотрудник;
  522. }
  523. }
  524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  526. [global::System.ComponentModel.Browsable(false)]
  527. public int Count {
  528. get {
  529. return this.Rows.Count;
  530. }
  531. }
  532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  534. public Consumables_soldRow this[int index] {
  535. get {
  536. return ((Consumables_soldRow)(this.Rows[index]));
  537. }
  538. }
  539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  540. public event Consumables_soldRowChangeEventHandler Consumables_soldRowChanging;
  541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  542. public event Consumables_soldRowChangeEventHandler Consumables_soldRowChanged;
  543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  544. public event Consumables_soldRowChangeEventHandler Consumables_soldRowDeleting;
  545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  546. public event Consumables_soldRowChangeEventHandler Consumables_soldRowDeleted;
  547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  549. public void AddConsumables_soldRow(Consumables_soldRow row) {
  550. this.Rows.Add(row);
  551. }
  552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  554. public Consumables_soldRow AddConsumables_soldRow(WarehouseRow parentWarehouseRowByFK_Consumables_sold_Warehouse, string Наименование, decimal Цена, int Количество, System.DateTime Дата, string Сотрудник) {
  555. Consumables_soldRow rowConsumables_soldRow = ((Consumables_soldRow)(this.NewRow()));
  556. object[] columnValuesArray = new object[] {
  557. null,
  558. Наименование,
  559. Цена,
  560. Количество,
  561. Дата,
  562. Сотрудник};
  563. if ((parentWarehouseRowByFK_Consumables_sold_Warehouse != null)) {
  564. columnValuesArray[0] = parentWarehouseRowByFK_Consumables_sold_Warehouse[0];
  565. }
  566. rowConsumables_soldRow.ItemArray = columnValuesArray;
  567. this.Rows.Add(rowConsumables_soldRow);
  568. return rowConsumables_soldRow;
  569. }
  570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  572. public override global::System.Data.DataTable Clone() {
  573. Consumables_soldDataTable cln = ((Consumables_soldDataTable)(base.Clone()));
  574. cln.InitVars();
  575. return cln;
  576. }
  577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  579. protected override global::System.Data.DataTable CreateInstance() {
  580. return new Consumables_soldDataTable();
  581. }
  582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  584. internal void InitVars() {
  585. this.columnАртикул = base.Columns["Артикул"];
  586. this.columnНаименование = base.Columns["Наименование"];
  587. this.columnЦена = base.Columns["Цена"];
  588. this.columnКоличество = base.Columns["Количество"];
  589. this.columnДата = base.Columns["Дата"];
  590. this.columnСотрудник = base.Columns["Сотрудник"];
  591. }
  592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  594. private void InitClass() {
  595. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  596. base.Columns.Add(this.columnАртикул);
  597. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  598. base.Columns.Add(this.columnНаименование);
  599. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  600. base.Columns.Add(this.columnЦена);
  601. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  602. base.Columns.Add(this.columnКоличество);
  603. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  604. base.Columns.Add(this.columnДата);
  605. this.columnСотрудник = new global::System.Data.DataColumn("Сотрудник", typeof(string), null, global::System.Data.MappingType.Element);
  606. base.Columns.Add(this.columnСотрудник);
  607. this.columnАртикул.AllowDBNull = false;
  608. this.columnАртикул.MaxLength = 450;
  609. this.columnНаименование.MaxLength = 2147483647;
  610. this.columnСотрудник.MaxLength = 2147483647;
  611. }
  612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  614. public Consumables_soldRow NewConsumables_soldRow() {
  615. return ((Consumables_soldRow)(this.NewRow()));
  616. }
  617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  619. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  620. return new Consumables_soldRow(builder);
  621. }
  622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  624. protected override global::System.Type GetRowType() {
  625. return typeof(Consumables_soldRow);
  626. }
  627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  629. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  630. base.OnRowChanged(e);
  631. if ((this.Consumables_soldRowChanged != null)) {
  632. this.Consumables_soldRowChanged(this, new Consumables_soldRowChangeEvent(((Consumables_soldRow)(e.Row)), e.Action));
  633. }
  634. }
  635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  637. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  638. base.OnRowChanging(e);
  639. if ((this.Consumables_soldRowChanging != null)) {
  640. this.Consumables_soldRowChanging(this, new Consumables_soldRowChangeEvent(((Consumables_soldRow)(e.Row)), e.Action));
  641. }
  642. }
  643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  645. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  646. base.OnRowDeleted(e);
  647. if ((this.Consumables_soldRowDeleted != null)) {
  648. this.Consumables_soldRowDeleted(this, new Consumables_soldRowChangeEvent(((Consumables_soldRow)(e.Row)), e.Action));
  649. }
  650. }
  651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  653. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  654. base.OnRowDeleting(e);
  655. if ((this.Consumables_soldRowDeleting != null)) {
  656. this.Consumables_soldRowDeleting(this, new Consumables_soldRowChangeEvent(((Consumables_soldRow)(e.Row)), e.Action));
  657. }
  658. }
  659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  661. public void RemoveConsumables_soldRow(Consumables_soldRow row) {
  662. this.Rows.Remove(row);
  663. }
  664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  666. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  667. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  668. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  669. GushchinaDataSet ds = new GushchinaDataSet();
  670. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  671. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  672. any1.MinOccurs = new decimal(0);
  673. any1.MaxOccurs = decimal.MaxValue;
  674. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  675. sequence.Items.Add(any1);
  676. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  677. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  678. any2.MinOccurs = new decimal(1);
  679. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  680. sequence.Items.Add(any2);
  681. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  682. attribute1.Name = "namespace";
  683. attribute1.FixedValue = ds.Namespace;
  684. type.Attributes.Add(attribute1);
  685. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  686. attribute2.Name = "tableTypeName";
  687. attribute2.FixedValue = "Consumables_soldDataTable";
  688. type.Attributes.Add(attribute2);
  689. type.Particle = sequence;
  690. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  691. if (xs.Contains(dsSchema.TargetNamespace)) {
  692. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  693. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  694. try {
  695. global::System.Xml.Schema.XmlSchema schema = null;
  696. dsSchema.Write(s1);
  697. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  698. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  699. s2.SetLength(0);
  700. schema.Write(s2);
  701. if ((s1.Length == s2.Length)) {
  702. s1.Position = 0;
  703. s2.Position = 0;
  704. for (; ((s1.Position != s1.Length)
  705. && (s1.ReadByte() == s2.ReadByte())); ) {
  706. ;
  707. }
  708. if ((s1.Position == s1.Length)) {
  709. return type;
  710. }
  711. }
  712. }
  713. }
  714. finally {
  715. if ((s1 != null)) {
  716. s1.Close();
  717. }
  718. if ((s2 != null)) {
  719. s2.Close();
  720. }
  721. }
  722. }
  723. xs.Add(dsSchema);
  724. return type;
  725. }
  726. }
  727. /// <summary>
  728. ///Represents the strongly named DataTable class.
  729. ///</summary>
  730. [global::System.Serializable()]
  731. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  732. public partial class DeliveriesDataTable : global::System.Data.TypedTableBase<DeliveriesRow> {
  733. private global::System.Data.DataColumn columnАртикул;
  734. private global::System.Data.DataColumn columnНаименование;
  735. private global::System.Data.DataColumn columnЦена;
  736. private global::System.Data.DataColumn columnДата;
  737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  739. public DeliveriesDataTable() {
  740. this.TableName = "Deliveries";
  741. this.BeginInit();
  742. this.InitClass();
  743. this.EndInit();
  744. }
  745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  747. internal DeliveriesDataTable(global::System.Data.DataTable table) {
  748. this.TableName = table.TableName;
  749. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  750. this.CaseSensitive = table.CaseSensitive;
  751. }
  752. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  753. this.Locale = table.Locale;
  754. }
  755. if ((table.Namespace != table.DataSet.Namespace)) {
  756. this.Namespace = table.Namespace;
  757. }
  758. this.Prefix = table.Prefix;
  759. this.MinimumCapacity = table.MinimumCapacity;
  760. }
  761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  763. protected DeliveriesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  764. base(info, context) {
  765. this.InitVars();
  766. }
  767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  769. public global::System.Data.DataColumn АртикулColumn {
  770. get {
  771. return this.columnАртикул;
  772. }
  773. }
  774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  776. public global::System.Data.DataColumn НаименованиеColumn {
  777. get {
  778. return this.columnНаименование;
  779. }
  780. }
  781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  783. public global::System.Data.DataColumn ЦенаColumn {
  784. get {
  785. return this.columnЦена;
  786. }
  787. }
  788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  790. public global::System.Data.DataColumn ДатаColumn {
  791. get {
  792. return this.columnДата;
  793. }
  794. }
  795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  797. [global::System.ComponentModel.Browsable(false)]
  798. public int Count {
  799. get {
  800. return this.Rows.Count;
  801. }
  802. }
  803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  805. public DeliveriesRow this[int index] {
  806. get {
  807. return ((DeliveriesRow)(this.Rows[index]));
  808. }
  809. }
  810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  811. public event DeliveriesRowChangeEventHandler DeliveriesRowChanging;
  812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  813. public event DeliveriesRowChangeEventHandler DeliveriesRowChanged;
  814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  815. public event DeliveriesRowChangeEventHandler DeliveriesRowDeleting;
  816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  817. public event DeliveriesRowChangeEventHandler DeliveriesRowDeleted;
  818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  820. public void AddDeliveriesRow(DeliveriesRow row) {
  821. this.Rows.Add(row);
  822. }
  823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  825. public DeliveriesRow AddDeliveriesRow(ListRow parentListRowByFK_Deliveries_List, string Наименование, decimal Цена, System.DateTime Дата) {
  826. DeliveriesRow rowDeliveriesRow = ((DeliveriesRow)(this.NewRow()));
  827. object[] columnValuesArray = new object[] {
  828. null,
  829. Наименование,
  830. Цена,
  831. Дата};
  832. if ((parentListRowByFK_Deliveries_List != null)) {
  833. columnValuesArray[0] = parentListRowByFK_Deliveries_List[0];
  834. }
  835. rowDeliveriesRow.ItemArray = columnValuesArray;
  836. this.Rows.Add(rowDeliveriesRow);
  837. return rowDeliveriesRow;
  838. }
  839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  841. public override global::System.Data.DataTable Clone() {
  842. DeliveriesDataTable cln = ((DeliveriesDataTable)(base.Clone()));
  843. cln.InitVars();
  844. return cln;
  845. }
  846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  848. protected override global::System.Data.DataTable CreateInstance() {
  849. return new DeliveriesDataTable();
  850. }
  851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  853. internal void InitVars() {
  854. this.columnАртикул = base.Columns["Артикул"];
  855. this.columnНаименование = base.Columns["Наименование"];
  856. this.columnЦена = base.Columns["Цена"];
  857. this.columnДата = base.Columns["Дата"];
  858. }
  859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  861. private void InitClass() {
  862. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  863. base.Columns.Add(this.columnАртикул);
  864. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  865. base.Columns.Add(this.columnНаименование);
  866. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  867. base.Columns.Add(this.columnЦена);
  868. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  869. base.Columns.Add(this.columnДата);
  870. this.columnАртикул.AllowDBNull = false;
  871. this.columnАртикул.MaxLength = 450;
  872. this.columnНаименование.MaxLength = 2147483647;
  873. }
  874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  876. public DeliveriesRow NewDeliveriesRow() {
  877. return ((DeliveriesRow)(this.NewRow()));
  878. }
  879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  881. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  882. return new DeliveriesRow(builder);
  883. }
  884. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  885. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  886. protected override global::System.Type GetRowType() {
  887. return typeof(DeliveriesRow);
  888. }
  889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  891. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  892. base.OnRowChanged(e);
  893. if ((this.DeliveriesRowChanged != null)) {
  894. this.DeliveriesRowChanged(this, new DeliveriesRowChangeEvent(((DeliveriesRow)(e.Row)), e.Action));
  895. }
  896. }
  897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  899. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  900. base.OnRowChanging(e);
  901. if ((this.DeliveriesRowChanging != null)) {
  902. this.DeliveriesRowChanging(this, new DeliveriesRowChangeEvent(((DeliveriesRow)(e.Row)), e.Action));
  903. }
  904. }
  905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  907. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  908. base.OnRowDeleted(e);
  909. if ((this.DeliveriesRowDeleted != null)) {
  910. this.DeliveriesRowDeleted(this, new DeliveriesRowChangeEvent(((DeliveriesRow)(e.Row)), e.Action));
  911. }
  912. }
  913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  915. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  916. base.OnRowDeleting(e);
  917. if ((this.DeliveriesRowDeleting != null)) {
  918. this.DeliveriesRowDeleting(this, new DeliveriesRowChangeEvent(((DeliveriesRow)(e.Row)), e.Action));
  919. }
  920. }
  921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  923. public void RemoveDeliveriesRow(DeliveriesRow row) {
  924. this.Rows.Remove(row);
  925. }
  926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  928. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  929. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  930. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  931. GushchinaDataSet ds = new GushchinaDataSet();
  932. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  933. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  934. any1.MinOccurs = new decimal(0);
  935. any1.MaxOccurs = decimal.MaxValue;
  936. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  937. sequence.Items.Add(any1);
  938. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  939. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  940. any2.MinOccurs = new decimal(1);
  941. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  942. sequence.Items.Add(any2);
  943. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  944. attribute1.Name = "namespace";
  945. attribute1.FixedValue = ds.Namespace;
  946. type.Attributes.Add(attribute1);
  947. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  948. attribute2.Name = "tableTypeName";
  949. attribute2.FixedValue = "DeliveriesDataTable";
  950. type.Attributes.Add(attribute2);
  951. type.Particle = sequence;
  952. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  953. if (xs.Contains(dsSchema.TargetNamespace)) {
  954. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  955. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  956. try {
  957. global::System.Xml.Schema.XmlSchema schema = null;
  958. dsSchema.Write(s1);
  959. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  960. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  961. s2.SetLength(0);
  962. schema.Write(s2);
  963. if ((s1.Length == s2.Length)) {
  964. s1.Position = 0;
  965. s2.Position = 0;
  966. for (; ((s1.Position != s1.Length)
  967. && (s1.ReadByte() == s2.ReadByte())); ) {
  968. ;
  969. }
  970. if ((s1.Position == s1.Length)) {
  971. return type;
  972. }
  973. }
  974. }
  975. }
  976. finally {
  977. if ((s1 != null)) {
  978. s1.Close();
  979. }
  980. if ((s2 != null)) {
  981. s2.Close();
  982. }
  983. }
  984. }
  985. xs.Add(dsSchema);
  986. return type;
  987. }
  988. }
  989. /// <summary>
  990. ///Represents the strongly named DataTable class.
  991. ///</summary>
  992. [global::System.Serializable()]
  993. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  994. public partial class ListDataTable : global::System.Data.TypedTableBase<ListRow> {
  995. private global::System.Data.DataColumn columnАртикул;
  996. private global::System.Data.DataColumn columnНаименование;
  997. private global::System.Data.DataColumn columnЦена;
  998. private global::System.Data.DataColumn columnКоличество;
  999. private global::System.Data.DataColumn columnМесто_хранения;
  1000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1002. public ListDataTable() {
  1003. this.TableName = "List";
  1004. this.BeginInit();
  1005. this.InitClass();
  1006. this.EndInit();
  1007. }
  1008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1010. internal ListDataTable(global::System.Data.DataTable table) {
  1011. this.TableName = table.TableName;
  1012. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1013. this.CaseSensitive = table.CaseSensitive;
  1014. }
  1015. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1016. this.Locale = table.Locale;
  1017. }
  1018. if ((table.Namespace != table.DataSet.Namespace)) {
  1019. this.Namespace = table.Namespace;
  1020. }
  1021. this.Prefix = table.Prefix;
  1022. this.MinimumCapacity = table.MinimumCapacity;
  1023. }
  1024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1026. protected ListDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1027. base(info, context) {
  1028. this.InitVars();
  1029. }
  1030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1032. public global::System.Data.DataColumn АртикулColumn {
  1033. get {
  1034. return this.columnАртикул;
  1035. }
  1036. }
  1037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1039. public global::System.Data.DataColumn НаименованиеColumn {
  1040. get {
  1041. return this.columnНаименование;
  1042. }
  1043. }
  1044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1046. public global::System.Data.DataColumn ЦенаColumn {
  1047. get {
  1048. return this.columnЦена;
  1049. }
  1050. }
  1051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1053. public global::System.Data.DataColumn КоличествоColumn {
  1054. get {
  1055. return this.columnКоличество;
  1056. }
  1057. }
  1058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1060. public global::System.Data.DataColumn Место_храненияColumn {
  1061. get {
  1062. return this.columnМесто_хранения;
  1063. }
  1064. }
  1065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1067. [global::System.ComponentModel.Browsable(false)]
  1068. public int Count {
  1069. get {
  1070. return this.Rows.Count;
  1071. }
  1072. }
  1073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1075. public ListRow this[int index] {
  1076. get {
  1077. return ((ListRow)(this.Rows[index]));
  1078. }
  1079. }
  1080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1081. public event ListRowChangeEventHandler ListRowChanging;
  1082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1083. public event ListRowChangeEventHandler ListRowChanged;
  1084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1085. public event ListRowChangeEventHandler ListRowDeleting;
  1086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1087. public event ListRowChangeEventHandler ListRowDeleted;
  1088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1090. public void AddListRow(ListRow row) {
  1091. this.Rows.Add(row);
  1092. }
  1093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1095. public ListRow AddListRow(string Артикул, string Наименование, decimal Цена, int Количество, string Место_хранения) {
  1096. ListRow rowListRow = ((ListRow)(this.NewRow()));
  1097. object[] columnValuesArray = new object[] {
  1098. Артикул,
  1099. Наименование,
  1100. Цена,
  1101. Количество,
  1102. Место_хранения};
  1103. rowListRow.ItemArray = columnValuesArray;
  1104. this.Rows.Add(rowListRow);
  1105. return rowListRow;
  1106. }
  1107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1109. public ListRow FindByАртикул(string Артикул) {
  1110. return ((ListRow)(this.Rows.Find(new object[] {
  1111. Артикул})));
  1112. }
  1113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1115. public override global::System.Data.DataTable Clone() {
  1116. ListDataTable cln = ((ListDataTable)(base.Clone()));
  1117. cln.InitVars();
  1118. return cln;
  1119. }
  1120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1122. protected override global::System.Data.DataTable CreateInstance() {
  1123. return new ListDataTable();
  1124. }
  1125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1127. internal void InitVars() {
  1128. this.columnАртикул = base.Columns["Артикул"];
  1129. this.columnНаименование = base.Columns["Наименование"];
  1130. this.columnЦена = base.Columns["Цена"];
  1131. this.columnКоличество = base.Columns["Количество"];
  1132. this.columnМесто_хранения = base.Columns["Место хранения"];
  1133. }
  1134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1136. private void InitClass() {
  1137. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  1138. base.Columns.Add(this.columnАртикул);
  1139. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  1140. base.Columns.Add(this.columnНаименование);
  1141. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  1142. base.Columns.Add(this.columnЦена);
  1143. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  1144. base.Columns.Add(this.columnКоличество);
  1145. this.columnМесто_хранения = new global::System.Data.DataColumn("Место хранения", typeof(string), null, global::System.Data.MappingType.Element);
  1146. base.Columns.Add(this.columnМесто_хранения);
  1147. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1148. this.columnАртикул}, true));
  1149. this.columnАртикул.AllowDBNull = false;
  1150. this.columnАртикул.Unique = true;
  1151. this.columnАртикул.MaxLength = 450;
  1152. this.columnНаименование.MaxLength = 2147483647;
  1153. this.columnМесто_хранения.MaxLength = 70;
  1154. }
  1155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1157. public ListRow NewListRow() {
  1158. return ((ListRow)(this.NewRow()));
  1159. }
  1160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1162. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1163. return new ListRow(builder);
  1164. }
  1165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1167. protected override global::System.Type GetRowType() {
  1168. return typeof(ListRow);
  1169. }
  1170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1172. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1173. base.OnRowChanged(e);
  1174. if ((this.ListRowChanged != null)) {
  1175. this.ListRowChanged(this, new ListRowChangeEvent(((ListRow)(e.Row)), e.Action));
  1176. }
  1177. }
  1178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1180. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1181. base.OnRowChanging(e);
  1182. if ((this.ListRowChanging != null)) {
  1183. this.ListRowChanging(this, new ListRowChangeEvent(((ListRow)(e.Row)), e.Action));
  1184. }
  1185. }
  1186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1188. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1189. base.OnRowDeleted(e);
  1190. if ((this.ListRowDeleted != null)) {
  1191. this.ListRowDeleted(this, new ListRowChangeEvent(((ListRow)(e.Row)), e.Action));
  1192. }
  1193. }
  1194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1196. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1197. base.OnRowDeleting(e);
  1198. if ((this.ListRowDeleting != null)) {
  1199. this.ListRowDeleting(this, new ListRowChangeEvent(((ListRow)(e.Row)), e.Action));
  1200. }
  1201. }
  1202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1204. public void RemoveListRow(ListRow row) {
  1205. this.Rows.Remove(row);
  1206. }
  1207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1209. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1210. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1211. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1212. GushchinaDataSet ds = new GushchinaDataSet();
  1213. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1214. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1215. any1.MinOccurs = new decimal(0);
  1216. any1.MaxOccurs = decimal.MaxValue;
  1217. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1218. sequence.Items.Add(any1);
  1219. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1220. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1221. any2.MinOccurs = new decimal(1);
  1222. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1223. sequence.Items.Add(any2);
  1224. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1225. attribute1.Name = "namespace";
  1226. attribute1.FixedValue = ds.Namespace;
  1227. type.Attributes.Add(attribute1);
  1228. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1229. attribute2.Name = "tableTypeName";
  1230. attribute2.FixedValue = "ListDataTable";
  1231. type.Attributes.Add(attribute2);
  1232. type.Particle = sequence;
  1233. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1234. if (xs.Contains(dsSchema.TargetNamespace)) {
  1235. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1236. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1237. try {
  1238. global::System.Xml.Schema.XmlSchema schema = null;
  1239. dsSchema.Write(s1);
  1240. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1241. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1242. s2.SetLength(0);
  1243. schema.Write(s2);
  1244. if ((s1.Length == s2.Length)) {
  1245. s1.Position = 0;
  1246. s2.Position = 0;
  1247. for (; ((s1.Position != s1.Length)
  1248. && (s1.ReadByte() == s2.ReadByte())); ) {
  1249. ;
  1250. }
  1251. if ((s1.Position == s1.Length)) {
  1252. return type;
  1253. }
  1254. }
  1255. }
  1256. }
  1257. finally {
  1258. if ((s1 != null)) {
  1259. s1.Close();
  1260. }
  1261. if ((s2 != null)) {
  1262. s2.Close();
  1263. }
  1264. }
  1265. }
  1266. xs.Add(dsSchema);
  1267. return type;
  1268. }
  1269. }
  1270. /// <summary>
  1271. ///Represents the strongly named DataTable class.
  1272. ///</summary>
  1273. [global::System.Serializable()]
  1274. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1275. public partial class PurchaseDataTable : global::System.Data.TypedTableBase<PurchaseRow> {
  1276. private global::System.Data.DataColumn columnАртикул;
  1277. private global::System.Data.DataColumn columnНаименование;
  1278. private global::System.Data.DataColumn columnЦена;
  1279. private global::System.Data.DataColumn _columnПринудительное_перемешение__Да_Нет_;
  1280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1282. public PurchaseDataTable() {
  1283. this.TableName = "Purchase";
  1284. this.BeginInit();
  1285. this.InitClass();
  1286. this.EndInit();
  1287. }
  1288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1290. internal PurchaseDataTable(global::System.Data.DataTable table) {
  1291. this.TableName = table.TableName;
  1292. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1293. this.CaseSensitive = table.CaseSensitive;
  1294. }
  1295. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1296. this.Locale = table.Locale;
  1297. }
  1298. if ((table.Namespace != table.DataSet.Namespace)) {
  1299. this.Namespace = table.Namespace;
  1300. }
  1301. this.Prefix = table.Prefix;
  1302. this.MinimumCapacity = table.MinimumCapacity;
  1303. }
  1304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1306. protected PurchaseDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1307. base(info, context) {
  1308. this.InitVars();
  1309. }
  1310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1312. public global::System.Data.DataColumn АртикулColumn {
  1313. get {
  1314. return this.columnАртикул;
  1315. }
  1316. }
  1317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1319. public global::System.Data.DataColumn НаименованиеColumn {
  1320. get {
  1321. return this.columnНаименование;
  1322. }
  1323. }
  1324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1326. public global::System.Data.DataColumn ЦенаColumn {
  1327. get {
  1328. return this.columnЦена;
  1329. }
  1330. }
  1331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1333. public global::System.Data.DataColumn _Принудительное_перемешение__Да_Нет_Column {
  1334. get {
  1335. return this._columnПринудительное_перемешение__Да_Нет_;
  1336. }
  1337. }
  1338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1340. [global::System.ComponentModel.Browsable(false)]
  1341. public int Count {
  1342. get {
  1343. return this.Rows.Count;
  1344. }
  1345. }
  1346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1348. public PurchaseRow this[int index] {
  1349. get {
  1350. return ((PurchaseRow)(this.Rows[index]));
  1351. }
  1352. }
  1353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1354. public event PurchaseRowChangeEventHandler PurchaseRowChanging;
  1355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1356. public event PurchaseRowChangeEventHandler PurchaseRowChanged;
  1357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1358. public event PurchaseRowChangeEventHandler PurchaseRowDeleting;
  1359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1360. public event PurchaseRowChangeEventHandler PurchaseRowDeleted;
  1361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1363. public void AddPurchaseRow(PurchaseRow row) {
  1364. this.Rows.Add(row);
  1365. }
  1366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1368. public PurchaseRow AddPurchaseRow(string Артикул, string Наименование, decimal Цена, string _Принудительное_перемешение__Да_Нет_) {
  1369. PurchaseRow rowPurchaseRow = ((PurchaseRow)(this.NewRow()));
  1370. object[] columnValuesArray = new object[] {
  1371. Артикул,
  1372. Наименование,
  1373. Цена,
  1374. _Принудительное_перемешение__Да_Нет_};
  1375. rowPurchaseRow.ItemArray = columnValuesArray;
  1376. this.Rows.Add(rowPurchaseRow);
  1377. return rowPurchaseRow;
  1378. }
  1379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1381. public PurchaseRow FindByАртикул(string Артикул) {
  1382. return ((PurchaseRow)(this.Rows.Find(new object[] {
  1383. Артикул})));
  1384. }
  1385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1387. public override global::System.Data.DataTable Clone() {
  1388. PurchaseDataTable cln = ((PurchaseDataTable)(base.Clone()));
  1389. cln.InitVars();
  1390. return cln;
  1391. }
  1392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1394. protected override global::System.Data.DataTable CreateInstance() {
  1395. return new PurchaseDataTable();
  1396. }
  1397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1399. internal void InitVars() {
  1400. this.columnАртикул = base.Columns["Артикул"];
  1401. this.columnНаименование = base.Columns["Наименование"];
  1402. this.columnЦена = base.Columns["Цена"];
  1403. this._columnПринудительное_перемешение__Да_Нет_ = base.Columns["Принудительное перемешение (Да/Нет)"];
  1404. }
  1405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1407. private void InitClass() {
  1408. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  1409. base.Columns.Add(this.columnАртикул);
  1410. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  1411. base.Columns.Add(this.columnНаименование);
  1412. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  1413. base.Columns.Add(this.columnЦена);
  1414. this._columnПринудительное_перемешение__Да_Нет_ = new global::System.Data.DataColumn("Принудительное перемешение (Да/Нет)", typeof(string), null, global::System.Data.MappingType.Element);
  1415. this._columnПринудительное_перемешение__Да_Нет_.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnПринудительное_перемешение__Да_Нет_");
  1416. this._columnПринудительное_перемешение__Да_Нет_.ExtendedProperties.Add("Generator_UserColumnName", "Принудительное перемешение (Да/Нет)");
  1417. base.Columns.Add(this._columnПринудительное_перемешение__Да_Нет_);
  1418. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1419. this.columnАртикул}, true));
  1420. this.columnАртикул.AllowDBNull = false;
  1421. this.columnАртикул.Unique = true;
  1422. this.columnАртикул.MaxLength = 450;
  1423. this.columnНаименование.MaxLength = 2147483647;
  1424. this._columnПринудительное_перемешение__Да_Нет_.MaxLength = 3;
  1425. }
  1426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1428. public PurchaseRow NewPurchaseRow() {
  1429. return ((PurchaseRow)(this.NewRow()));
  1430. }
  1431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1433. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1434. return new PurchaseRow(builder);
  1435. }
  1436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1438. protected override global::System.Type GetRowType() {
  1439. return typeof(PurchaseRow);
  1440. }
  1441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1443. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1444. base.OnRowChanged(e);
  1445. if ((this.PurchaseRowChanged != null)) {
  1446. this.PurchaseRowChanged(this, new PurchaseRowChangeEvent(((PurchaseRow)(e.Row)), e.Action));
  1447. }
  1448. }
  1449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1451. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1452. base.OnRowChanging(e);
  1453. if ((this.PurchaseRowChanging != null)) {
  1454. this.PurchaseRowChanging(this, new PurchaseRowChangeEvent(((PurchaseRow)(e.Row)), e.Action));
  1455. }
  1456. }
  1457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1459. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1460. base.OnRowDeleted(e);
  1461. if ((this.PurchaseRowDeleted != null)) {
  1462. this.PurchaseRowDeleted(this, new PurchaseRowChangeEvent(((PurchaseRow)(e.Row)), e.Action));
  1463. }
  1464. }
  1465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1467. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1468. base.OnRowDeleting(e);
  1469. if ((this.PurchaseRowDeleting != null)) {
  1470. this.PurchaseRowDeleting(this, new PurchaseRowChangeEvent(((PurchaseRow)(e.Row)), e.Action));
  1471. }
  1472. }
  1473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1475. public void RemovePurchaseRow(PurchaseRow row) {
  1476. this.Rows.Remove(row);
  1477. }
  1478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1480. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1481. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1482. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1483. GushchinaDataSet ds = new GushchinaDataSet();
  1484. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1485. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1486. any1.MinOccurs = new decimal(0);
  1487. any1.MaxOccurs = decimal.MaxValue;
  1488. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1489. sequence.Items.Add(any1);
  1490. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1491. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1492. any2.MinOccurs = new decimal(1);
  1493. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1494. sequence.Items.Add(any2);
  1495. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1496. attribute1.Name = "namespace";
  1497. attribute1.FixedValue = ds.Namespace;
  1498. type.Attributes.Add(attribute1);
  1499. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1500. attribute2.Name = "tableTypeName";
  1501. attribute2.FixedValue = "PurchaseDataTable";
  1502. type.Attributes.Add(attribute2);
  1503. type.Particle = sequence;
  1504. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1505. if (xs.Contains(dsSchema.TargetNamespace)) {
  1506. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1507. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1508. try {
  1509. global::System.Xml.Schema.XmlSchema schema = null;
  1510. dsSchema.Write(s1);
  1511. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1512. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1513. s2.SetLength(0);
  1514. schema.Write(s2);
  1515. if ((s1.Length == s2.Length)) {
  1516. s1.Position = 0;
  1517. s2.Position = 0;
  1518. for (; ((s1.Position != s1.Length)
  1519. && (s1.ReadByte() == s2.ReadByte())); ) {
  1520. ;
  1521. }
  1522. if ((s1.Position == s1.Length)) {
  1523. return type;
  1524. }
  1525. }
  1526. }
  1527. }
  1528. finally {
  1529. if ((s1 != null)) {
  1530. s1.Close();
  1531. }
  1532. if ((s2 != null)) {
  1533. s2.Close();
  1534. }
  1535. }
  1536. }
  1537. xs.Add(dsSchema);
  1538. return type;
  1539. }
  1540. }
  1541. /// <summary>
  1542. ///Represents the strongly named DataTable class.
  1543. ///</summary>
  1544. [global::System.Serializable()]
  1545. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1546. public partial class Used_consumablesDataTable : global::System.Data.TypedTableBase<Used_consumablesRow> {
  1547. private global::System.Data.DataColumn columnАртикул;
  1548. private global::System.Data.DataColumn columnНаименование;
  1549. private global::System.Data.DataColumn columnЦена;
  1550. private global::System.Data.DataColumn columnКоличество;
  1551. private global::System.Data.DataColumn columnДата;
  1552. private global::System.Data.DataColumn columnСотрудник;
  1553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1555. public Used_consumablesDataTable() {
  1556. this.TableName = "Used_consumables";
  1557. this.BeginInit();
  1558. this.InitClass();
  1559. this.EndInit();
  1560. }
  1561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1563. internal Used_consumablesDataTable(global::System.Data.DataTable table) {
  1564. this.TableName = table.TableName;
  1565. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1566. this.CaseSensitive = table.CaseSensitive;
  1567. }
  1568. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1569. this.Locale = table.Locale;
  1570. }
  1571. if ((table.Namespace != table.DataSet.Namespace)) {
  1572. this.Namespace = table.Namespace;
  1573. }
  1574. this.Prefix = table.Prefix;
  1575. this.MinimumCapacity = table.MinimumCapacity;
  1576. }
  1577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1579. protected Used_consumablesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1580. base(info, context) {
  1581. this.InitVars();
  1582. }
  1583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1585. public global::System.Data.DataColumn АртикулColumn {
  1586. get {
  1587. return this.columnАртикул;
  1588. }
  1589. }
  1590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1592. public global::System.Data.DataColumn НаименованиеColumn {
  1593. get {
  1594. return this.columnНаименование;
  1595. }
  1596. }
  1597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1599. public global::System.Data.DataColumn ЦенаColumn {
  1600. get {
  1601. return this.columnЦена;
  1602. }
  1603. }
  1604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1606. public global::System.Data.DataColumn КоличествоColumn {
  1607. get {
  1608. return this.columnКоличество;
  1609. }
  1610. }
  1611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1613. public global::System.Data.DataColumn ДатаColumn {
  1614. get {
  1615. return this.columnДата;
  1616. }
  1617. }
  1618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1620. public global::System.Data.DataColumn СотрудникColumn {
  1621. get {
  1622. return this.columnСотрудник;
  1623. }
  1624. }
  1625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1627. [global::System.ComponentModel.Browsable(false)]
  1628. public int Count {
  1629. get {
  1630. return this.Rows.Count;
  1631. }
  1632. }
  1633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1635. public Used_consumablesRow this[int index] {
  1636. get {
  1637. return ((Used_consumablesRow)(this.Rows[index]));
  1638. }
  1639. }
  1640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1641. public event Used_consumablesRowChangeEventHandler Used_consumablesRowChanging;
  1642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1643. public event Used_consumablesRowChangeEventHandler Used_consumablesRowChanged;
  1644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1645. public event Used_consumablesRowChangeEventHandler Used_consumablesRowDeleting;
  1646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1647. public event Used_consumablesRowChangeEventHandler Used_consumablesRowDeleted;
  1648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1650. public void AddUsed_consumablesRow(Used_consumablesRow row) {
  1651. this.Rows.Add(row);
  1652. }
  1653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1655. public Used_consumablesRow AddUsed_consumablesRow(WarehouseRow parentWarehouseRowByFK_Used_consumables_Warehouse, string Наименование, decimal Цена, int Количество, System.DateTime Дата, string Сотрудник) {
  1656. Used_consumablesRow rowUsed_consumablesRow = ((Used_consumablesRow)(this.NewRow()));
  1657. object[] columnValuesArray = new object[] {
  1658. null,
  1659. Наименование,
  1660. Цена,
  1661. Количество,
  1662. Дата,
  1663. Сотрудник};
  1664. if ((parentWarehouseRowByFK_Used_consumables_Warehouse != null)) {
  1665. columnValuesArray[0] = parentWarehouseRowByFK_Used_consumables_Warehouse[0];
  1666. }
  1667. rowUsed_consumablesRow.ItemArray = columnValuesArray;
  1668. this.Rows.Add(rowUsed_consumablesRow);
  1669. return rowUsed_consumablesRow;
  1670. }
  1671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1673. public override global::System.Data.DataTable Clone() {
  1674. Used_consumablesDataTable cln = ((Used_consumablesDataTable)(base.Clone()));
  1675. cln.InitVars();
  1676. return cln;
  1677. }
  1678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1680. protected override global::System.Data.DataTable CreateInstance() {
  1681. return new Used_consumablesDataTable();
  1682. }
  1683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1685. internal void InitVars() {
  1686. this.columnАртикул = base.Columns["Артикул"];
  1687. this.columnНаименование = base.Columns["Наименование"];
  1688. this.columnЦена = base.Columns["Цена"];
  1689. this.columnКоличество = base.Columns["Количество"];
  1690. this.columnДата = base.Columns["Дата"];
  1691. this.columnСотрудник = base.Columns["Сотрудник"];
  1692. }
  1693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1695. private void InitClass() {
  1696. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  1697. base.Columns.Add(this.columnАртикул);
  1698. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  1699. base.Columns.Add(this.columnНаименование);
  1700. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  1701. base.Columns.Add(this.columnЦена);
  1702. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  1703. base.Columns.Add(this.columnКоличество);
  1704. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1705. base.Columns.Add(this.columnДата);
  1706. this.columnСотрудник = new global::System.Data.DataColumn("Сотрудник", typeof(string), null, global::System.Data.MappingType.Element);
  1707. base.Columns.Add(this.columnСотрудник);
  1708. this.columnАртикул.AllowDBNull = false;
  1709. this.columnАртикул.MaxLength = 450;
  1710. this.columnНаименование.MaxLength = 2147483647;
  1711. this.columnСотрудник.MaxLength = 2147483647;
  1712. }
  1713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1715. public Used_consumablesRow NewUsed_consumablesRow() {
  1716. return ((Used_consumablesRow)(this.NewRow()));
  1717. }
  1718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1720. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1721. return new Used_consumablesRow(builder);
  1722. }
  1723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1725. protected override global::System.Type GetRowType() {
  1726. return typeof(Used_consumablesRow);
  1727. }
  1728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1730. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1731. base.OnRowChanged(e);
  1732. if ((this.Used_consumablesRowChanged != null)) {
  1733. this.Used_consumablesRowChanged(this, new Used_consumablesRowChangeEvent(((Used_consumablesRow)(e.Row)), e.Action));
  1734. }
  1735. }
  1736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1738. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1739. base.OnRowChanging(e);
  1740. if ((this.Used_consumablesRowChanging != null)) {
  1741. this.Used_consumablesRowChanging(this, new Used_consumablesRowChangeEvent(((Used_consumablesRow)(e.Row)), e.Action));
  1742. }
  1743. }
  1744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1746. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1747. base.OnRowDeleted(e);
  1748. if ((this.Used_consumablesRowDeleted != null)) {
  1749. this.Used_consumablesRowDeleted(this, new Used_consumablesRowChangeEvent(((Used_consumablesRow)(e.Row)), e.Action));
  1750. }
  1751. }
  1752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1754. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1755. base.OnRowDeleting(e);
  1756. if ((this.Used_consumablesRowDeleting != null)) {
  1757. this.Used_consumablesRowDeleting(this, new Used_consumablesRowChangeEvent(((Used_consumablesRow)(e.Row)), e.Action));
  1758. }
  1759. }
  1760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1762. public void RemoveUsed_consumablesRow(Used_consumablesRow row) {
  1763. this.Rows.Remove(row);
  1764. }
  1765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1767. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1768. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1769. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1770. GushchinaDataSet ds = new GushchinaDataSet();
  1771. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1772. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1773. any1.MinOccurs = new decimal(0);
  1774. any1.MaxOccurs = decimal.MaxValue;
  1775. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1776. sequence.Items.Add(any1);
  1777. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1778. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1779. any2.MinOccurs = new decimal(1);
  1780. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1781. sequence.Items.Add(any2);
  1782. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1783. attribute1.Name = "namespace";
  1784. attribute1.FixedValue = ds.Namespace;
  1785. type.Attributes.Add(attribute1);
  1786. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1787. attribute2.Name = "tableTypeName";
  1788. attribute2.FixedValue = "Used_consumablesDataTable";
  1789. type.Attributes.Add(attribute2);
  1790. type.Particle = sequence;
  1791. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1792. if (xs.Contains(dsSchema.TargetNamespace)) {
  1793. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1794. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1795. try {
  1796. global::System.Xml.Schema.XmlSchema schema = null;
  1797. dsSchema.Write(s1);
  1798. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1799. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1800. s2.SetLength(0);
  1801. schema.Write(s2);
  1802. if ((s1.Length == s2.Length)) {
  1803. s1.Position = 0;
  1804. s2.Position = 0;
  1805. for (; ((s1.Position != s1.Length)
  1806. && (s1.ReadByte() == s2.ReadByte())); ) {
  1807. ;
  1808. }
  1809. if ((s1.Position == s1.Length)) {
  1810. return type;
  1811. }
  1812. }
  1813. }
  1814. }
  1815. finally {
  1816. if ((s1 != null)) {
  1817. s1.Close();
  1818. }
  1819. if ((s2 != null)) {
  1820. s2.Close();
  1821. }
  1822. }
  1823. }
  1824. xs.Add(dsSchema);
  1825. return type;
  1826. }
  1827. }
  1828. /// <summary>
  1829. ///Represents the strongly named DataTable class.
  1830. ///</summary>
  1831. [global::System.Serializable()]
  1832. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1833. public partial class WarehouseDataTable : global::System.Data.TypedTableBase<WarehouseRow> {
  1834. private global::System.Data.DataColumn columnАртикул;
  1835. private global::System.Data.DataColumn columnНаименование;
  1836. private global::System.Data.DataColumn columnЦена;
  1837. private global::System.Data.DataColumn columnКоличество;
  1838. private global::System.Data.DataColumn _columnМесто_хранения__Склад_Витрина_;
  1839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1841. public WarehouseDataTable() {
  1842. this.TableName = "Warehouse";
  1843. this.BeginInit();
  1844. this.InitClass();
  1845. this.EndInit();
  1846. }
  1847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1849. internal WarehouseDataTable(global::System.Data.DataTable table) {
  1850. this.TableName = table.TableName;
  1851. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1852. this.CaseSensitive = table.CaseSensitive;
  1853. }
  1854. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1855. this.Locale = table.Locale;
  1856. }
  1857. if ((table.Namespace != table.DataSet.Namespace)) {
  1858. this.Namespace = table.Namespace;
  1859. }
  1860. this.Prefix = table.Prefix;
  1861. this.MinimumCapacity = table.MinimumCapacity;
  1862. }
  1863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1865. protected WarehouseDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1866. base(info, context) {
  1867. this.InitVars();
  1868. }
  1869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1871. public global::System.Data.DataColumn АртикулColumn {
  1872. get {
  1873. return this.columnАртикул;
  1874. }
  1875. }
  1876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1878. public global::System.Data.DataColumn НаименованиеColumn {
  1879. get {
  1880. return this.columnНаименование;
  1881. }
  1882. }
  1883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1885. public global::System.Data.DataColumn ЦенаColumn {
  1886. get {
  1887. return this.columnЦена;
  1888. }
  1889. }
  1890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1892. public global::System.Data.DataColumn КоличествоColumn {
  1893. get {
  1894. return this.columnКоличество;
  1895. }
  1896. }
  1897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1899. public global::System.Data.DataColumn _Место_хранения__Склад_Витрина_Column {
  1900. get {
  1901. return this._columnМесто_хранения__Склад_Витрина_;
  1902. }
  1903. }
  1904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1906. [global::System.ComponentModel.Browsable(false)]
  1907. public int Count {
  1908. get {
  1909. return this.Rows.Count;
  1910. }
  1911. }
  1912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1914. public WarehouseRow this[int index] {
  1915. get {
  1916. return ((WarehouseRow)(this.Rows[index]));
  1917. }
  1918. }
  1919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1920. public event WarehouseRowChangeEventHandler WarehouseRowChanging;
  1921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1922. public event WarehouseRowChangeEventHandler WarehouseRowChanged;
  1923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1924. public event WarehouseRowChangeEventHandler WarehouseRowDeleting;
  1925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1926. public event WarehouseRowChangeEventHandler WarehouseRowDeleted;
  1927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1929. public void AddWarehouseRow(WarehouseRow row) {
  1930. this.Rows.Add(row);
  1931. }
  1932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1934. public WarehouseRow AddWarehouseRow(ListRow parentListRowByFK_Warehouse_List, string Наименование, decimal Цена, int Количество, string _Место_хранения__Склад_Витрина_) {
  1935. WarehouseRow rowWarehouseRow = ((WarehouseRow)(this.NewRow()));
  1936. object[] columnValuesArray = new object[] {
  1937. null,
  1938. Наименование,
  1939. Цена,
  1940. Количество,
  1941. _Место_хранения__Склад_Витрина_};
  1942. if ((parentListRowByFK_Warehouse_List != null)) {
  1943. columnValuesArray[0] = parentListRowByFK_Warehouse_List[0];
  1944. }
  1945. rowWarehouseRow.ItemArray = columnValuesArray;
  1946. this.Rows.Add(rowWarehouseRow);
  1947. return rowWarehouseRow;
  1948. }
  1949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1951. public WarehouseRow FindByАртикул(string Артикул) {
  1952. return ((WarehouseRow)(this.Rows.Find(new object[] {
  1953. Артикул})));
  1954. }
  1955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1957. public override global::System.Data.DataTable Clone() {
  1958. WarehouseDataTable cln = ((WarehouseDataTable)(base.Clone()));
  1959. cln.InitVars();
  1960. return cln;
  1961. }
  1962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1964. protected override global::System.Data.DataTable CreateInstance() {
  1965. return new WarehouseDataTable();
  1966. }
  1967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1969. internal void InitVars() {
  1970. this.columnАртикул = base.Columns["Артикул"];
  1971. this.columnНаименование = base.Columns["Наименование"];
  1972. this.columnЦена = base.Columns["Цена"];
  1973. this.columnКоличество = base.Columns["Количество"];
  1974. this._columnМесто_хранения__Склад_Витрина_ = base.Columns["Место хранения (Склад/Витрина)"];
  1975. }
  1976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1978. private void InitClass() {
  1979. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  1980. base.Columns.Add(this.columnАртикул);
  1981. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  1982. base.Columns.Add(this.columnНаименование);
  1983. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  1984. base.Columns.Add(this.columnЦена);
  1985. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  1986. base.Columns.Add(this.columnКоличество);
  1987. this._columnМесто_хранения__Склад_Витрина_ = new global::System.Data.DataColumn("Место хранения (Склад/Витрина)", typeof(string), null, global::System.Data.MappingType.Element);
  1988. this._columnМесто_хранения__Склад_Витрина_.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnМесто_хранения__Склад_Витрина_");
  1989. this._columnМесто_хранения__Склад_Витрина_.ExtendedProperties.Add("Generator_UserColumnName", "Место хранения (Склад/Витрина)");
  1990. base.Columns.Add(this._columnМесто_хранения__Склад_Витрина_);
  1991. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1992. this.columnАртикул}, true));
  1993. this.columnАртикул.AllowDBNull = false;
  1994. this.columnАртикул.Unique = true;
  1995. this.columnАртикул.MaxLength = 450;
  1996. this.columnНаименование.MaxLength = 2147483647;
  1997. this._columnМесто_хранения__Склад_Витрина_.MaxLength = 7;
  1998. }
  1999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2001. public WarehouseRow NewWarehouseRow() {
  2002. return ((WarehouseRow)(this.NewRow()));
  2003. }
  2004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2006. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2007. return new WarehouseRow(builder);
  2008. }
  2009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2011. protected override global::System.Type GetRowType() {
  2012. return typeof(WarehouseRow);
  2013. }
  2014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2016. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2017. base.OnRowChanged(e);
  2018. if ((this.WarehouseRowChanged != null)) {
  2019. this.WarehouseRowChanged(this, new WarehouseRowChangeEvent(((WarehouseRow)(e.Row)), e.Action));
  2020. }
  2021. }
  2022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2024. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2025. base.OnRowChanging(e);
  2026. if ((this.WarehouseRowChanging != null)) {
  2027. this.WarehouseRowChanging(this, new WarehouseRowChangeEvent(((WarehouseRow)(e.Row)), e.Action));
  2028. }
  2029. }
  2030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2032. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2033. base.OnRowDeleted(e);
  2034. if ((this.WarehouseRowDeleted != null)) {
  2035. this.WarehouseRowDeleted(this, new WarehouseRowChangeEvent(((WarehouseRow)(e.Row)), e.Action));
  2036. }
  2037. }
  2038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2040. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2041. base.OnRowDeleting(e);
  2042. if ((this.WarehouseRowDeleting != null)) {
  2043. this.WarehouseRowDeleting(this, new WarehouseRowChangeEvent(((WarehouseRow)(e.Row)), e.Action));
  2044. }
  2045. }
  2046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2048. public void RemoveWarehouseRow(WarehouseRow row) {
  2049. this.Rows.Remove(row);
  2050. }
  2051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2053. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2054. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2055. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2056. GushchinaDataSet ds = new GushchinaDataSet();
  2057. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2058. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2059. any1.MinOccurs = new decimal(0);
  2060. any1.MaxOccurs = decimal.MaxValue;
  2061. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2062. sequence.Items.Add(any1);
  2063. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2064. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2065. any2.MinOccurs = new decimal(1);
  2066. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2067. sequence.Items.Add(any2);
  2068. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2069. attribute1.Name = "namespace";
  2070. attribute1.FixedValue = ds.Namespace;
  2071. type.Attributes.Add(attribute1);
  2072. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2073. attribute2.Name = "tableTypeName";
  2074. attribute2.FixedValue = "WarehouseDataTable";
  2075. type.Attributes.Add(attribute2);
  2076. type.Particle = sequence;
  2077. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2078. if (xs.Contains(dsSchema.TargetNamespace)) {
  2079. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2080. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2081. try {
  2082. global::System.Xml.Schema.XmlSchema schema = null;
  2083. dsSchema.Write(s1);
  2084. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2085. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2086. s2.SetLength(0);
  2087. schema.Write(s2);
  2088. if ((s1.Length == s2.Length)) {
  2089. s1.Position = 0;
  2090. s2.Position = 0;
  2091. for (; ((s1.Position != s1.Length)
  2092. && (s1.ReadByte() == s2.ReadByte())); ) {
  2093. ;
  2094. }
  2095. if ((s1.Position == s1.Length)) {
  2096. return type;
  2097. }
  2098. }
  2099. }
  2100. }
  2101. finally {
  2102. if ((s1 != null)) {
  2103. s1.Close();
  2104. }
  2105. if ((s2 != null)) {
  2106. s2.Close();
  2107. }
  2108. }
  2109. }
  2110. xs.Add(dsSchema);
  2111. return type;
  2112. }
  2113. }
  2114. /// <summary>
  2115. ///Represents strongly named DataRow class.
  2116. ///</summary>
  2117. public partial class Consumables_soldRow : global::System.Data.DataRow {
  2118. private Consumables_soldDataTable tableConsumables_sold;
  2119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2121. internal Consumables_soldRow(global::System.Data.DataRowBuilder rb) :
  2122. base(rb) {
  2123. this.tableConsumables_sold = ((Consumables_soldDataTable)(this.Table));
  2124. }
  2125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2127. public string Артикул {
  2128. get {
  2129. return ((string)(this[this.tableConsumables_sold.АртикулColumn]));
  2130. }
  2131. set {
  2132. this[this.tableConsumables_sold.АртикулColumn] = value;
  2133. }
  2134. }
  2135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2137. public string Наименование {
  2138. get {
  2139. try {
  2140. return ((string)(this[this.tableConsumables_sold.НаименованиеColumn]));
  2141. }
  2142. catch (global::System.InvalidCastException e) {
  2143. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Consumables_sold\' равно DBNull.", e);
  2144. }
  2145. }
  2146. set {
  2147. this[this.tableConsumables_sold.НаименованиеColumn] = value;
  2148. }
  2149. }
  2150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2152. public decimal Цена {
  2153. get {
  2154. try {
  2155. return ((decimal)(this[this.tableConsumables_sold.ЦенаColumn]));
  2156. }
  2157. catch (global::System.InvalidCastException e) {
  2158. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Consumables_sold\' равно DBNull.", e);
  2159. }
  2160. }
  2161. set {
  2162. this[this.tableConsumables_sold.ЦенаColumn] = value;
  2163. }
  2164. }
  2165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2167. public int Количество {
  2168. get {
  2169. try {
  2170. return ((int)(this[this.tableConsumables_sold.КоличествоColumn]));
  2171. }
  2172. catch (global::System.InvalidCastException e) {
  2173. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Consumables_sold\' равно DBNull.", e);
  2174. }
  2175. }
  2176. set {
  2177. this[this.tableConsumables_sold.КоличествоColumn] = value;
  2178. }
  2179. }
  2180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2182. public System.DateTime Дата {
  2183. get {
  2184. try {
  2185. return ((global::System.DateTime)(this[this.tableConsumables_sold.ДатаColumn]));
  2186. }
  2187. catch (global::System.InvalidCastException e) {
  2188. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'Consumables_sold\' равно DBNull.", e);
  2189. }
  2190. }
  2191. set {
  2192. this[this.tableConsumables_sold.ДатаColumn] = value;
  2193. }
  2194. }
  2195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2197. public string Сотрудник {
  2198. get {
  2199. try {
  2200. return ((string)(this[this.tableConsumables_sold.СотрудникColumn]));
  2201. }
  2202. catch (global::System.InvalidCastException e) {
  2203. throw new global::System.Data.StrongTypingException("Значение для столбца \'Сотрудник\' в таблице \'Consumables_sold\' равно DBNull.", e);
  2204. }
  2205. }
  2206. set {
  2207. this[this.tableConsumables_sold.СотрудникColumn] = value;
  2208. }
  2209. }
  2210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2212. public WarehouseRow WarehouseRow {
  2213. get {
  2214. return ((WarehouseRow)(this.GetParentRow(this.Table.ParentRelations["FK_Consumables_sold_Warehouse"])));
  2215. }
  2216. set {
  2217. this.SetParentRow(value, this.Table.ParentRelations["FK_Consumables_sold_Warehouse"]);
  2218. }
  2219. }
  2220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2222. public bool IsНаименованиеNull() {
  2223. return this.IsNull(this.tableConsumables_sold.НаименованиеColumn);
  2224. }
  2225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2227. public void SetНаименованиеNull() {
  2228. this[this.tableConsumables_sold.НаименованиеColumn] = global::System.Convert.DBNull;
  2229. }
  2230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2232. public bool IsЦенаNull() {
  2233. return this.IsNull(this.tableConsumables_sold.ЦенаColumn);
  2234. }
  2235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2237. public void SetЦенаNull() {
  2238. this[this.tableConsumables_sold.ЦенаColumn] = global::System.Convert.DBNull;
  2239. }
  2240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2242. public bool IsКоличествоNull() {
  2243. return this.IsNull(this.tableConsumables_sold.КоличествоColumn);
  2244. }
  2245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2247. public void SetКоличествоNull() {
  2248. this[this.tableConsumables_sold.КоличествоColumn] = global::System.Convert.DBNull;
  2249. }
  2250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2252. public bool IsДатаNull() {
  2253. return this.IsNull(this.tableConsumables_sold.ДатаColumn);
  2254. }
  2255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2257. public void SetДатаNull() {
  2258. this[this.tableConsumables_sold.ДатаColumn] = global::System.Convert.DBNull;
  2259. }
  2260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2262. public bool IsСотрудникNull() {
  2263. return this.IsNull(this.tableConsumables_sold.СотрудникColumn);
  2264. }
  2265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2267. public void SetСотрудникNull() {
  2268. this[this.tableConsumables_sold.СотрудникColumn] = global::System.Convert.DBNull;
  2269. }
  2270. }
  2271. /// <summary>
  2272. ///Represents strongly named DataRow class.
  2273. ///</summary>
  2274. public partial class DeliveriesRow : global::System.Data.DataRow {
  2275. private DeliveriesDataTable tableDeliveries;
  2276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2278. internal DeliveriesRow(global::System.Data.DataRowBuilder rb) :
  2279. base(rb) {
  2280. this.tableDeliveries = ((DeliveriesDataTable)(this.Table));
  2281. }
  2282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2284. public string Артикул {
  2285. get {
  2286. return ((string)(this[this.tableDeliveries.АртикулColumn]));
  2287. }
  2288. set {
  2289. this[this.tableDeliveries.АртикулColumn] = value;
  2290. }
  2291. }
  2292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2294. public string Наименование {
  2295. get {
  2296. try {
  2297. return ((string)(this[this.tableDeliveries.НаименованиеColumn]));
  2298. }
  2299. catch (global::System.InvalidCastException e) {
  2300. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Deliveries\' равно DBNull.", e);
  2301. }
  2302. }
  2303. set {
  2304. this[this.tableDeliveries.НаименованиеColumn] = value;
  2305. }
  2306. }
  2307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2309. public decimal Цена {
  2310. get {
  2311. try {
  2312. return ((decimal)(this[this.tableDeliveries.ЦенаColumn]));
  2313. }
  2314. catch (global::System.InvalidCastException e) {
  2315. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Deliveries\' равно DBNull.", e);
  2316. }
  2317. }
  2318. set {
  2319. this[this.tableDeliveries.ЦенаColumn] = value;
  2320. }
  2321. }
  2322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2324. public System.DateTime Дата {
  2325. get {
  2326. try {
  2327. return ((global::System.DateTime)(this[this.tableDeliveries.ДатаColumn]));
  2328. }
  2329. catch (global::System.InvalidCastException e) {
  2330. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'Deliveries\' равно DBNull.", e);
  2331. }
  2332. }
  2333. set {
  2334. this[this.tableDeliveries.ДатаColumn] = value;
  2335. }
  2336. }
  2337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2339. public ListRow ListRow {
  2340. get {
  2341. return ((ListRow)(this.GetParentRow(this.Table.ParentRelations["FK_Deliveries_List"])));
  2342. }
  2343. set {
  2344. this.SetParentRow(value, this.Table.ParentRelations["FK_Deliveries_List"]);
  2345. }
  2346. }
  2347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2349. public WarehouseRow WarehouseRow {
  2350. get {
  2351. return ((WarehouseRow)(this.GetParentRow(this.Table.ParentRelations["FK_Deliveries_Warehouse"])));
  2352. }
  2353. set {
  2354. this.SetParentRow(value, this.Table.ParentRelations["FK_Deliveries_Warehouse"]);
  2355. }
  2356. }
  2357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2359. public bool IsНаименованиеNull() {
  2360. return this.IsNull(this.tableDeliveries.НаименованиеColumn);
  2361. }
  2362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2364. public void SetНаименованиеNull() {
  2365. this[this.tableDeliveries.НаименованиеColumn] = global::System.Convert.DBNull;
  2366. }
  2367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2369. public bool IsЦенаNull() {
  2370. return this.IsNull(this.tableDeliveries.ЦенаColumn);
  2371. }
  2372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2374. public void SetЦенаNull() {
  2375. this[this.tableDeliveries.ЦенаColumn] = global::System.Convert.DBNull;
  2376. }
  2377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2379. public bool IsДатаNull() {
  2380. return this.IsNull(this.tableDeliveries.ДатаColumn);
  2381. }
  2382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2384. public void SetДатаNull() {
  2385. this[this.tableDeliveries.ДатаColumn] = global::System.Convert.DBNull;
  2386. }
  2387. }
  2388. /// <summary>
  2389. ///Represents strongly named DataRow class.
  2390. ///</summary>
  2391. public partial class ListRow : global::System.Data.DataRow {
  2392. private ListDataTable tableList;
  2393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2395. internal ListRow(global::System.Data.DataRowBuilder rb) :
  2396. base(rb) {
  2397. this.tableList = ((ListDataTable)(this.Table));
  2398. }
  2399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2401. public string Артикул {
  2402. get {
  2403. return ((string)(this[this.tableList.АртикулColumn]));
  2404. }
  2405. set {
  2406. this[this.tableList.АртикулColumn] = value;
  2407. }
  2408. }
  2409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2411. public string Наименование {
  2412. get {
  2413. try {
  2414. return ((string)(this[this.tableList.НаименованиеColumn]));
  2415. }
  2416. catch (global::System.InvalidCastException e) {
  2417. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'List\' равно DBNull.", e);
  2418. }
  2419. }
  2420. set {
  2421. this[this.tableList.НаименованиеColumn] = value;
  2422. }
  2423. }
  2424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2426. public decimal Цена {
  2427. get {
  2428. try {
  2429. return ((decimal)(this[this.tableList.ЦенаColumn]));
  2430. }
  2431. catch (global::System.InvalidCastException e) {
  2432. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'List\' равно DBNull.", e);
  2433. }
  2434. }
  2435. set {
  2436. this[this.tableList.ЦенаColumn] = value;
  2437. }
  2438. }
  2439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2441. public int Количество {
  2442. get {
  2443. try {
  2444. return ((int)(this[this.tableList.КоличествоColumn]));
  2445. }
  2446. catch (global::System.InvalidCastException e) {
  2447. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'List\' равно DBNull.", e);
  2448. }
  2449. }
  2450. set {
  2451. this[this.tableList.КоличествоColumn] = value;
  2452. }
  2453. }
  2454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2456. public string Место_хранения {
  2457. get {
  2458. try {
  2459. return ((string)(this[this.tableList.Место_храненияColumn]));
  2460. }
  2461. catch (global::System.InvalidCastException e) {
  2462. throw new global::System.Data.StrongTypingException("Значение для столбца \'Место хранения\' в таблице \'List\' равно DBNull.", e);
  2463. }
  2464. }
  2465. set {
  2466. this[this.tableList.Место_храненияColumn] = value;
  2467. }
  2468. }
  2469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2471. public bool IsНаименованиеNull() {
  2472. return this.IsNull(this.tableList.НаименованиеColumn);
  2473. }
  2474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2476. public void SetНаименованиеNull() {
  2477. this[this.tableList.НаименованиеColumn] = global::System.Convert.DBNull;
  2478. }
  2479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2481. public bool IsЦенаNull() {
  2482. return this.IsNull(this.tableList.ЦенаColumn);
  2483. }
  2484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2486. public void SetЦенаNull() {
  2487. this[this.tableList.ЦенаColumn] = global::System.Convert.DBNull;
  2488. }
  2489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2491. public bool IsКоличествоNull() {
  2492. return this.IsNull(this.tableList.КоличествоColumn);
  2493. }
  2494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2496. public void SetКоличествоNull() {
  2497. this[this.tableList.КоличествоColumn] = global::System.Convert.DBNull;
  2498. }
  2499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2501. public bool IsМесто_храненияNull() {
  2502. return this.IsNull(this.tableList.Место_храненияColumn);
  2503. }
  2504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2506. public void SetМесто_храненияNull() {
  2507. this[this.tableList.Место_храненияColumn] = global::System.Convert.DBNull;
  2508. }
  2509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2511. public DeliveriesRow[] GetDeliveriesRows() {
  2512. if ((this.Table.ChildRelations["FK_Deliveries_List"] == null)) {
  2513. return new DeliveriesRow[0];
  2514. }
  2515. else {
  2516. return ((DeliveriesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Deliveries_List"])));
  2517. }
  2518. }
  2519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2521. public WarehouseRow[] GetWarehouseRows() {
  2522. if ((this.Table.ChildRelations["FK_Warehouse_List"] == null)) {
  2523. return new WarehouseRow[0];
  2524. }
  2525. else {
  2526. return ((WarehouseRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Warehouse_List"])));
  2527. }
  2528. }
  2529. }
  2530. /// <summary>
  2531. ///Represents strongly named DataRow class.
  2532. ///</summary>
  2533. public partial class PurchaseRow : global::System.Data.DataRow {
  2534. private PurchaseDataTable tablePurchase;
  2535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2537. internal PurchaseRow(global::System.Data.DataRowBuilder rb) :
  2538. base(rb) {
  2539. this.tablePurchase = ((PurchaseDataTable)(this.Table));
  2540. }
  2541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2543. public string Артикул {
  2544. get {
  2545. return ((string)(this[this.tablePurchase.АртикулColumn]));
  2546. }
  2547. set {
  2548. this[this.tablePurchase.АртикулColumn] = value;
  2549. }
  2550. }
  2551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2553. public string Наименование {
  2554. get {
  2555. try {
  2556. return ((string)(this[this.tablePurchase.НаименованиеColumn]));
  2557. }
  2558. catch (global::System.InvalidCastException e) {
  2559. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Purchase\' равно DBNull.", e);
  2560. }
  2561. }
  2562. set {
  2563. this[this.tablePurchase.НаименованиеColumn] = value;
  2564. }
  2565. }
  2566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2568. public decimal Цена {
  2569. get {
  2570. try {
  2571. return ((decimal)(this[this.tablePurchase.ЦенаColumn]));
  2572. }
  2573. catch (global::System.InvalidCastException e) {
  2574. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Purchase\' равно DBNull.", e);
  2575. }
  2576. }
  2577. set {
  2578. this[this.tablePurchase.ЦенаColumn] = value;
  2579. }
  2580. }
  2581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2583. public string _Принудительное_перемешение__Да_Нет_ {
  2584. get {
  2585. try {
  2586. return ((string)(this[this.tablePurchase._Принудительное_перемешение__Да_Нет_Column]));
  2587. }
  2588. catch (global::System.InvalidCastException e) {
  2589. throw new global::System.Data.StrongTypingException("Значение для столбца \'Принудительное перемешение (Да/Нет)\' в таблице \'Purchase\' р" +
  2590. "авно DBNull.", e);
  2591. }
  2592. }
  2593. set {
  2594. this[this.tablePurchase._Принудительное_перемешение__Да_Нет_Column] = value;
  2595. }
  2596. }
  2597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2599. public bool IsНаименованиеNull() {
  2600. return this.IsNull(this.tablePurchase.НаименованиеColumn);
  2601. }
  2602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2604. public void SetНаименованиеNull() {
  2605. this[this.tablePurchase.НаименованиеColumn] = global::System.Convert.DBNull;
  2606. }
  2607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2609. public bool IsЦенаNull() {
  2610. return this.IsNull(this.tablePurchase.ЦенаColumn);
  2611. }
  2612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2614. public void SetЦенаNull() {
  2615. this[this.tablePurchase.ЦенаColumn] = global::System.Convert.DBNull;
  2616. }
  2617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2619. public bool Is_Принудительное_перемешение__Да_Нет_Null() {
  2620. return this.IsNull(this.tablePurchase._Принудительное_перемешение__Да_Нет_Column);
  2621. }
  2622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2624. public void Set_Принудительное_перемешение__Да_Нет_Null() {
  2625. this[this.tablePurchase._Принудительное_перемешение__Да_Нет_Column] = global::System.Convert.DBNull;
  2626. }
  2627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2629. public WarehouseRow[] GetWarehouseRows() {
  2630. if ((this.Table.ChildRelations["FK_Warehouse_Purchase"] == null)) {
  2631. return new WarehouseRow[0];
  2632. }
  2633. else {
  2634. return ((WarehouseRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Warehouse_Purchase"])));
  2635. }
  2636. }
  2637. }
  2638. /// <summary>
  2639. ///Represents strongly named DataRow class.
  2640. ///</summary>
  2641. public partial class Used_consumablesRow : global::System.Data.DataRow {
  2642. private Used_consumablesDataTable tableUsed_consumables;
  2643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2645. internal Used_consumablesRow(global::System.Data.DataRowBuilder rb) :
  2646. base(rb) {
  2647. this.tableUsed_consumables = ((Used_consumablesDataTable)(this.Table));
  2648. }
  2649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2651. public string Артикул {
  2652. get {
  2653. return ((string)(this[this.tableUsed_consumables.АртикулColumn]));
  2654. }
  2655. set {
  2656. this[this.tableUsed_consumables.АртикулColumn] = value;
  2657. }
  2658. }
  2659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2661. public string Наименование {
  2662. get {
  2663. try {
  2664. return ((string)(this[this.tableUsed_consumables.НаименованиеColumn]));
  2665. }
  2666. catch (global::System.InvalidCastException e) {
  2667. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Used_consumables\' равно DBNull.", e);
  2668. }
  2669. }
  2670. set {
  2671. this[this.tableUsed_consumables.НаименованиеColumn] = value;
  2672. }
  2673. }
  2674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2676. public decimal Цена {
  2677. get {
  2678. try {
  2679. return ((decimal)(this[this.tableUsed_consumables.ЦенаColumn]));
  2680. }
  2681. catch (global::System.InvalidCastException e) {
  2682. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Used_consumables\' равно DBNull.", e);
  2683. }
  2684. }
  2685. set {
  2686. this[this.tableUsed_consumables.ЦенаColumn] = value;
  2687. }
  2688. }
  2689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2691. public int Количество {
  2692. get {
  2693. try {
  2694. return ((int)(this[this.tableUsed_consumables.КоличествоColumn]));
  2695. }
  2696. catch (global::System.InvalidCastException e) {
  2697. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Used_consumables\' равно DBNull.", e);
  2698. }
  2699. }
  2700. set {
  2701. this[this.tableUsed_consumables.КоличествоColumn] = value;
  2702. }
  2703. }
  2704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2706. public System.DateTime Дата {
  2707. get {
  2708. try {
  2709. return ((global::System.DateTime)(this[this.tableUsed_consumables.ДатаColumn]));
  2710. }
  2711. catch (global::System.InvalidCastException e) {
  2712. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'Used_consumables\' равно DBNull.", e);
  2713. }
  2714. }
  2715. set {
  2716. this[this.tableUsed_consumables.ДатаColumn] = value;
  2717. }
  2718. }
  2719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2721. public string Сотрудник {
  2722. get {
  2723. try {
  2724. return ((string)(this[this.tableUsed_consumables.СотрудникColumn]));
  2725. }
  2726. catch (global::System.InvalidCastException e) {
  2727. throw new global::System.Data.StrongTypingException("Значение для столбца \'Сотрудник\' в таблице \'Used_consumables\' равно DBNull.", e);
  2728. }
  2729. }
  2730. set {
  2731. this[this.tableUsed_consumables.СотрудникColumn] = value;
  2732. }
  2733. }
  2734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2736. public WarehouseRow WarehouseRow {
  2737. get {
  2738. return ((WarehouseRow)(this.GetParentRow(this.Table.ParentRelations["FK_Used_consumables_Warehouse"])));
  2739. }
  2740. set {
  2741. this.SetParentRow(value, this.Table.ParentRelations["FK_Used_consumables_Warehouse"]);
  2742. }
  2743. }
  2744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2746. public bool IsНаименованиеNull() {
  2747. return this.IsNull(this.tableUsed_consumables.НаименованиеColumn);
  2748. }
  2749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2751. public void SetНаименованиеNull() {
  2752. this[this.tableUsed_consumables.НаименованиеColumn] = global::System.Convert.DBNull;
  2753. }
  2754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2756. public bool IsЦенаNull() {
  2757. return this.IsNull(this.tableUsed_consumables.ЦенаColumn);
  2758. }
  2759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2761. public void SetЦенаNull() {
  2762. this[this.tableUsed_consumables.ЦенаColumn] = global::System.Convert.DBNull;
  2763. }
  2764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2766. public bool IsКоличествоNull() {
  2767. return this.IsNull(this.tableUsed_consumables.КоличествоColumn);
  2768. }
  2769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2771. public void SetКоличествоNull() {
  2772. this[this.tableUsed_consumables.КоличествоColumn] = global::System.Convert.DBNull;
  2773. }
  2774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2776. public bool IsДатаNull() {
  2777. return this.IsNull(this.tableUsed_consumables.ДатаColumn);
  2778. }
  2779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2781. public void SetДатаNull() {
  2782. this[this.tableUsed_consumables.ДатаColumn] = global::System.Convert.DBNull;
  2783. }
  2784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2786. public bool IsСотрудникNull() {
  2787. return this.IsNull(this.tableUsed_consumables.СотрудникColumn);
  2788. }
  2789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2791. public void SetСотрудникNull() {
  2792. this[this.tableUsed_consumables.СотрудникColumn] = global::System.Convert.DBNull;
  2793. }
  2794. }
  2795. /// <summary>
  2796. ///Represents strongly named DataRow class.
  2797. ///</summary>
  2798. public partial class WarehouseRow : global::System.Data.DataRow {
  2799. private WarehouseDataTable tableWarehouse;
  2800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2802. internal WarehouseRow(global::System.Data.DataRowBuilder rb) :
  2803. base(rb) {
  2804. this.tableWarehouse = ((WarehouseDataTable)(this.Table));
  2805. }
  2806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2808. public string Артикул {
  2809. get {
  2810. return ((string)(this[this.tableWarehouse.АртикулColumn]));
  2811. }
  2812. set {
  2813. this[this.tableWarehouse.АртикулColumn] = value;
  2814. }
  2815. }
  2816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2818. public string Наименование {
  2819. get {
  2820. try {
  2821. return ((string)(this[this.tableWarehouse.НаименованиеColumn]));
  2822. }
  2823. catch (global::System.InvalidCastException e) {
  2824. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Warehouse\' равно DBNull.", e);
  2825. }
  2826. }
  2827. set {
  2828. this[this.tableWarehouse.НаименованиеColumn] = value;
  2829. }
  2830. }
  2831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2833. public decimal Цена {
  2834. get {
  2835. try {
  2836. return ((decimal)(this[this.tableWarehouse.ЦенаColumn]));
  2837. }
  2838. catch (global::System.InvalidCastException e) {
  2839. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Warehouse\' равно DBNull.", e);
  2840. }
  2841. }
  2842. set {
  2843. this[this.tableWarehouse.ЦенаColumn] = value;
  2844. }
  2845. }
  2846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2848. public int Количество {
  2849. get {
  2850. try {
  2851. return ((int)(this[this.tableWarehouse.КоличествоColumn]));
  2852. }
  2853. catch (global::System.InvalidCastException e) {
  2854. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Warehouse\' равно DBNull.", e);
  2855. }
  2856. }
  2857. set {
  2858. this[this.tableWarehouse.КоличествоColumn] = value;
  2859. }
  2860. }
  2861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2863. public string _Место_хранения__Склад_Витрина_ {
  2864. get {
  2865. try {
  2866. return ((string)(this[this.tableWarehouse._Место_хранения__Склад_Витрина_Column]));
  2867. }
  2868. catch (global::System.InvalidCastException e) {
  2869. throw new global::System.Data.StrongTypingException("Значение для столбца \'Место хранения (Склад/Витрина)\' в таблице \'Warehouse\' равно" +
  2870. " DBNull.", e);
  2871. }
  2872. }
  2873. set {
  2874. this[this.tableWarehouse._Место_хранения__Склад_Витрина_Column] = value;
  2875. }
  2876. }
  2877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2879. public ListRow ListRow {
  2880. get {
  2881. return ((ListRow)(this.GetParentRow(this.Table.ParentRelations["FK_Warehouse_List"])));
  2882. }
  2883. set {
  2884. this.SetParentRow(value, this.Table.ParentRelations["FK_Warehouse_List"]);
  2885. }
  2886. }
  2887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2889. public PurchaseRow PurchaseRow {
  2890. get {
  2891. return ((PurchaseRow)(this.GetParentRow(this.Table.ParentRelations["FK_Warehouse_Purchase"])));
  2892. }
  2893. set {
  2894. this.SetParentRow(value, this.Table.ParentRelations["FK_Warehouse_Purchase"]);
  2895. }
  2896. }
  2897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2899. public bool IsНаименованиеNull() {
  2900. return this.IsNull(this.tableWarehouse.НаименованиеColumn);
  2901. }
  2902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2904. public void SetНаименованиеNull() {
  2905. this[this.tableWarehouse.НаименованиеColumn] = global::System.Convert.DBNull;
  2906. }
  2907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2909. public bool IsЦенаNull() {
  2910. return this.IsNull(this.tableWarehouse.ЦенаColumn);
  2911. }
  2912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2914. public void SetЦенаNull() {
  2915. this[this.tableWarehouse.ЦенаColumn] = global::System.Convert.DBNull;
  2916. }
  2917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2919. public bool IsКоличествоNull() {
  2920. return this.IsNull(this.tableWarehouse.КоличествоColumn);
  2921. }
  2922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2924. public void SetКоличествоNull() {
  2925. this[this.tableWarehouse.КоличествоColumn] = global::System.Convert.DBNull;
  2926. }
  2927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2929. public bool Is_Место_хранения__Склад_Витрина_Null() {
  2930. return this.IsNull(this.tableWarehouse._Место_хранения__Склад_Витрина_Column);
  2931. }
  2932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2934. public void Set_Место_хранения__Склад_Витрина_Null() {
  2935. this[this.tableWarehouse._Место_хранения__Склад_Витрина_Column] = global::System.Convert.DBNull;
  2936. }
  2937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2939. public Consumables_soldRow[] GetConsumables_soldRows() {
  2940. if ((this.Table.ChildRelations["FK_Consumables_sold_Warehouse"] == null)) {
  2941. return new Consumables_soldRow[0];
  2942. }
  2943. else {
  2944. return ((Consumables_soldRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Consumables_sold_Warehouse"])));
  2945. }
  2946. }
  2947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2949. public DeliveriesRow[] GetDeliveriesRows() {
  2950. if ((this.Table.ChildRelations["FK_Deliveries_Warehouse"] == null)) {
  2951. return new DeliveriesRow[0];
  2952. }
  2953. else {
  2954. return ((DeliveriesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Deliveries_Warehouse"])));
  2955. }
  2956. }
  2957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2959. public Used_consumablesRow[] GetUsed_consumablesRows() {
  2960. if ((this.Table.ChildRelations["FK_Used_consumables_Warehouse"] == null)) {
  2961. return new Used_consumablesRow[0];
  2962. }
  2963. else {
  2964. return ((Used_consumablesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Used_consumables_Warehouse"])));
  2965. }
  2966. }
  2967. }
  2968. /// <summary>
  2969. ///Row event argument class
  2970. ///</summary>
  2971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2972. public class Consumables_soldRowChangeEvent : global::System.EventArgs {
  2973. private Consumables_soldRow eventRow;
  2974. private global::System.Data.DataRowAction eventAction;
  2975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2977. public Consumables_soldRowChangeEvent(Consumables_soldRow row, global::System.Data.DataRowAction action) {
  2978. this.eventRow = row;
  2979. this.eventAction = action;
  2980. }
  2981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2983. public Consumables_soldRow Row {
  2984. get {
  2985. return this.eventRow;
  2986. }
  2987. }
  2988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2990. public global::System.Data.DataRowAction Action {
  2991. get {
  2992. return this.eventAction;
  2993. }
  2994. }
  2995. }
  2996. /// <summary>
  2997. ///Row event argument class
  2998. ///</summary>
  2999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3000. public class DeliveriesRowChangeEvent : global::System.EventArgs {
  3001. private DeliveriesRow eventRow;
  3002. private global::System.Data.DataRowAction eventAction;
  3003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3005. public DeliveriesRowChangeEvent(DeliveriesRow row, global::System.Data.DataRowAction action) {
  3006. this.eventRow = row;
  3007. this.eventAction = action;
  3008. }
  3009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3011. public DeliveriesRow Row {
  3012. get {
  3013. return this.eventRow;
  3014. }
  3015. }
  3016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3018. public global::System.Data.DataRowAction Action {
  3019. get {
  3020. return this.eventAction;
  3021. }
  3022. }
  3023. }
  3024. /// <summary>
  3025. ///Row event argument class
  3026. ///</summary>
  3027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3028. public class ListRowChangeEvent : global::System.EventArgs {
  3029. private ListRow eventRow;
  3030. private global::System.Data.DataRowAction eventAction;
  3031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3033. public ListRowChangeEvent(ListRow row, global::System.Data.DataRowAction action) {
  3034. this.eventRow = row;
  3035. this.eventAction = action;
  3036. }
  3037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3039. public ListRow Row {
  3040. get {
  3041. return this.eventRow;
  3042. }
  3043. }
  3044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3046. public global::System.Data.DataRowAction Action {
  3047. get {
  3048. return this.eventAction;
  3049. }
  3050. }
  3051. }
  3052. /// <summary>
  3053. ///Row event argument class
  3054. ///</summary>
  3055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3056. public class PurchaseRowChangeEvent : global::System.EventArgs {
  3057. private PurchaseRow eventRow;
  3058. private global::System.Data.DataRowAction eventAction;
  3059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3061. public PurchaseRowChangeEvent(PurchaseRow row, global::System.Data.DataRowAction action) {
  3062. this.eventRow = row;
  3063. this.eventAction = action;
  3064. }
  3065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3067. public PurchaseRow Row {
  3068. get {
  3069. return this.eventRow;
  3070. }
  3071. }
  3072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3074. public global::System.Data.DataRowAction Action {
  3075. get {
  3076. return this.eventAction;
  3077. }
  3078. }
  3079. }
  3080. /// <summary>
  3081. ///Row event argument class
  3082. ///</summary>
  3083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3084. public class Used_consumablesRowChangeEvent : global::System.EventArgs {
  3085. private Used_consumablesRow eventRow;
  3086. private global::System.Data.DataRowAction eventAction;
  3087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3089. public Used_consumablesRowChangeEvent(Used_consumablesRow row, global::System.Data.DataRowAction action) {
  3090. this.eventRow = row;
  3091. this.eventAction = action;
  3092. }
  3093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3095. public Used_consumablesRow Row {
  3096. get {
  3097. return this.eventRow;
  3098. }
  3099. }
  3100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3101. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3102. public global::System.Data.DataRowAction Action {
  3103. get {
  3104. return this.eventAction;
  3105. }
  3106. }
  3107. }
  3108. /// <summary>
  3109. ///Row event argument class
  3110. ///</summary>
  3111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3112. public class WarehouseRowChangeEvent : global::System.EventArgs {
  3113. private WarehouseRow eventRow;
  3114. private global::System.Data.DataRowAction eventAction;
  3115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3117. public WarehouseRowChangeEvent(WarehouseRow row, global::System.Data.DataRowAction action) {
  3118. this.eventRow = row;
  3119. this.eventAction = action;
  3120. }
  3121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3123. public WarehouseRow Row {
  3124. get {
  3125. return this.eventRow;
  3126. }
  3127. }
  3128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3130. public global::System.Data.DataRowAction Action {
  3131. get {
  3132. return this.eventAction;
  3133. }
  3134. }
  3135. }
  3136. }
  3137. }
  3138. namespace IS_hairdresser.GushchinaDataSetTableAdapters {
  3139. /// <summary>
  3140. ///Represents the connection and commands used to retrieve and save data.
  3141. ///</summary>
  3142. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3143. [global::System.ComponentModel.ToolboxItem(true)]
  3144. [global::System.ComponentModel.DataObjectAttribute(true)]
  3145. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3146. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3147. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3148. public partial class Consumables_soldTableAdapter : global::System.ComponentModel.Component {
  3149. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3150. private global::System.Data.SqlClient.SqlConnection _connection;
  3151. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3152. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3153. private bool _clearBeforeFill;
  3154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3156. public Consumables_soldTableAdapter() {
  3157. this.ClearBeforeFill = true;
  3158. }
  3159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3161. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3162. get {
  3163. if ((this._adapter == null)) {
  3164. this.InitAdapter();
  3165. }
  3166. return this._adapter;
  3167. }
  3168. }
  3169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3171. internal global::System.Data.SqlClient.SqlConnection Connection {
  3172. get {
  3173. if ((this._connection == null)) {
  3174. this.InitConnection();
  3175. }
  3176. return this._connection;
  3177. }
  3178. set {
  3179. this._connection = value;
  3180. if ((this.Adapter.InsertCommand != null)) {
  3181. this.Adapter.InsertCommand.Connection = value;
  3182. }
  3183. if ((this.Adapter.DeleteCommand != null)) {
  3184. this.Adapter.DeleteCommand.Connection = value;
  3185. }
  3186. if ((this.Adapter.UpdateCommand != null)) {
  3187. this.Adapter.UpdateCommand.Connection = value;
  3188. }
  3189. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3190. if ((this.CommandCollection[i] != null)) {
  3191. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3192. }
  3193. }
  3194. }
  3195. }
  3196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3198. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3199. get {
  3200. return this._transaction;
  3201. }
  3202. set {
  3203. this._transaction = value;
  3204. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3205. this.CommandCollection[i].Transaction = this._transaction;
  3206. }
  3207. if (((this.Adapter != null)
  3208. && (this.Adapter.DeleteCommand != null))) {
  3209. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3210. }
  3211. if (((this.Adapter != null)
  3212. && (this.Adapter.InsertCommand != null))) {
  3213. this.Adapter.InsertCommand.Transaction = this._transaction;
  3214. }
  3215. if (((this.Adapter != null)
  3216. && (this.Adapter.UpdateCommand != null))) {
  3217. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3218. }
  3219. }
  3220. }
  3221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3223. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3224. get {
  3225. if ((this._commandCollection == null)) {
  3226. this.InitCommandCollection();
  3227. }
  3228. return this._commandCollection;
  3229. }
  3230. }
  3231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3233. public bool ClearBeforeFill {
  3234. get {
  3235. return this._clearBeforeFill;
  3236. }
  3237. set {
  3238. this._clearBeforeFill = value;
  3239. }
  3240. }
  3241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3243. private void InitAdapter() {
  3244. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3245. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3246. tableMapping.SourceTable = "Table";
  3247. tableMapping.DataSetTable = "Consumables_sold";
  3248. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  3249. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  3250. tableMapping.ColumnMappings.Add("Цена", "Цена");
  3251. tableMapping.ColumnMappings.Add("Количество", "Количество");
  3252. tableMapping.ColumnMappings.Add("Дата", "Дата");
  3253. tableMapping.ColumnMappings.Add("Сотрудник", "Сотрудник");
  3254. this._adapter.TableMappings.Add(tableMapping);
  3255. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3256. this._adapter.InsertCommand.Connection = this.Connection;
  3257. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Consumables_sold] ([Артикул], [Наименование], [Цена], [Количес" +
  3258. "тво], [Дата], [Сотрудник]) VALUES (@Артикул, @Наименование, @Цена, @Количество, " +
  3259. "@Дата, @Сотрудник)";
  3260. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3261. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3262. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3263. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3264. 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, "", "", ""));
  3265. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3266. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Сотрудник", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сотрудник", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3267. }
  3268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3270. private void InitConnection() {
  3271. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3272. this._connection.ConnectionString = global::IS_hairdresser.Properties.Settings.Default.GushchinaConnectionString;
  3273. }
  3274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3276. private void InitCommandCollection() {
  3277. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3278. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3279. this._commandCollection[0].Connection = this.Connection;
  3280. this._commandCollection[0].CommandText = "SELECT Артикул, Наименование, Цена, Количество, Дата, Сотрудник FROM dbo.Consumab" +
  3281. "les_sold";
  3282. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3283. }
  3284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3286. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3287. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3288. public virtual int Fill(GushchinaDataSet.Consumables_soldDataTable dataTable) {
  3289. this.Adapter.SelectCommand = this.CommandCollection[0];
  3290. if ((this.ClearBeforeFill == true)) {
  3291. dataTable.Clear();
  3292. }
  3293. int returnValue = this.Adapter.Fill(dataTable);
  3294. return returnValue;
  3295. }
  3296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3298. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3299. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3300. public virtual GushchinaDataSet.Consumables_soldDataTable GetData() {
  3301. this.Adapter.SelectCommand = this.CommandCollection[0];
  3302. GushchinaDataSet.Consumables_soldDataTable dataTable = new GushchinaDataSet.Consumables_soldDataTable();
  3303. this.Adapter.Fill(dataTable);
  3304. return dataTable;
  3305. }
  3306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3308. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3309. public virtual int Update(GushchinaDataSet.Consumables_soldDataTable dataTable) {
  3310. return this.Adapter.Update(dataTable);
  3311. }
  3312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3314. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3315. public virtual int Update(GushchinaDataSet dataSet) {
  3316. return this.Adapter.Update(dataSet, "Consumables_sold");
  3317. }
  3318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3320. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3321. public virtual int Update(global::System.Data.DataRow dataRow) {
  3322. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3323. dataRow});
  3324. }
  3325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3327. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3328. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3329. return this.Adapter.Update(dataRows);
  3330. }
  3331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3333. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3334. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3335. public virtual int Insert(string Артикул, string Наименование, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, global::System.Nullable<global::System.DateTime> Дата, string Сотрудник) {
  3336. if ((Артикул == null)) {
  3337. throw new global::System.ArgumentNullException("Артикул");
  3338. }
  3339. else {
  3340. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Артикул));
  3341. }
  3342. if ((Наименование == null)) {
  3343. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3344. }
  3345. else {
  3346. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  3347. }
  3348. if ((Цена.HasValue == true)) {
  3349. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  3350. }
  3351. else {
  3352. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3353. }
  3354. if ((Количество.HasValue == true)) {
  3355. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Количество.Value));
  3356. }
  3357. else {
  3358. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3359. }
  3360. if ((Дата.HasValue == true)) {
  3361. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(Дата.Value));
  3362. }
  3363. else {
  3364. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  3365. }
  3366. if ((Сотрудник == null)) {
  3367. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  3368. }
  3369. else {
  3370. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Сотрудник));
  3371. }
  3372. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3373. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3374. != global::System.Data.ConnectionState.Open)) {
  3375. this.Adapter.InsertCommand.Connection.Open();
  3376. }
  3377. try {
  3378. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3379. return returnValue;
  3380. }
  3381. finally {
  3382. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3383. this.Adapter.InsertCommand.Connection.Close();
  3384. }
  3385. }
  3386. }
  3387. }
  3388. /// <summary>
  3389. ///Represents the connection and commands used to retrieve and save data.
  3390. ///</summary>
  3391. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3392. [global::System.ComponentModel.ToolboxItem(true)]
  3393. [global::System.ComponentModel.DataObjectAttribute(true)]
  3394. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3395. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3396. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3397. public partial class DeliveriesTableAdapter : global::System.ComponentModel.Component {
  3398. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3399. private global::System.Data.SqlClient.SqlConnection _connection;
  3400. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3401. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3402. private bool _clearBeforeFill;
  3403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3405. public DeliveriesTableAdapter() {
  3406. this.ClearBeforeFill = true;
  3407. }
  3408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3410. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3411. get {
  3412. if ((this._adapter == null)) {
  3413. this.InitAdapter();
  3414. }
  3415. return this._adapter;
  3416. }
  3417. }
  3418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3420. internal global::System.Data.SqlClient.SqlConnection Connection {
  3421. get {
  3422. if ((this._connection == null)) {
  3423. this.InitConnection();
  3424. }
  3425. return this._connection;
  3426. }
  3427. set {
  3428. this._connection = value;
  3429. if ((this.Adapter.InsertCommand != null)) {
  3430. this.Adapter.InsertCommand.Connection = value;
  3431. }
  3432. if ((this.Adapter.DeleteCommand != null)) {
  3433. this.Adapter.DeleteCommand.Connection = value;
  3434. }
  3435. if ((this.Adapter.UpdateCommand != null)) {
  3436. this.Adapter.UpdateCommand.Connection = value;
  3437. }
  3438. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3439. if ((this.CommandCollection[i] != null)) {
  3440. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3441. }
  3442. }
  3443. }
  3444. }
  3445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3447. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3448. get {
  3449. return this._transaction;
  3450. }
  3451. set {
  3452. this._transaction = value;
  3453. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3454. this.CommandCollection[i].Transaction = this._transaction;
  3455. }
  3456. if (((this.Adapter != null)
  3457. && (this.Adapter.DeleteCommand != null))) {
  3458. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3459. }
  3460. if (((this.Adapter != null)
  3461. && (this.Adapter.InsertCommand != null))) {
  3462. this.Adapter.InsertCommand.Transaction = this._transaction;
  3463. }
  3464. if (((this.Adapter != null)
  3465. && (this.Adapter.UpdateCommand != null))) {
  3466. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3467. }
  3468. }
  3469. }
  3470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3472. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3473. get {
  3474. if ((this._commandCollection == null)) {
  3475. this.InitCommandCollection();
  3476. }
  3477. return this._commandCollection;
  3478. }
  3479. }
  3480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3482. public bool ClearBeforeFill {
  3483. get {
  3484. return this._clearBeforeFill;
  3485. }
  3486. set {
  3487. this._clearBeforeFill = value;
  3488. }
  3489. }
  3490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3492. private void InitAdapter() {
  3493. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3494. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3495. tableMapping.SourceTable = "Table";
  3496. tableMapping.DataSetTable = "Deliveries";
  3497. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  3498. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  3499. tableMapping.ColumnMappings.Add("Цена", "Цена");
  3500. tableMapping.ColumnMappings.Add("Дата", "Дата");
  3501. this._adapter.TableMappings.Add(tableMapping);
  3502. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3503. this._adapter.InsertCommand.Connection = this.Connection;
  3504. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Deliveries] ([Артикул], [Наименование], [Цена], [Дата]) VALUES" +
  3505. " (@Артикул, @Наименование, @Цена, @Дата)";
  3506. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3507. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3508. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3509. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3510. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3511. }
  3512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3514. private void InitConnection() {
  3515. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3516. this._connection.ConnectionString = global::IS_hairdresser.Properties.Settings.Default.GushchinaConnectionString;
  3517. }
  3518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3520. private void InitCommandCollection() {
  3521. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3522. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3523. this._commandCollection[0].Connection = this.Connection;
  3524. this._commandCollection[0].CommandText = "SELECT Артикул, Наименование, Цена, Дата FROM dbo.Deliveries";
  3525. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3526. }
  3527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3529. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3530. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3531. public virtual int Fill(GushchinaDataSet.DeliveriesDataTable dataTable) {
  3532. this.Adapter.SelectCommand = this.CommandCollection[0];
  3533. if ((this.ClearBeforeFill == true)) {
  3534. dataTable.Clear();
  3535. }
  3536. int returnValue = this.Adapter.Fill(dataTable);
  3537. return returnValue;
  3538. }
  3539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3541. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3542. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3543. public virtual GushchinaDataSet.DeliveriesDataTable GetData() {
  3544. this.Adapter.SelectCommand = this.CommandCollection[0];
  3545. GushchinaDataSet.DeliveriesDataTable dataTable = new GushchinaDataSet.DeliveriesDataTable();
  3546. this.Adapter.Fill(dataTable);
  3547. return dataTable;
  3548. }
  3549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3551. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3552. public virtual int Update(GushchinaDataSet.DeliveriesDataTable dataTable) {
  3553. return this.Adapter.Update(dataTable);
  3554. }
  3555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3557. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3558. public virtual int Update(GushchinaDataSet dataSet) {
  3559. return this.Adapter.Update(dataSet, "Deliveries");
  3560. }
  3561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3563. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3564. public virtual int Update(global::System.Data.DataRow dataRow) {
  3565. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3566. dataRow});
  3567. }
  3568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3570. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3571. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3572. return this.Adapter.Update(dataRows);
  3573. }
  3574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3576. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3577. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3578. public virtual int Insert(string Артикул, string Наименование, global::System.Nullable<decimal> Цена, global::System.Nullable<global::System.DateTime> Дата) {
  3579. if ((Артикул == null)) {
  3580. throw new global::System.ArgumentNullException("Артикул");
  3581. }
  3582. else {
  3583. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Артикул));
  3584. }
  3585. if ((Наименование == null)) {
  3586. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3587. }
  3588. else {
  3589. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  3590. }
  3591. if ((Цена.HasValue == true)) {
  3592. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  3593. }
  3594. else {
  3595. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3596. }
  3597. if ((Дата.HasValue == true)) {
  3598. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Дата.Value));
  3599. }
  3600. else {
  3601. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3602. }
  3603. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3604. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3605. != global::System.Data.ConnectionState.Open)) {
  3606. this.Adapter.InsertCommand.Connection.Open();
  3607. }
  3608. try {
  3609. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3610. return returnValue;
  3611. }
  3612. finally {
  3613. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3614. this.Adapter.InsertCommand.Connection.Close();
  3615. }
  3616. }
  3617. }
  3618. }
  3619. /// <summary>
  3620. ///Represents the connection and commands used to retrieve and save data.
  3621. ///</summary>
  3622. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3623. [global::System.ComponentModel.ToolboxItem(true)]
  3624. [global::System.ComponentModel.DataObjectAttribute(true)]
  3625. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3626. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3627. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3628. public partial class ListTableAdapter : global::System.ComponentModel.Component {
  3629. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3630. private global::System.Data.SqlClient.SqlConnection _connection;
  3631. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3632. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3633. private bool _clearBeforeFill;
  3634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3636. public ListTableAdapter() {
  3637. this.ClearBeforeFill = true;
  3638. }
  3639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3641. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3642. get {
  3643. if ((this._adapter == null)) {
  3644. this.InitAdapter();
  3645. }
  3646. return this._adapter;
  3647. }
  3648. }
  3649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3651. internal global::System.Data.SqlClient.SqlConnection Connection {
  3652. get {
  3653. if ((this._connection == null)) {
  3654. this.InitConnection();
  3655. }
  3656. return this._connection;
  3657. }
  3658. set {
  3659. this._connection = value;
  3660. if ((this.Adapter.InsertCommand != null)) {
  3661. this.Adapter.InsertCommand.Connection = value;
  3662. }
  3663. if ((this.Adapter.DeleteCommand != null)) {
  3664. this.Adapter.DeleteCommand.Connection = value;
  3665. }
  3666. if ((this.Adapter.UpdateCommand != null)) {
  3667. this.Adapter.UpdateCommand.Connection = value;
  3668. }
  3669. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3670. if ((this.CommandCollection[i] != null)) {
  3671. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3672. }
  3673. }
  3674. }
  3675. }
  3676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3678. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3679. get {
  3680. return this._transaction;
  3681. }
  3682. set {
  3683. this._transaction = value;
  3684. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3685. this.CommandCollection[i].Transaction = this._transaction;
  3686. }
  3687. if (((this.Adapter != null)
  3688. && (this.Adapter.DeleteCommand != null))) {
  3689. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3690. }
  3691. if (((this.Adapter != null)
  3692. && (this.Adapter.InsertCommand != null))) {
  3693. this.Adapter.InsertCommand.Transaction = this._transaction;
  3694. }
  3695. if (((this.Adapter != null)
  3696. && (this.Adapter.UpdateCommand != null))) {
  3697. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3698. }
  3699. }
  3700. }
  3701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3703. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3704. get {
  3705. if ((this._commandCollection == null)) {
  3706. this.InitCommandCollection();
  3707. }
  3708. return this._commandCollection;
  3709. }
  3710. }
  3711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3713. public bool ClearBeforeFill {
  3714. get {
  3715. return this._clearBeforeFill;
  3716. }
  3717. set {
  3718. this._clearBeforeFill = value;
  3719. }
  3720. }
  3721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3723. private void InitAdapter() {
  3724. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3725. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3726. tableMapping.SourceTable = "Table";
  3727. tableMapping.DataSetTable = "List";
  3728. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  3729. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  3730. tableMapping.ColumnMappings.Add("Цена", "Цена");
  3731. tableMapping.ColumnMappings.Add("Количество", "Количество");
  3732. tableMapping.ColumnMappings.Add("Место хранения", "Место хранения");
  3733. this._adapter.TableMappings.Add(tableMapping);
  3734. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3735. this._adapter.DeleteCommand.Connection = this.Connection;
  3736. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[List] WHERE (([Артикул] = @Original_Артикул) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ((@IsNull_Место_хранения = 1 AND [Место хранения] IS NULL) OR ([Место хранения] = @Original_Место_хранения)))";
  3737. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3738. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3739. 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, "", "", ""));
  3740. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3741. 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, "", "", ""));
  3742. 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, "", "", ""));
  3743. 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, "", "", ""));
  3744. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Место_хранения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Место хранения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3745. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3746. this._adapter.InsertCommand.Connection = this.Connection;
  3747. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[List] ([Артикул], [Наименование], [Цена], [Количество], [Место хранения]) VALUES (@Артикул, @Наименование, @Цена, @Количество, @Место_хранения);
  3748. SELECT Артикул, Наименование, Цена, Количество, [Место хранения] FROM List WHERE (Артикул = @Артикул)";
  3749. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3750. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3751. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3752. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3753. 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, "", "", ""));
  3754. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Место_хранения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Место хранения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3755. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3756. this._adapter.UpdateCommand.Connection = this.Connection;
  3757. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[List] SET [Артикул] = @Артикул, [Наименование] = @Наименование, [Цена] = @Цена, [Количество] = @Количество, [Место хранения] = @Место_хранения WHERE (([Артикул] = @Original_Артикул) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ((@IsNull_Место_хранения = 1 AND [Место хранения] IS NULL) OR ([Место хранения] = @Original_Место_хранения)));
  3758. SELECT Артикул, Наименование, Цена, Количество, [Место хранения] FROM List WHERE (Артикул = @Артикул)";
  3759. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3760. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3761. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3762. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3763. 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, "", "", ""));
  3764. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Место_хранения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Место хранения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3765. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3766. 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, "", "", ""));
  3767. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3768. 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, "", "", ""));
  3769. 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, "", "", ""));
  3770. 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, "", "", ""));
  3771. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Место_хранения", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Место хранения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3772. }
  3773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3775. private void InitConnection() {
  3776. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3777. this._connection.ConnectionString = global::IS_hairdresser.Properties.Settings.Default.GushchinaConnectionString;
  3778. }
  3779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3781. private void InitCommandCollection() {
  3782. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3783. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3784. this._commandCollection[0].Connection = this.Connection;
  3785. this._commandCollection[0].CommandText = "SELECT Артикул, Наименование, Цена, Количество, [Место хранения] FROM dbo.List";
  3786. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3787. }
  3788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3790. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3791. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3792. public virtual int Fill(GushchinaDataSet.ListDataTable dataTable) {
  3793. this.Adapter.SelectCommand = this.CommandCollection[0];
  3794. if ((this.ClearBeforeFill == true)) {
  3795. dataTable.Clear();
  3796. }
  3797. int returnValue = this.Adapter.Fill(dataTable);
  3798. return returnValue;
  3799. }
  3800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3802. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3803. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3804. public virtual GushchinaDataSet.ListDataTable GetData() {
  3805. this.Adapter.SelectCommand = this.CommandCollection[0];
  3806. GushchinaDataSet.ListDataTable dataTable = new GushchinaDataSet.ListDataTable();
  3807. this.Adapter.Fill(dataTable);
  3808. return dataTable;
  3809. }
  3810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3812. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3813. public virtual int Update(GushchinaDataSet.ListDataTable dataTable) {
  3814. return this.Adapter.Update(dataTable);
  3815. }
  3816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3818. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3819. public virtual int Update(GushchinaDataSet dataSet) {
  3820. return this.Adapter.Update(dataSet, "List");
  3821. }
  3822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3824. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3825. public virtual int Update(global::System.Data.DataRow dataRow) {
  3826. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3827. dataRow});
  3828. }
  3829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3831. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3832. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3833. return this.Adapter.Update(dataRows);
  3834. }
  3835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3837. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3838. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3839. public virtual int Delete(string Original_Артикул, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, string Original_Место_хранения) {
  3840. if ((Original_Артикул == null)) {
  3841. throw new global::System.ArgumentNullException("Original_Артикул");
  3842. }
  3843. else {
  3844. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Артикул));
  3845. }
  3846. if ((Original_Цена.HasValue == true)) {
  3847. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3848. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Цена.Value));
  3849. }
  3850. else {
  3851. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3852. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3853. }
  3854. if ((Original_Количество.HasValue == true)) {
  3855. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3856. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Количество.Value));
  3857. }
  3858. else {
  3859. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3860. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3861. }
  3862. if ((Original_Место_хранения == null)) {
  3863. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  3864. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  3865. }
  3866. else {
  3867. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  3868. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Место_хранения));
  3869. }
  3870. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3871. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3872. != global::System.Data.ConnectionState.Open)) {
  3873. this.Adapter.DeleteCommand.Connection.Open();
  3874. }
  3875. try {
  3876. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3877. return returnValue;
  3878. }
  3879. finally {
  3880. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3881. this.Adapter.DeleteCommand.Connection.Close();
  3882. }
  3883. }
  3884. }
  3885. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3886. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3887. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3888. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3889. public virtual int Insert(string Артикул, string Наименование, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, string Место_хранения) {
  3890. if ((Артикул == null)) {
  3891. throw new global::System.ArgumentNullException("Артикул");
  3892. }
  3893. else {
  3894. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Артикул));
  3895. }
  3896. if ((Наименование == null)) {
  3897. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3898. }
  3899. else {
  3900. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  3901. }
  3902. if ((Цена.HasValue == true)) {
  3903. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  3904. }
  3905. else {
  3906. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3907. }
  3908. if ((Количество.HasValue == true)) {
  3909. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Количество.Value));
  3910. }
  3911. else {
  3912. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3913. }
  3914. if ((Место_хранения == null)) {
  3915. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  3916. }
  3917. else {
  3918. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Место_хранения));
  3919. }
  3920. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3921. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3922. != global::System.Data.ConnectionState.Open)) {
  3923. this.Adapter.InsertCommand.Connection.Open();
  3924. }
  3925. try {
  3926. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3927. return returnValue;
  3928. }
  3929. finally {
  3930. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3931. this.Adapter.InsertCommand.Connection.Close();
  3932. }
  3933. }
  3934. }
  3935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3937. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3938. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3939. public virtual int Update(string Артикул, string Наименование, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, string Место_хранения, string Original_Артикул, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, string Original_Место_хранения) {
  3940. if ((Артикул == null)) {
  3941. throw new global::System.ArgumentNullException("Артикул");
  3942. }
  3943. else {
  3944. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Артикул));
  3945. }
  3946. if ((Наименование == null)) {
  3947. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3948. }
  3949. else {
  3950. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование));
  3951. }
  3952. if ((Цена.HasValue == true)) {
  3953. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  3954. }
  3955. else {
  3956. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  3957. }
  3958. if ((Количество.HasValue == true)) {
  3959. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Количество.Value));
  3960. }
  3961. else {
  3962. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  3963. }
  3964. if ((Место_хранения == null)) {
  3965. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  3966. }
  3967. else {
  3968. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Место_хранения));
  3969. }
  3970. if ((Original_Артикул == null)) {
  3971. throw new global::System.ArgumentNullException("Original_Артикул");
  3972. }
  3973. else {
  3974. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Артикул));
  3975. }
  3976. if ((Original_Цена.HasValue == true)) {
  3977. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  3978. this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(Original_Цена.Value));
  3979. }
  3980. else {
  3981. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  3982. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  3983. }
  3984. if ((Original_Количество.HasValue == true)) {
  3985. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  3986. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Количество.Value));
  3987. }
  3988. else {
  3989. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  3990. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  3991. }
  3992. if ((Original_Место_хранения == null)) {
  3993. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  3994. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  3995. }
  3996. else {
  3997. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  3998. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Место_хранения));
  3999. }
  4000. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4001. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4002. != global::System.Data.ConnectionState.Open)) {
  4003. this.Adapter.UpdateCommand.Connection.Open();
  4004. }
  4005. try {
  4006. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4007. return returnValue;
  4008. }
  4009. finally {
  4010. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4011. this.Adapter.UpdateCommand.Connection.Close();
  4012. }
  4013. }
  4014. }
  4015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4017. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4018. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4019. public virtual int Update(string Наименование, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, string Место_хранения, string Original_Артикул, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, string Original_Место_хранения) {
  4020. return this.Update(Original_Артикул, Наименование, Цена, Количество, Место_хранения, Original_Артикул, Original_Цена, Original_Количество, Original_Место_хранения);
  4021. }
  4022. }
  4023. /// <summary>
  4024. ///Represents the connection and commands used to retrieve and save data.
  4025. ///</summary>
  4026. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4027. [global::System.ComponentModel.ToolboxItem(true)]
  4028. [global::System.ComponentModel.DataObjectAttribute(true)]
  4029. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4030. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4031. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4032. public partial class PurchaseTableAdapter : global::System.ComponentModel.Component {
  4033. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4034. private global::System.Data.SqlClient.SqlConnection _connection;
  4035. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4036. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4037. private bool _clearBeforeFill;
  4038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4040. public PurchaseTableAdapter() {
  4041. this.ClearBeforeFill = true;
  4042. }
  4043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4045. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4046. get {
  4047. if ((this._adapter == null)) {
  4048. this.InitAdapter();
  4049. }
  4050. return this._adapter;
  4051. }
  4052. }
  4053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4055. internal global::System.Data.SqlClient.SqlConnection Connection {
  4056. get {
  4057. if ((this._connection == null)) {
  4058. this.InitConnection();
  4059. }
  4060. return this._connection;
  4061. }
  4062. set {
  4063. this._connection = value;
  4064. if ((this.Adapter.InsertCommand != null)) {
  4065. this.Adapter.InsertCommand.Connection = value;
  4066. }
  4067. if ((this.Adapter.DeleteCommand != null)) {
  4068. this.Adapter.DeleteCommand.Connection = value;
  4069. }
  4070. if ((this.Adapter.UpdateCommand != null)) {
  4071. this.Adapter.UpdateCommand.Connection = value;
  4072. }
  4073. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4074. if ((this.CommandCollection[i] != null)) {
  4075. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4076. }
  4077. }
  4078. }
  4079. }
  4080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4082. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4083. get {
  4084. return this._transaction;
  4085. }
  4086. set {
  4087. this._transaction = value;
  4088. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4089. this.CommandCollection[i].Transaction = this._transaction;
  4090. }
  4091. if (((this.Adapter != null)
  4092. && (this.Adapter.DeleteCommand != null))) {
  4093. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4094. }
  4095. if (((this.Adapter != null)
  4096. && (this.Adapter.InsertCommand != null))) {
  4097. this.Adapter.InsertCommand.Transaction = this._transaction;
  4098. }
  4099. if (((this.Adapter != null)
  4100. && (this.Adapter.UpdateCommand != null))) {
  4101. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4102. }
  4103. }
  4104. }
  4105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4107. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4108. get {
  4109. if ((this._commandCollection == null)) {
  4110. this.InitCommandCollection();
  4111. }
  4112. return this._commandCollection;
  4113. }
  4114. }
  4115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4117. public bool ClearBeforeFill {
  4118. get {
  4119. return this._clearBeforeFill;
  4120. }
  4121. set {
  4122. this._clearBeforeFill = value;
  4123. }
  4124. }
  4125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4127. private void InitAdapter() {
  4128. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4129. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4130. tableMapping.SourceTable = "Table";
  4131. tableMapping.DataSetTable = "Purchase";
  4132. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  4133. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  4134. tableMapping.ColumnMappings.Add("Цена", "Цена");
  4135. tableMapping.ColumnMappings.Add("Принудительное перемешение (Да/Нет)", "Принудительное перемешение (Да/Нет)");
  4136. this._adapter.TableMappings.Add(tableMapping);
  4137. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4138. this._adapter.DeleteCommand.Connection = this.Connection;
  4139. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Purchase] WHERE (([Артикул] = @Original_Артикул) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@p3 = 1 AND [Принудительное перемешение (Да/Нет)] IS NULL) OR ([Принудительное перемешение (Да/Нет)] = @p2)))";
  4140. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4141. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4142. 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, "", "", ""));
  4143. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4144. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Принудительное перемешение (Да/Нет)", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4145. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Принудительное перемешение (Да/Нет)", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4146. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4147. this._adapter.InsertCommand.Connection = this.Connection;
  4148. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Purchase] ([Артикул], [Наименование], [Цена], [Принудительное перемешение (Да/Нет)]) VALUES (@Артикул, @Наименование, @Цена, @p1);
  4149. SELECT Артикул, Наименование, Цена, [Принудительное перемешение (Да/Нет)] FROM Purchase WHERE (Артикул = @Артикул)";
  4150. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4151. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4152. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4153. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4154. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Принудительное перемешение (Да/Нет)", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4155. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4156. this._adapter.UpdateCommand.Connection = this.Connection;
  4157. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Purchase] SET [Артикул] = @Артикул, [Наименование] = @Наименование, [Цена] = @Цена, [Принудительное перемешение (Да/Нет)] = @p1 WHERE (([Артикул] = @Original_Артикул) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@p3 = 1 AND [Принудительное перемешение (Да/Нет)] IS NULL) OR ([Принудительное перемешение (Да/Нет)] = @p2)));
  4158. SELECT Артикул, Наименование, Цена, [Принудительное перемешение (Да/Нет)] FROM Purchase WHERE (Артикул = @Артикул)";
  4159. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4160. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4161. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4162. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4163. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Принудительное перемешение (Да/Нет)", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4164. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4165. 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, "", "", ""));
  4166. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4167. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Принудительное перемешение (Да/Нет)", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4168. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Принудительное перемешение (Да/Нет)", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4169. }
  4170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4172. private void InitConnection() {
  4173. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4174. this._connection.ConnectionString = global::IS_hairdresser.Properties.Settings.Default.GushchinaConnectionString;
  4175. }
  4176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4178. private void InitCommandCollection() {
  4179. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4180. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4181. this._commandCollection[0].Connection = this.Connection;
  4182. this._commandCollection[0].CommandText = "SELECT Артикул, Наименование, Цена, [Принудительное перемешение (Да/Нет)] FROM db" +
  4183. "o.Purchase";
  4184. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4185. }
  4186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4188. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4189. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4190. public virtual int Fill(GushchinaDataSet.PurchaseDataTable dataTable) {
  4191. this.Adapter.SelectCommand = this.CommandCollection[0];
  4192. if ((this.ClearBeforeFill == true)) {
  4193. dataTable.Clear();
  4194. }
  4195. int returnValue = this.Adapter.Fill(dataTable);
  4196. return returnValue;
  4197. }
  4198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4200. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4201. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4202. public virtual GushchinaDataSet.PurchaseDataTable GetData() {
  4203. this.Adapter.SelectCommand = this.CommandCollection[0];
  4204. GushchinaDataSet.PurchaseDataTable dataTable = new GushchinaDataSet.PurchaseDataTable();
  4205. this.Adapter.Fill(dataTable);
  4206. return dataTable;
  4207. }
  4208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4210. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4211. public virtual int Update(GushchinaDataSet.PurchaseDataTable dataTable) {
  4212. return this.Adapter.Update(dataTable);
  4213. }
  4214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4216. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4217. public virtual int Update(GushchinaDataSet dataSet) {
  4218. return this.Adapter.Update(dataSet, "Purchase");
  4219. }
  4220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4222. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4223. public virtual int Update(global::System.Data.DataRow dataRow) {
  4224. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4225. dataRow});
  4226. }
  4227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4229. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4230. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4231. return this.Adapter.Update(dataRows);
  4232. }
  4233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4235. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4236. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4237. public virtual int Delete(string Original_Артикул, global::System.Nullable<decimal> Original_Цена, string p2) {
  4238. if ((Original_Артикул == null)) {
  4239. throw new global::System.ArgumentNullException("Original_Артикул");
  4240. }
  4241. else {
  4242. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Артикул));
  4243. }
  4244. if ((Original_Цена.HasValue == true)) {
  4245. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4246. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Цена.Value));
  4247. }
  4248. else {
  4249. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4250. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4251. }
  4252. if ((p2 == null)) {
  4253. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4254. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4255. }
  4256. else {
  4257. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4258. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(p2));
  4259. }
  4260. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4261. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4262. != global::System.Data.ConnectionState.Open)) {
  4263. this.Adapter.DeleteCommand.Connection.Open();
  4264. }
  4265. try {
  4266. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4267. return returnValue;
  4268. }
  4269. finally {
  4270. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4271. this.Adapter.DeleteCommand.Connection.Close();
  4272. }
  4273. }
  4274. }
  4275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4277. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4278. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4279. public virtual int Insert(string Артикул, string Наименование, global::System.Nullable<decimal> Цена, string p1) {
  4280. if ((Артикул == null)) {
  4281. throw new global::System.ArgumentNullException("Артикул");
  4282. }
  4283. else {
  4284. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Артикул));
  4285. }
  4286. if ((Наименование == null)) {
  4287. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4288. }
  4289. else {
  4290. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  4291. }
  4292. if ((Цена.HasValue == true)) {
  4293. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  4294. }
  4295. else {
  4296. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4297. }
  4298. if ((p1 == null)) {
  4299. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4300. }
  4301. else {
  4302. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(p1));
  4303. }
  4304. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4305. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4306. != global::System.Data.ConnectionState.Open)) {
  4307. this.Adapter.InsertCommand.Connection.Open();
  4308. }
  4309. try {
  4310. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4311. return returnValue;
  4312. }
  4313. finally {
  4314. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4315. this.Adapter.InsertCommand.Connection.Close();
  4316. }
  4317. }
  4318. }
  4319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4321. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4322. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4323. public virtual int Update(string Артикул, string Наименование, global::System.Nullable<decimal> Цена, string p1, string Original_Артикул, global::System.Nullable<decimal> Original_Цена, string p2) {
  4324. if ((Артикул == null)) {
  4325. throw new global::System.ArgumentNullException("Артикул");
  4326. }
  4327. else {
  4328. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Артикул));
  4329. }
  4330. if ((Наименование == null)) {
  4331. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4332. }
  4333. else {
  4334. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование));
  4335. }
  4336. if ((Цена.HasValue == true)) {
  4337. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  4338. }
  4339. else {
  4340. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4341. }
  4342. if ((p1 == null)) {
  4343. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4344. }
  4345. else {
  4346. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(p1));
  4347. }
  4348. if ((Original_Артикул == null)) {
  4349. throw new global::System.ArgumentNullException("Original_Артикул");
  4350. }
  4351. else {
  4352. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Артикул));
  4353. }
  4354. if ((Original_Цена.HasValue == true)) {
  4355. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  4356. this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(Original_Цена.Value));
  4357. }
  4358. else {
  4359. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  4360. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  4361. }
  4362. if ((p2 == null)) {
  4363. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  4364. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  4365. }
  4366. else {
  4367. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  4368. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(p2));
  4369. }
  4370. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4371. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4372. != global::System.Data.ConnectionState.Open)) {
  4373. this.Adapter.UpdateCommand.Connection.Open();
  4374. }
  4375. try {
  4376. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4377. return returnValue;
  4378. }
  4379. finally {
  4380. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4381. this.Adapter.UpdateCommand.Connection.Close();
  4382. }
  4383. }
  4384. }
  4385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4387. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4388. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4389. public virtual int Update(string Наименование, global::System.Nullable<decimal> Цена, string p1, string Original_Артикул, global::System.Nullable<decimal> Original_Цена, string p2) {
  4390. return this.Update(Original_Артикул, Наименование, Цена, p1, Original_Артикул, Original_Цена, p2);
  4391. }
  4392. }
  4393. /// <summary>
  4394. ///Represents the connection and commands used to retrieve and save data.
  4395. ///</summary>
  4396. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4397. [global::System.ComponentModel.ToolboxItem(true)]
  4398. [global::System.ComponentModel.DataObjectAttribute(true)]
  4399. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4400. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4401. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4402. public partial class Used_consumablesTableAdapter : global::System.ComponentModel.Component {
  4403. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4404. private global::System.Data.SqlClient.SqlConnection _connection;
  4405. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4406. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4407. private bool _clearBeforeFill;
  4408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4410. public Used_consumablesTableAdapter() {
  4411. this.ClearBeforeFill = true;
  4412. }
  4413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4415. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4416. get {
  4417. if ((this._adapter == null)) {
  4418. this.InitAdapter();
  4419. }
  4420. return this._adapter;
  4421. }
  4422. }
  4423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4425. internal global::System.Data.SqlClient.SqlConnection Connection {
  4426. get {
  4427. if ((this._connection == null)) {
  4428. this.InitConnection();
  4429. }
  4430. return this._connection;
  4431. }
  4432. set {
  4433. this._connection = value;
  4434. if ((this.Adapter.InsertCommand != null)) {
  4435. this.Adapter.InsertCommand.Connection = value;
  4436. }
  4437. if ((this.Adapter.DeleteCommand != null)) {
  4438. this.Adapter.DeleteCommand.Connection = value;
  4439. }
  4440. if ((this.Adapter.UpdateCommand != null)) {
  4441. this.Adapter.UpdateCommand.Connection = value;
  4442. }
  4443. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4444. if ((this.CommandCollection[i] != null)) {
  4445. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4446. }
  4447. }
  4448. }
  4449. }
  4450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4452. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4453. get {
  4454. return this._transaction;
  4455. }
  4456. set {
  4457. this._transaction = value;
  4458. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4459. this.CommandCollection[i].Transaction = this._transaction;
  4460. }
  4461. if (((this.Adapter != null)
  4462. && (this.Adapter.DeleteCommand != null))) {
  4463. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4464. }
  4465. if (((this.Adapter != null)
  4466. && (this.Adapter.InsertCommand != null))) {
  4467. this.Adapter.InsertCommand.Transaction = this._transaction;
  4468. }
  4469. if (((this.Adapter != null)
  4470. && (this.Adapter.UpdateCommand != null))) {
  4471. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4472. }
  4473. }
  4474. }
  4475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4477. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4478. get {
  4479. if ((this._commandCollection == null)) {
  4480. this.InitCommandCollection();
  4481. }
  4482. return this._commandCollection;
  4483. }
  4484. }
  4485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4487. public bool ClearBeforeFill {
  4488. get {
  4489. return this._clearBeforeFill;
  4490. }
  4491. set {
  4492. this._clearBeforeFill = value;
  4493. }
  4494. }
  4495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4497. private void InitAdapter() {
  4498. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4499. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4500. tableMapping.SourceTable = "Table";
  4501. tableMapping.DataSetTable = "Used_consumables";
  4502. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  4503. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  4504. tableMapping.ColumnMappings.Add("Цена", "Цена");
  4505. tableMapping.ColumnMappings.Add("Количество", "Количество");
  4506. tableMapping.ColumnMappings.Add("Дата", "Дата");
  4507. tableMapping.ColumnMappings.Add("Сотрудник", "Сотрудник");
  4508. this._adapter.TableMappings.Add(tableMapping);
  4509. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4510. this._adapter.InsertCommand.Connection = this.Connection;
  4511. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Used_consumables] ([Артикул], [Наименование], [Цена], [Количес" +
  4512. "тво], [Дата], [Сотрудник]) VALUES (@Артикул, @Наименование, @Цена, @Количество, " +
  4513. "@Дата, @Сотрудник)";
  4514. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4515. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4516. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4517. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4518. 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, "", "", ""));
  4519. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4520. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Сотрудник", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сотрудник", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4521. }
  4522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4524. private void InitConnection() {
  4525. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4526. this._connection.ConnectionString = global::IS_hairdresser.Properties.Settings.Default.GushchinaConnectionString;
  4527. }
  4528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4530. private void InitCommandCollection() {
  4531. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4532. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4533. this._commandCollection[0].Connection = this.Connection;
  4534. this._commandCollection[0].CommandText = "SELECT Артикул, Наименование, Цена, Количество, Дата, Сотрудник FROM dbo.Used_con" +
  4535. "sumables";
  4536. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4537. }
  4538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4540. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4541. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4542. public virtual int Fill(GushchinaDataSet.Used_consumablesDataTable dataTable) {
  4543. this.Adapter.SelectCommand = this.CommandCollection[0];
  4544. if ((this.ClearBeforeFill == true)) {
  4545. dataTable.Clear();
  4546. }
  4547. int returnValue = this.Adapter.Fill(dataTable);
  4548. return returnValue;
  4549. }
  4550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4552. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4553. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4554. public virtual GushchinaDataSet.Used_consumablesDataTable GetData() {
  4555. this.Adapter.SelectCommand = this.CommandCollection[0];
  4556. GushchinaDataSet.Used_consumablesDataTable dataTable = new GushchinaDataSet.Used_consumablesDataTable();
  4557. this.Adapter.Fill(dataTable);
  4558. return dataTable;
  4559. }
  4560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4562. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4563. public virtual int Update(GushchinaDataSet.Used_consumablesDataTable dataTable) {
  4564. return this.Adapter.Update(dataTable);
  4565. }
  4566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4568. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4569. public virtual int Update(GushchinaDataSet dataSet) {
  4570. return this.Adapter.Update(dataSet, "Used_consumables");
  4571. }
  4572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4574. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4575. public virtual int Update(global::System.Data.DataRow dataRow) {
  4576. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4577. dataRow});
  4578. }
  4579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4581. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4582. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4583. return this.Adapter.Update(dataRows);
  4584. }
  4585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4587. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4588. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4589. public virtual int Insert(string Артикул, string Наименование, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, global::System.Nullable<global::System.DateTime> Дата, string Сотрудник) {
  4590. if ((Артикул == null)) {
  4591. throw new global::System.ArgumentNullException("Артикул");
  4592. }
  4593. else {
  4594. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Артикул));
  4595. }
  4596. if ((Наименование == null)) {
  4597. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4598. }
  4599. else {
  4600. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  4601. }
  4602. if ((Цена.HasValue == true)) {
  4603. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  4604. }
  4605. else {
  4606. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4607. }
  4608. if ((Количество.HasValue == true)) {
  4609. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Количество.Value));
  4610. }
  4611. else {
  4612. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4613. }
  4614. if ((Дата.HasValue == true)) {
  4615. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(Дата.Value));
  4616. }
  4617. else {
  4618. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  4619. }
  4620. if ((Сотрудник == null)) {
  4621. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  4622. }
  4623. else {
  4624. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Сотрудник));
  4625. }
  4626. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4627. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4628. != global::System.Data.ConnectionState.Open)) {
  4629. this.Adapter.InsertCommand.Connection.Open();
  4630. }
  4631. try {
  4632. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4633. return returnValue;
  4634. }
  4635. finally {
  4636. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4637. this.Adapter.InsertCommand.Connection.Close();
  4638. }
  4639. }
  4640. }
  4641. }
  4642. /// <summary>
  4643. ///Represents the connection and commands used to retrieve and save data.
  4644. ///</summary>
  4645. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4646. [global::System.ComponentModel.ToolboxItem(true)]
  4647. [global::System.ComponentModel.DataObjectAttribute(true)]
  4648. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4649. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4650. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4651. public partial class WarehouseTableAdapter : global::System.ComponentModel.Component {
  4652. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4653. private global::System.Data.SqlClient.SqlConnection _connection;
  4654. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4655. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4656. private bool _clearBeforeFill;
  4657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4659. public WarehouseTableAdapter() {
  4660. this.ClearBeforeFill = true;
  4661. }
  4662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4664. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4665. get {
  4666. if ((this._adapter == null)) {
  4667. this.InitAdapter();
  4668. }
  4669. return this._adapter;
  4670. }
  4671. }
  4672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4674. internal global::System.Data.SqlClient.SqlConnection Connection {
  4675. get {
  4676. if ((this._connection == null)) {
  4677. this.InitConnection();
  4678. }
  4679. return this._connection;
  4680. }
  4681. set {
  4682. this._connection = value;
  4683. if ((this.Adapter.InsertCommand != null)) {
  4684. this.Adapter.InsertCommand.Connection = value;
  4685. }
  4686. if ((this.Adapter.DeleteCommand != null)) {
  4687. this.Adapter.DeleteCommand.Connection = value;
  4688. }
  4689. if ((this.Adapter.UpdateCommand != null)) {
  4690. this.Adapter.UpdateCommand.Connection = value;
  4691. }
  4692. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4693. if ((this.CommandCollection[i] != null)) {
  4694. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4695. }
  4696. }
  4697. }
  4698. }
  4699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4701. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4702. get {
  4703. return this._transaction;
  4704. }
  4705. set {
  4706. this._transaction = value;
  4707. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4708. this.CommandCollection[i].Transaction = this._transaction;
  4709. }
  4710. if (((this.Adapter != null)
  4711. && (this.Adapter.DeleteCommand != null))) {
  4712. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4713. }
  4714. if (((this.Adapter != null)
  4715. && (this.Adapter.InsertCommand != null))) {
  4716. this.Adapter.InsertCommand.Transaction = this._transaction;
  4717. }
  4718. if (((this.Adapter != null)
  4719. && (this.Adapter.UpdateCommand != null))) {
  4720. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4721. }
  4722. }
  4723. }
  4724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4726. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4727. get {
  4728. if ((this._commandCollection == null)) {
  4729. this.InitCommandCollection();
  4730. }
  4731. return this._commandCollection;
  4732. }
  4733. }
  4734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4736. public bool ClearBeforeFill {
  4737. get {
  4738. return this._clearBeforeFill;
  4739. }
  4740. set {
  4741. this._clearBeforeFill = value;
  4742. }
  4743. }
  4744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4746. private void InitAdapter() {
  4747. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4748. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4749. tableMapping.SourceTable = "Table";
  4750. tableMapping.DataSetTable = "Warehouse";
  4751. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  4752. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  4753. tableMapping.ColumnMappings.Add("Цена", "Цена");
  4754. tableMapping.ColumnMappings.Add("Количество", "Количество");
  4755. tableMapping.ColumnMappings.Add("Место хранения (Склад/Витрина)", "Место хранения (Склад/Витрина)");
  4756. this._adapter.TableMappings.Add(tableMapping);
  4757. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4758. this._adapter.DeleteCommand.Connection = this.Connection;
  4759. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Warehouse] WHERE (([Артикул] = @Original_Артикул) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ((@p3 = 1 AND [Место хранения (Склад/Витрина)] IS NULL) OR ([Место хранения (Склад/Витрина)] = @p2)))";
  4760. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4761. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4762. 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, "", "", ""));
  4763. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4764. 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, "", "", ""));
  4765. 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, "", "", ""));
  4766. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Место хранения (Склад/Витрина)", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4767. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Место хранения (Склад/Витрина)", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4768. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4769. this._adapter.InsertCommand.Connection = this.Connection;
  4770. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Warehouse] ([Артикул], [Наименование], [Цена], [Количество], [Место хранения (Склад/Витрина)]) VALUES (@Артикул, @Наименование, @Цена, @Количество, @p1);
  4771. SELECT Артикул, Наименование, Цена, Количество, [Место хранения (Склад/Витрина)] FROM Warehouse WHERE (Артикул = @Артикул)";
  4772. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4773. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4774. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4775. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4776. 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, "", "", ""));
  4777. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Место хранения (Склад/Витрина)", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4778. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4779. this._adapter.UpdateCommand.Connection = this.Connection;
  4780. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Warehouse] SET [Артикул] = @Артикул, [Наименование] = @Наименование, [Цена] = @Цена, [Количество] = @Количество, [Место хранения (Склад/Витрина)] = @p1 WHERE (([Артикул] = @Original_Артикул) AND ((@IsNull_Цена = 1 AND [Цена] IS NULL) OR ([Цена] = @Original_Цена)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ((@p3 = 1 AND [Место хранения (Склад/Витрина)] IS NULL) OR ([Место хранения (Склад/Витрина)] = @p2)));
  4781. SELECT Артикул, Наименование, Цена, Количество, [Место хранения (Склад/Витрина)] FROM Warehouse WHERE (Артикул = @Артикул)";
  4782. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4783. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4784. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Наименование", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4785. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4786. 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, "", "", ""));
  4787. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Место хранения (Склад/Витрина)", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4788. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Артикул", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Артикул", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4789. 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, "", "", ""));
  4790. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Цена", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4791. 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, "", "", ""));
  4792. 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, "", "", ""));
  4793. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p3", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Место хранения (Склад/Витрина)", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4794. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Место хранения (Склад/Витрина)", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4795. }
  4796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4798. private void InitConnection() {
  4799. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4800. this._connection.ConnectionString = global::IS_hairdresser.Properties.Settings.Default.GushchinaConnectionString;
  4801. }
  4802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4804. private void InitCommandCollection() {
  4805. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4806. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4807. this._commandCollection[0].Connection = this.Connection;
  4808. this._commandCollection[0].CommandText = "SELECT Артикул, Наименование, Цена, Количество, [Место хранения (Склад/Витрина)] " +
  4809. "FROM dbo.Warehouse";
  4810. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4811. }
  4812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4814. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4815. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4816. public virtual int Fill(GushchinaDataSet.WarehouseDataTable dataTable) {
  4817. this.Adapter.SelectCommand = this.CommandCollection[0];
  4818. if ((this.ClearBeforeFill == true)) {
  4819. dataTable.Clear();
  4820. }
  4821. int returnValue = this.Adapter.Fill(dataTable);
  4822. return returnValue;
  4823. }
  4824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4826. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4827. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4828. public virtual GushchinaDataSet.WarehouseDataTable GetData() {
  4829. this.Adapter.SelectCommand = this.CommandCollection[0];
  4830. GushchinaDataSet.WarehouseDataTable dataTable = new GushchinaDataSet.WarehouseDataTable();
  4831. this.Adapter.Fill(dataTable);
  4832. return dataTable;
  4833. }
  4834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4836. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4837. public virtual int Update(GushchinaDataSet.WarehouseDataTable dataTable) {
  4838. return this.Adapter.Update(dataTable);
  4839. }
  4840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4842. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4843. public virtual int Update(GushchinaDataSet dataSet) {
  4844. return this.Adapter.Update(dataSet, "Warehouse");
  4845. }
  4846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4848. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4849. public virtual int Update(global::System.Data.DataRow dataRow) {
  4850. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4851. dataRow});
  4852. }
  4853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4855. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4856. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4857. return this.Adapter.Update(dataRows);
  4858. }
  4859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4861. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4862. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4863. public virtual int Delete(string Original_Артикул, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, string p2) {
  4864. if ((Original_Артикул == null)) {
  4865. throw new global::System.ArgumentNullException("Original_Артикул");
  4866. }
  4867. else {
  4868. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Артикул));
  4869. }
  4870. if ((Original_Цена.HasValue == true)) {
  4871. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4872. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Цена.Value));
  4873. }
  4874. else {
  4875. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4876. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4877. }
  4878. if ((Original_Количество.HasValue == true)) {
  4879. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4880. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Количество.Value));
  4881. }
  4882. else {
  4883. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4884. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4885. }
  4886. if ((p2 == null)) {
  4887. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4888. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4889. }
  4890. else {
  4891. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4892. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(p2));
  4893. }
  4894. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4895. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4896. != global::System.Data.ConnectionState.Open)) {
  4897. this.Adapter.DeleteCommand.Connection.Open();
  4898. }
  4899. try {
  4900. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4901. return returnValue;
  4902. }
  4903. finally {
  4904. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4905. this.Adapter.DeleteCommand.Connection.Close();
  4906. }
  4907. }
  4908. }
  4909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4911. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4912. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4913. public virtual int Insert(string Артикул, string Наименование, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, string p1) {
  4914. if ((Артикул == null)) {
  4915. throw new global::System.ArgumentNullException("Артикул");
  4916. }
  4917. else {
  4918. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Артикул));
  4919. }
  4920. if ((Наименование == null)) {
  4921. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4922. }
  4923. else {
  4924. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  4925. }
  4926. if ((Цена.HasValue == true)) {
  4927. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  4928. }
  4929. else {
  4930. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4931. }
  4932. if ((Количество.HasValue == true)) {
  4933. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Количество.Value));
  4934. }
  4935. else {
  4936. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4937. }
  4938. if ((p1 == null)) {
  4939. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  4940. }
  4941. else {
  4942. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(p1));
  4943. }
  4944. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4945. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4946. != global::System.Data.ConnectionState.Open)) {
  4947. this.Adapter.InsertCommand.Connection.Open();
  4948. }
  4949. try {
  4950. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4951. return returnValue;
  4952. }
  4953. finally {
  4954. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4955. this.Adapter.InsertCommand.Connection.Close();
  4956. }
  4957. }
  4958. }
  4959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4961. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4962. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4963. public virtual int Update(string Артикул, string Наименование, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, string p1, string Original_Артикул, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, string p2) {
  4964. if ((Артикул == null)) {
  4965. throw new global::System.ArgumentNullException("Артикул");
  4966. }
  4967. else {
  4968. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Артикул));
  4969. }
  4970. if ((Наименование == null)) {
  4971. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4972. }
  4973. else {
  4974. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование));
  4975. }
  4976. if ((Цена.HasValue == true)) {
  4977. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  4978. }
  4979. else {
  4980. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4981. }
  4982. if ((Количество.HasValue == true)) {
  4983. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Количество.Value));
  4984. }
  4985. else {
  4986. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4987. }
  4988. if ((p1 == null)) {
  4989. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4990. }
  4991. else {
  4992. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(p1));
  4993. }
  4994. if ((Original_Артикул == null)) {
  4995. throw new global::System.ArgumentNullException("Original_Артикул");
  4996. }
  4997. else {
  4998. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Артикул));
  4999. }
  5000. if ((Original_Цена.HasValue == true)) {
  5001. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  5002. this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(Original_Цена.Value));
  5003. }
  5004. else {
  5005. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  5006. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  5007. }
  5008. if ((Original_Количество.HasValue == true)) {
  5009. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  5010. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Количество.Value));
  5011. }
  5012. else {
  5013. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  5014. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  5015. }
  5016. if ((p2 == null)) {
  5017. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  5018. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  5019. }
  5020. else {
  5021. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  5022. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(p2));
  5023. }
  5024. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5025. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5026. != global::System.Data.ConnectionState.Open)) {
  5027. this.Adapter.UpdateCommand.Connection.Open();
  5028. }
  5029. try {
  5030. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5031. return returnValue;
  5032. }
  5033. finally {
  5034. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5035. this.Adapter.UpdateCommand.Connection.Close();
  5036. }
  5037. }
  5038. }
  5039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5041. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5042. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5043. public virtual int Update(string Наименование, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, string p1, string Original_Артикул, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, string p2) {
  5044. return this.Update(Original_Артикул, Наименование, Цена, Количество, p1, Original_Артикул, Original_Цена, Original_Количество, p2);
  5045. }
  5046. }
  5047. /// <summary>
  5048. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  5049. ///</summary>
  5050. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5051. [global::System.ComponentModel.ToolboxItem(true)]
  5052. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  5053. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5054. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  5055. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  5056. private UpdateOrderOption _updateOrder;
  5057. private Consumables_soldTableAdapter _consumables_soldTableAdapter;
  5058. private DeliveriesTableAdapter _deliveriesTableAdapter;
  5059. private ListTableAdapter _listTableAdapter;
  5060. private PurchaseTableAdapter _purchaseTableAdapter;
  5061. private Used_consumablesTableAdapter _used_consumablesTableAdapter;
  5062. private WarehouseTableAdapter _warehouseTableAdapter;
  5063. private bool _backupDataSetBeforeUpdate;
  5064. private global::System.Data.IDbConnection _connection;
  5065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5067. public UpdateOrderOption UpdateOrder {
  5068. get {
  5069. return this._updateOrder;
  5070. }
  5071. set {
  5072. this._updateOrder = value;
  5073. }
  5074. }
  5075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5077. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5078. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5079. "a", "System.Drawing.Design.UITypeEditor")]
  5080. public Consumables_soldTableAdapter Consumables_soldTableAdapter {
  5081. get {
  5082. return this._consumables_soldTableAdapter;
  5083. }
  5084. set {
  5085. this._consumables_soldTableAdapter = value;
  5086. }
  5087. }
  5088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5090. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5091. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5092. "a", "System.Drawing.Design.UITypeEditor")]
  5093. public DeliveriesTableAdapter DeliveriesTableAdapter {
  5094. get {
  5095. return this._deliveriesTableAdapter;
  5096. }
  5097. set {
  5098. this._deliveriesTableAdapter = value;
  5099. }
  5100. }
  5101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5103. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5104. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5105. "a", "System.Drawing.Design.UITypeEditor")]
  5106. public ListTableAdapter ListTableAdapter {
  5107. get {
  5108. return this._listTableAdapter;
  5109. }
  5110. set {
  5111. this._listTableAdapter = value;
  5112. }
  5113. }
  5114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5116. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5117. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5118. "a", "System.Drawing.Design.UITypeEditor")]
  5119. public PurchaseTableAdapter PurchaseTableAdapter {
  5120. get {
  5121. return this._purchaseTableAdapter;
  5122. }
  5123. set {
  5124. this._purchaseTableAdapter = value;
  5125. }
  5126. }
  5127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5129. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5130. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5131. "a", "System.Drawing.Design.UITypeEditor")]
  5132. public Used_consumablesTableAdapter Used_consumablesTableAdapter {
  5133. get {
  5134. return this._used_consumablesTableAdapter;
  5135. }
  5136. set {
  5137. this._used_consumablesTableAdapter = value;
  5138. }
  5139. }
  5140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5142. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  5143. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  5144. "a", "System.Drawing.Design.UITypeEditor")]
  5145. public WarehouseTableAdapter WarehouseTableAdapter {
  5146. get {
  5147. return this._warehouseTableAdapter;
  5148. }
  5149. set {
  5150. this._warehouseTableAdapter = value;
  5151. }
  5152. }
  5153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5155. public bool BackupDataSetBeforeUpdate {
  5156. get {
  5157. return this._backupDataSetBeforeUpdate;
  5158. }
  5159. set {
  5160. this._backupDataSetBeforeUpdate = value;
  5161. }
  5162. }
  5163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5165. [global::System.ComponentModel.Browsable(false)]
  5166. public global::System.Data.IDbConnection Connection {
  5167. get {
  5168. if ((this._connection != null)) {
  5169. return this._connection;
  5170. }
  5171. if (((this._consumables_soldTableAdapter != null)
  5172. && (this._consumables_soldTableAdapter.Connection != null))) {
  5173. return this._consumables_soldTableAdapter.Connection;
  5174. }
  5175. if (((this._deliveriesTableAdapter != null)
  5176. && (this._deliveriesTableAdapter.Connection != null))) {
  5177. return this._deliveriesTableAdapter.Connection;
  5178. }
  5179. if (((this._listTableAdapter != null)
  5180. && (this._listTableAdapter.Connection != null))) {
  5181. return this._listTableAdapter.Connection;
  5182. }
  5183. if (((this._purchaseTableAdapter != null)
  5184. && (this._purchaseTableAdapter.Connection != null))) {
  5185. return this._purchaseTableAdapter.Connection;
  5186. }
  5187. if (((this._used_consumablesTableAdapter != null)
  5188. && (this._used_consumablesTableAdapter.Connection != null))) {
  5189. return this._used_consumablesTableAdapter.Connection;
  5190. }
  5191. if (((this._warehouseTableAdapter != null)
  5192. && (this._warehouseTableAdapter.Connection != null))) {
  5193. return this._warehouseTableAdapter.Connection;
  5194. }
  5195. return null;
  5196. }
  5197. set {
  5198. this._connection = value;
  5199. }
  5200. }
  5201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5203. [global::System.ComponentModel.Browsable(false)]
  5204. public int TableAdapterInstanceCount {
  5205. get {
  5206. int count = 0;
  5207. if ((this._consumables_soldTableAdapter != null)) {
  5208. count = (count + 1);
  5209. }
  5210. if ((this._deliveriesTableAdapter != null)) {
  5211. count = (count + 1);
  5212. }
  5213. if ((this._listTableAdapter != null)) {
  5214. count = (count + 1);
  5215. }
  5216. if ((this._purchaseTableAdapter != null)) {
  5217. count = (count + 1);
  5218. }
  5219. if ((this._used_consumablesTableAdapter != null)) {
  5220. count = (count + 1);
  5221. }
  5222. if ((this._warehouseTableAdapter != null)) {
  5223. count = (count + 1);
  5224. }
  5225. return count;
  5226. }
  5227. }
  5228. /// <summary>
  5229. ///Update rows in top-down order.
  5230. ///</summary>
  5231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5233. private int UpdateUpdatedRows(GushchinaDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  5234. int result = 0;
  5235. if ((this._listTableAdapter != null)) {
  5236. global::System.Data.DataRow[] updatedRows = dataSet.List.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5237. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5238. if (((updatedRows != null)
  5239. && (0 < updatedRows.Length))) {
  5240. result = (result + this._listTableAdapter.Update(updatedRows));
  5241. allChangedRows.AddRange(updatedRows);
  5242. }
  5243. }
  5244. if ((this._purchaseTableAdapter != null)) {
  5245. global::System.Data.DataRow[] updatedRows = dataSet.Purchase.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5246. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5247. if (((updatedRows != null)
  5248. && (0 < updatedRows.Length))) {
  5249. result = (result + this._purchaseTableAdapter.Update(updatedRows));
  5250. allChangedRows.AddRange(updatedRows);
  5251. }
  5252. }
  5253. if ((this._warehouseTableAdapter != null)) {
  5254. global::System.Data.DataRow[] updatedRows = dataSet.Warehouse.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5255. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5256. if (((updatedRows != null)
  5257. && (0 < updatedRows.Length))) {
  5258. result = (result + this._warehouseTableAdapter.Update(updatedRows));
  5259. allChangedRows.AddRange(updatedRows);
  5260. }
  5261. }
  5262. if ((this._consumables_soldTableAdapter != null)) {
  5263. global::System.Data.DataRow[] updatedRows = dataSet.Consumables_sold.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5264. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5265. if (((updatedRows != null)
  5266. && (0 < updatedRows.Length))) {
  5267. result = (result + this._consumables_soldTableAdapter.Update(updatedRows));
  5268. allChangedRows.AddRange(updatedRows);
  5269. }
  5270. }
  5271. if ((this._deliveriesTableAdapter != null)) {
  5272. global::System.Data.DataRow[] updatedRows = dataSet.Deliveries.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5273. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5274. if (((updatedRows != null)
  5275. && (0 < updatedRows.Length))) {
  5276. result = (result + this._deliveriesTableAdapter.Update(updatedRows));
  5277. allChangedRows.AddRange(updatedRows);
  5278. }
  5279. }
  5280. if ((this._used_consumablesTableAdapter != null)) {
  5281. global::System.Data.DataRow[] updatedRows = dataSet.Used_consumables.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  5282. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  5283. if (((updatedRows != null)
  5284. && (0 < updatedRows.Length))) {
  5285. result = (result + this._used_consumablesTableAdapter.Update(updatedRows));
  5286. allChangedRows.AddRange(updatedRows);
  5287. }
  5288. }
  5289. return result;
  5290. }
  5291. /// <summary>
  5292. ///Insert rows in top-down order.
  5293. ///</summary>
  5294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5296. private int UpdateInsertedRows(GushchinaDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  5297. int result = 0;
  5298. if ((this._listTableAdapter != null)) {
  5299. global::System.Data.DataRow[] addedRows = dataSet.List.Select(null, null, global::System.Data.DataViewRowState.Added);
  5300. if (((addedRows != null)
  5301. && (0 < addedRows.Length))) {
  5302. result = (result + this._listTableAdapter.Update(addedRows));
  5303. allAddedRows.AddRange(addedRows);
  5304. }
  5305. }
  5306. if ((this._purchaseTableAdapter != null)) {
  5307. global::System.Data.DataRow[] addedRows = dataSet.Purchase.Select(null, null, global::System.Data.DataViewRowState.Added);
  5308. if (((addedRows != null)
  5309. && (0 < addedRows.Length))) {
  5310. result = (result + this._purchaseTableAdapter.Update(addedRows));
  5311. allAddedRows.AddRange(addedRows);
  5312. }
  5313. }
  5314. if ((this._warehouseTableAdapter != null)) {
  5315. global::System.Data.DataRow[] addedRows = dataSet.Warehouse.Select(null, null, global::System.Data.DataViewRowState.Added);
  5316. if (((addedRows != null)
  5317. && (0 < addedRows.Length))) {
  5318. result = (result + this._warehouseTableAdapter.Update(addedRows));
  5319. allAddedRows.AddRange(addedRows);
  5320. }
  5321. }
  5322. if ((this._consumables_soldTableAdapter != null)) {
  5323. global::System.Data.DataRow[] addedRows = dataSet.Consumables_sold.Select(null, null, global::System.Data.DataViewRowState.Added);
  5324. if (((addedRows != null)
  5325. && (0 < addedRows.Length))) {
  5326. result = (result + this._consumables_soldTableAdapter.Update(addedRows));
  5327. allAddedRows.AddRange(addedRows);
  5328. }
  5329. }
  5330. if ((this._deliveriesTableAdapter != null)) {
  5331. global::System.Data.DataRow[] addedRows = dataSet.Deliveries.Select(null, null, global::System.Data.DataViewRowState.Added);
  5332. if (((addedRows != null)
  5333. && (0 < addedRows.Length))) {
  5334. result = (result + this._deliveriesTableAdapter.Update(addedRows));
  5335. allAddedRows.AddRange(addedRows);
  5336. }
  5337. }
  5338. if ((this._used_consumablesTableAdapter != null)) {
  5339. global::System.Data.DataRow[] addedRows = dataSet.Used_consumables.Select(null, null, global::System.Data.DataViewRowState.Added);
  5340. if (((addedRows != null)
  5341. && (0 < addedRows.Length))) {
  5342. result = (result + this._used_consumablesTableAdapter.Update(addedRows));
  5343. allAddedRows.AddRange(addedRows);
  5344. }
  5345. }
  5346. return result;
  5347. }
  5348. /// <summary>
  5349. ///Delete rows in bottom-up order.
  5350. ///</summary>
  5351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5353. private int UpdateDeletedRows(GushchinaDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  5354. int result = 0;
  5355. if ((this._used_consumablesTableAdapter != null)) {
  5356. global::System.Data.DataRow[] deletedRows = dataSet.Used_consumables.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5357. if (((deletedRows != null)
  5358. && (0 < deletedRows.Length))) {
  5359. result = (result + this._used_consumablesTableAdapter.Update(deletedRows));
  5360. allChangedRows.AddRange(deletedRows);
  5361. }
  5362. }
  5363. if ((this._deliveriesTableAdapter != null)) {
  5364. global::System.Data.DataRow[] deletedRows = dataSet.Deliveries.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5365. if (((deletedRows != null)
  5366. && (0 < deletedRows.Length))) {
  5367. result = (result + this._deliveriesTableAdapter.Update(deletedRows));
  5368. allChangedRows.AddRange(deletedRows);
  5369. }
  5370. }
  5371. if ((this._consumables_soldTableAdapter != null)) {
  5372. global::System.Data.DataRow[] deletedRows = dataSet.Consumables_sold.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5373. if (((deletedRows != null)
  5374. && (0 < deletedRows.Length))) {
  5375. result = (result + this._consumables_soldTableAdapter.Update(deletedRows));
  5376. allChangedRows.AddRange(deletedRows);
  5377. }
  5378. }
  5379. if ((this._warehouseTableAdapter != null)) {
  5380. global::System.Data.DataRow[] deletedRows = dataSet.Warehouse.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5381. if (((deletedRows != null)
  5382. && (0 < deletedRows.Length))) {
  5383. result = (result + this._warehouseTableAdapter.Update(deletedRows));
  5384. allChangedRows.AddRange(deletedRows);
  5385. }
  5386. }
  5387. if ((this._purchaseTableAdapter != null)) {
  5388. global::System.Data.DataRow[] deletedRows = dataSet.Purchase.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5389. if (((deletedRows != null)
  5390. && (0 < deletedRows.Length))) {
  5391. result = (result + this._purchaseTableAdapter.Update(deletedRows));
  5392. allChangedRows.AddRange(deletedRows);
  5393. }
  5394. }
  5395. if ((this._listTableAdapter != null)) {
  5396. global::System.Data.DataRow[] deletedRows = dataSet.List.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5397. if (((deletedRows != null)
  5398. && (0 < deletedRows.Length))) {
  5399. result = (result + this._listTableAdapter.Update(deletedRows));
  5400. allChangedRows.AddRange(deletedRows);
  5401. }
  5402. }
  5403. return result;
  5404. }
  5405. /// <summary>
  5406. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  5407. ///</summary>
  5408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5410. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  5411. if (((updatedRows == null)
  5412. || (updatedRows.Length < 1))) {
  5413. return updatedRows;
  5414. }
  5415. if (((allAddedRows == null)
  5416. || (allAddedRows.Count < 1))) {
  5417. return updatedRows;
  5418. }
  5419. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  5420. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  5421. global::System.Data.DataRow row = updatedRows[i];
  5422. if ((allAddedRows.Contains(row) == false)) {
  5423. realUpdatedRows.Add(row);
  5424. }
  5425. }
  5426. return realUpdatedRows.ToArray();
  5427. }
  5428. /// <summary>
  5429. ///Update all changes to the dataset.
  5430. ///</summary>
  5431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5433. public virtual int UpdateAll(GushchinaDataSet dataSet) {
  5434. if ((dataSet == null)) {
  5435. throw new global::System.ArgumentNullException("dataSet");
  5436. }
  5437. if ((dataSet.HasChanges() == false)) {
  5438. return 0;
  5439. }
  5440. if (((this._consumables_soldTableAdapter != null)
  5441. && (this.MatchTableAdapterConnection(this._consumables_soldTableAdapter.Connection) == false))) {
  5442. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5443. "r, должны использовать одинаковую строку подключения.");
  5444. }
  5445. if (((this._deliveriesTableAdapter != null)
  5446. && (this.MatchTableAdapterConnection(this._deliveriesTableAdapter.Connection) == false))) {
  5447. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5448. "r, должны использовать одинаковую строку подключения.");
  5449. }
  5450. if (((this._listTableAdapter != null)
  5451. && (this.MatchTableAdapterConnection(this._listTableAdapter.Connection) == false))) {
  5452. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5453. "r, должны использовать одинаковую строку подключения.");
  5454. }
  5455. if (((this._purchaseTableAdapter != null)
  5456. && (this.MatchTableAdapterConnection(this._purchaseTableAdapter.Connection) == false))) {
  5457. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5458. "r, должны использовать одинаковую строку подключения.");
  5459. }
  5460. if (((this._used_consumablesTableAdapter != null)
  5461. && (this.MatchTableAdapterConnection(this._used_consumablesTableAdapter.Connection) == false))) {
  5462. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5463. "r, должны использовать одинаковую строку подключения.");
  5464. }
  5465. if (((this._warehouseTableAdapter != null)
  5466. && (this.MatchTableAdapterConnection(this._warehouseTableAdapter.Connection) == false))) {
  5467. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5468. "r, должны использовать одинаковую строку подключения.");
  5469. }
  5470. global::System.Data.IDbConnection workConnection = this.Connection;
  5471. if ((workConnection == null)) {
  5472. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  5473. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  5474. }
  5475. bool workConnOpened = false;
  5476. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  5477. == global::System.Data.ConnectionState.Broken)) {
  5478. workConnection.Close();
  5479. }
  5480. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  5481. workConnection.Open();
  5482. workConnOpened = true;
  5483. }
  5484. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  5485. if ((workTransaction == null)) {
  5486. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  5487. "и или текущее состояние не позволяет начать транзакцию.");
  5488. }
  5489. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  5490. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  5491. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  5492. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  5493. int result = 0;
  5494. global::System.Data.DataSet backupDataSet = null;
  5495. if (this.BackupDataSetBeforeUpdate) {
  5496. backupDataSet = new global::System.Data.DataSet();
  5497. backupDataSet.Merge(dataSet);
  5498. }
  5499. try {
  5500. // ---- Prepare for update -----------
  5501. //
  5502. if ((this._consumables_soldTableAdapter != null)) {
  5503. revertConnections.Add(this._consumables_soldTableAdapter, this._consumables_soldTableAdapter.Connection);
  5504. this._consumables_soldTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5505. this._consumables_soldTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5506. if (this._consumables_soldTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5507. this._consumables_soldTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5508. adaptersWithAcceptChangesDuringUpdate.Add(this._consumables_soldTableAdapter.Adapter);
  5509. }
  5510. }
  5511. if ((this._deliveriesTableAdapter != null)) {
  5512. revertConnections.Add(this._deliveriesTableAdapter, this._deliveriesTableAdapter.Connection);
  5513. this._deliveriesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5514. this._deliveriesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5515. if (this._deliveriesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5516. this._deliveriesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5517. adaptersWithAcceptChangesDuringUpdate.Add(this._deliveriesTableAdapter.Adapter);
  5518. }
  5519. }
  5520. if ((this._listTableAdapter != null)) {
  5521. revertConnections.Add(this._listTableAdapter, this._listTableAdapter.Connection);
  5522. this._listTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5523. this._listTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5524. if (this._listTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5525. this._listTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5526. adaptersWithAcceptChangesDuringUpdate.Add(this._listTableAdapter.Adapter);
  5527. }
  5528. }
  5529. if ((this._purchaseTableAdapter != null)) {
  5530. revertConnections.Add(this._purchaseTableAdapter, this._purchaseTableAdapter.Connection);
  5531. this._purchaseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5532. this._purchaseTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5533. if (this._purchaseTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5534. this._purchaseTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5535. adaptersWithAcceptChangesDuringUpdate.Add(this._purchaseTableAdapter.Adapter);
  5536. }
  5537. }
  5538. if ((this._used_consumablesTableAdapter != null)) {
  5539. revertConnections.Add(this._used_consumablesTableAdapter, this._used_consumablesTableAdapter.Connection);
  5540. this._used_consumablesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5541. this._used_consumablesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5542. if (this._used_consumablesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5543. this._used_consumablesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5544. adaptersWithAcceptChangesDuringUpdate.Add(this._used_consumablesTableAdapter.Adapter);
  5545. }
  5546. }
  5547. if ((this._warehouseTableAdapter != null)) {
  5548. revertConnections.Add(this._warehouseTableAdapter, this._warehouseTableAdapter.Connection);
  5549. this._warehouseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5550. this._warehouseTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5551. if (this._warehouseTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5552. this._warehouseTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5553. adaptersWithAcceptChangesDuringUpdate.Add(this._warehouseTableAdapter.Adapter);
  5554. }
  5555. }
  5556. //
  5557. //---- Perform updates -----------
  5558. //
  5559. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  5560. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  5561. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  5562. }
  5563. else {
  5564. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  5565. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  5566. }
  5567. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  5568. //
  5569. //---- Commit updates -----------
  5570. //
  5571. workTransaction.Commit();
  5572. if ((0 < allAddedRows.Count)) {
  5573. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  5574. allAddedRows.CopyTo(rows);
  5575. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5576. global::System.Data.DataRow row = rows[i];
  5577. row.AcceptChanges();
  5578. }
  5579. }
  5580. if ((0 < allChangedRows.Count)) {
  5581. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  5582. allChangedRows.CopyTo(rows);
  5583. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5584. global::System.Data.DataRow row = rows[i];
  5585. row.AcceptChanges();
  5586. }
  5587. }
  5588. }
  5589. catch (global::System.Exception ex) {
  5590. workTransaction.Rollback();
  5591. // ---- Restore the dataset -----------
  5592. if (this.BackupDataSetBeforeUpdate) {
  5593. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  5594. dataSet.Clear();
  5595. dataSet.Merge(backupDataSet);
  5596. }
  5597. else {
  5598. if ((0 < allAddedRows.Count)) {
  5599. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  5600. allAddedRows.CopyTo(rows);
  5601. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5602. global::System.Data.DataRow row = rows[i];
  5603. row.AcceptChanges();
  5604. row.SetAdded();
  5605. }
  5606. }
  5607. }
  5608. throw ex;
  5609. }
  5610. finally {
  5611. if (workConnOpened) {
  5612. workConnection.Close();
  5613. }
  5614. if ((this._consumables_soldTableAdapter != null)) {
  5615. this._consumables_soldTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._consumables_soldTableAdapter]));
  5616. this._consumables_soldTableAdapter.Transaction = null;
  5617. }
  5618. if ((this._deliveriesTableAdapter != null)) {
  5619. this._deliveriesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._deliveriesTableAdapter]));
  5620. this._deliveriesTableAdapter.Transaction = null;
  5621. }
  5622. if ((this._listTableAdapter != null)) {
  5623. this._listTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._listTableAdapter]));
  5624. this._listTableAdapter.Transaction = null;
  5625. }
  5626. if ((this._purchaseTableAdapter != null)) {
  5627. this._purchaseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._purchaseTableAdapter]));
  5628. this._purchaseTableAdapter.Transaction = null;
  5629. }
  5630. if ((this._used_consumablesTableAdapter != null)) {
  5631. this._used_consumablesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._used_consumablesTableAdapter]));
  5632. this._used_consumablesTableAdapter.Transaction = null;
  5633. }
  5634. if ((this._warehouseTableAdapter != null)) {
  5635. this._warehouseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._warehouseTableAdapter]));
  5636. this._warehouseTableAdapter.Transaction = null;
  5637. }
  5638. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  5639. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  5640. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  5641. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  5642. global::System.Data.Common.DataAdapter adapter = adapters[i];
  5643. adapter.AcceptChangesDuringUpdate = true;
  5644. }
  5645. }
  5646. }
  5647. return result;
  5648. }
  5649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5651. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  5652. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  5653. }
  5654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5656. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  5657. if ((this._connection != null)) {
  5658. return true;
  5659. }
  5660. if (((this.Connection == null)
  5661. || (inputConnection == null))) {
  5662. return true;
  5663. }
  5664. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  5665. return true;
  5666. }
  5667. return false;
  5668. }
  5669. /// <summary>
  5670. ///Update Order Option
  5671. ///</summary>
  5672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5673. public enum UpdateOrderOption {
  5674. InsertUpdateDelete = 0,
  5675. UpdateInsertDelete = 1,
  5676. }
  5677. /// <summary>
  5678. ///Used to sort self-referenced table's rows
  5679. ///</summary>
  5680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5681. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  5682. private global::System.Data.DataRelation _relation;
  5683. private int _childFirst;
  5684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5686. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  5687. this._relation = relation;
  5688. if (childFirst) {
  5689. this._childFirst = -1;
  5690. }
  5691. else {
  5692. this._childFirst = 1;
  5693. }
  5694. }
  5695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5697. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  5698. global::System.Diagnostics.Debug.Assert((row != null));
  5699. global::System.Data.DataRow root = row;
  5700. distance = 0;
  5701. 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>();
  5702. traversedRows[row] = row;
  5703. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5704. for (
  5705. ; ((parent != null)
  5706. && (traversedRows.ContainsKey(parent) == false));
  5707. ) {
  5708. distance = (distance + 1);
  5709. root = parent;
  5710. traversedRows[parent] = parent;
  5711. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5712. }
  5713. if ((distance == 0)) {
  5714. traversedRows.Clear();
  5715. traversedRows[row] = row;
  5716. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5717. for (
  5718. ; ((parent != null)
  5719. && (traversedRows.ContainsKey(parent) == false));
  5720. ) {
  5721. distance = (distance + 1);
  5722. root = parent;
  5723. traversedRows[parent] = parent;
  5724. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5725. }
  5726. }
  5727. return root;
  5728. }
  5729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5731. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  5732. if (object.ReferenceEquals(row1, row2)) {
  5733. return 0;
  5734. }
  5735. if ((row1 == null)) {
  5736. return -1;
  5737. }
  5738. if ((row2 == null)) {
  5739. return 1;
  5740. }
  5741. int distance1 = 0;
  5742. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  5743. int distance2 = 0;
  5744. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  5745. if (object.ReferenceEquals(root1, root2)) {
  5746. return (this._childFirst * distance1.CompareTo(distance2));
  5747. }
  5748. else {
  5749. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  5750. && (root2.Table != null)));
  5751. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  5752. return -1;
  5753. }
  5754. else {
  5755. return 1;
  5756. }
  5757. }
  5758. }
  5759. }
  5760. }
  5761. }
  5762. #pragma warning restore 1591