GushchinaDataSet11.Designer.cs 598 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917
  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("GushchinaDataSet1")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class GushchinaDataSet1 : 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 Отображение_по_артиклуDataTable tableОтображение_по_артиклу;
  29. private Отображение_по_количествуDataTable tableОтображение_по_количеству;
  30. private Отображение_по_месту_храненияDataTable tableОтображение_по_месту_хранения;
  31. private Отображение_по_наименованиюDataTable tableОтображение_по_наименованию;
  32. private Отображение_по_ценеDataTable tableОтображение_по_цене;
  33. private global::System.Data.DataRelation relationFK_Consumables_sold_Warehouse;
  34. private global::System.Data.DataRelation relationFK_Deliveries_List;
  35. private global::System.Data.DataRelation relationFK_Deliveries_Warehouse;
  36. private global::System.Data.DataRelation relationFK_Used_consumables_Warehouse;
  37. private global::System.Data.DataRelation relationFK_Warehouse_List;
  38. private global::System.Data.DataRelation relationFK_Warehouse_Purchase;
  39. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  40. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  41. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  42. public GushchinaDataSet1() {
  43. this.BeginInit();
  44. this.InitClass();
  45. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  46. base.Tables.CollectionChanged += schemaChangedHandler;
  47. base.Relations.CollectionChanged += schemaChangedHandler;
  48. this.EndInit();
  49. }
  50. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  51. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  52. protected GushchinaDataSet1(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  53. base(info, context, false) {
  54. if ((this.IsBinarySerialized(info, context) == true)) {
  55. this.InitVars(false);
  56. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  57. this.Tables.CollectionChanged += schemaChangedHandler1;
  58. this.Relations.CollectionChanged += schemaChangedHandler1;
  59. return;
  60. }
  61. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  62. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  63. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  64. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  65. if ((ds.Tables["Consumables_sold"] != null)) {
  66. base.Tables.Add(new Consumables_soldDataTable(ds.Tables["Consumables_sold"]));
  67. }
  68. if ((ds.Tables["Deliveries"] != null)) {
  69. base.Tables.Add(new DeliveriesDataTable(ds.Tables["Deliveries"]));
  70. }
  71. if ((ds.Tables["List"] != null)) {
  72. base.Tables.Add(new ListDataTable(ds.Tables["List"]));
  73. }
  74. if ((ds.Tables["Purchase"] != null)) {
  75. base.Tables.Add(new PurchaseDataTable(ds.Tables["Purchase"]));
  76. }
  77. if ((ds.Tables["Used_consumables"] != null)) {
  78. base.Tables.Add(new Used_consumablesDataTable(ds.Tables["Used_consumables"]));
  79. }
  80. if ((ds.Tables["Warehouse"] != null)) {
  81. base.Tables.Add(new WarehouseDataTable(ds.Tables["Warehouse"]));
  82. }
  83. if ((ds.Tables["Отображение по артиклу"] != null)) {
  84. base.Tables.Add(new Отображение_по_артиклуDataTable(ds.Tables["Отображение по артиклу"]));
  85. }
  86. if ((ds.Tables["Отображение по количеству"] != null)) {
  87. base.Tables.Add(new Отображение_по_количествуDataTable(ds.Tables["Отображение по количеству"]));
  88. }
  89. if ((ds.Tables["Отображение по месту хранения"] != null)) {
  90. base.Tables.Add(new Отображение_по_месту_храненияDataTable(ds.Tables["Отображение по месту хранения"]));
  91. }
  92. if ((ds.Tables["Отображение по наименованию"] != null)) {
  93. base.Tables.Add(new Отображение_по_наименованиюDataTable(ds.Tables["Отображение по наименованию"]));
  94. }
  95. if ((ds.Tables["Отображение по цене"] != null)) {
  96. base.Tables.Add(new Отображение_по_ценеDataTable(ds.Tables["Отображение по цене"]));
  97. }
  98. this.DataSetName = ds.DataSetName;
  99. this.Prefix = ds.Prefix;
  100. this.Namespace = ds.Namespace;
  101. this.Locale = ds.Locale;
  102. this.CaseSensitive = ds.CaseSensitive;
  103. this.EnforceConstraints = ds.EnforceConstraints;
  104. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  105. this.InitVars();
  106. }
  107. else {
  108. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  109. }
  110. this.GetSerializationData(info, context);
  111. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  112. base.Tables.CollectionChanged += schemaChangedHandler;
  113. this.Relations.CollectionChanged += schemaChangedHandler;
  114. }
  115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  117. [global::System.ComponentModel.Browsable(false)]
  118. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  119. public Consumables_soldDataTable Consumables_sold {
  120. get {
  121. return this.tableConsumables_sold;
  122. }
  123. }
  124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  126. [global::System.ComponentModel.Browsable(false)]
  127. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  128. public DeliveriesDataTable Deliveries {
  129. get {
  130. return this.tableDeliveries;
  131. }
  132. }
  133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  135. [global::System.ComponentModel.Browsable(false)]
  136. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  137. public ListDataTable List {
  138. get {
  139. return this.tableList;
  140. }
  141. }
  142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  144. [global::System.ComponentModel.Browsable(false)]
  145. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  146. public PurchaseDataTable Purchase {
  147. get {
  148. return this.tablePurchase;
  149. }
  150. }
  151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  153. [global::System.ComponentModel.Browsable(false)]
  154. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  155. public Used_consumablesDataTable Used_consumables {
  156. get {
  157. return this.tableUsed_consumables;
  158. }
  159. }
  160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  162. [global::System.ComponentModel.Browsable(false)]
  163. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  164. public WarehouseDataTable Warehouse {
  165. get {
  166. return this.tableWarehouse;
  167. }
  168. }
  169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  171. [global::System.ComponentModel.Browsable(false)]
  172. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  173. public Отображение_по_артиклуDataTable Отображение_по_артиклу {
  174. get {
  175. return this.tableОтображение_по_артиклу;
  176. }
  177. }
  178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  180. [global::System.ComponentModel.Browsable(false)]
  181. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  182. public Отображение_по_количествуDataTable Отображение_по_количеству {
  183. get {
  184. return this.tableОтображение_по_количеству;
  185. }
  186. }
  187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  189. [global::System.ComponentModel.Browsable(false)]
  190. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  191. public Отображение_по_месту_храненияDataTable Отображение_по_месту_хранения {
  192. get {
  193. return this.tableОтображение_по_месту_хранения;
  194. }
  195. }
  196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  198. [global::System.ComponentModel.Browsable(false)]
  199. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  200. public Отображение_по_наименованиюDataTable Отображение_по_наименованию {
  201. get {
  202. return this.tableОтображение_по_наименованию;
  203. }
  204. }
  205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  207. [global::System.ComponentModel.Browsable(false)]
  208. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  209. public Отображение_по_ценеDataTable Отображение_по_цене {
  210. get {
  211. return this.tableОтображение_по_цене;
  212. }
  213. }
  214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  216. [global::System.ComponentModel.BrowsableAttribute(true)]
  217. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  218. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  219. get {
  220. return this._schemaSerializationMode;
  221. }
  222. set {
  223. this._schemaSerializationMode = value;
  224. }
  225. }
  226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  228. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  229. public new global::System.Data.DataTableCollection Tables {
  230. get {
  231. return base.Tables;
  232. }
  233. }
  234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  236. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  237. public new global::System.Data.DataRelationCollection Relations {
  238. get {
  239. return base.Relations;
  240. }
  241. }
  242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  244. protected override void InitializeDerivedDataSet() {
  245. this.BeginInit();
  246. this.InitClass();
  247. this.EndInit();
  248. }
  249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  251. public override global::System.Data.DataSet Clone() {
  252. GushchinaDataSet1 cln = ((GushchinaDataSet1)(base.Clone()));
  253. cln.InitVars();
  254. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  255. return cln;
  256. }
  257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  259. protected override bool ShouldSerializeTables() {
  260. return false;
  261. }
  262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  264. protected override bool ShouldSerializeRelations() {
  265. return false;
  266. }
  267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  269. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  270. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  271. this.Reset();
  272. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  273. ds.ReadXml(reader);
  274. if ((ds.Tables["Consumables_sold"] != null)) {
  275. base.Tables.Add(new Consumables_soldDataTable(ds.Tables["Consumables_sold"]));
  276. }
  277. if ((ds.Tables["Deliveries"] != null)) {
  278. base.Tables.Add(new DeliveriesDataTable(ds.Tables["Deliveries"]));
  279. }
  280. if ((ds.Tables["List"] != null)) {
  281. base.Tables.Add(new ListDataTable(ds.Tables["List"]));
  282. }
  283. if ((ds.Tables["Purchase"] != null)) {
  284. base.Tables.Add(new PurchaseDataTable(ds.Tables["Purchase"]));
  285. }
  286. if ((ds.Tables["Used_consumables"] != null)) {
  287. base.Tables.Add(new Used_consumablesDataTable(ds.Tables["Used_consumables"]));
  288. }
  289. if ((ds.Tables["Warehouse"] != null)) {
  290. base.Tables.Add(new WarehouseDataTable(ds.Tables["Warehouse"]));
  291. }
  292. if ((ds.Tables["Отображение по артиклу"] != null)) {
  293. base.Tables.Add(new Отображение_по_артиклуDataTable(ds.Tables["Отображение по артиклу"]));
  294. }
  295. if ((ds.Tables["Отображение по количеству"] != null)) {
  296. base.Tables.Add(new Отображение_по_количествуDataTable(ds.Tables["Отображение по количеству"]));
  297. }
  298. if ((ds.Tables["Отображение по месту хранения"] != null)) {
  299. base.Tables.Add(new Отображение_по_месту_храненияDataTable(ds.Tables["Отображение по месту хранения"]));
  300. }
  301. if ((ds.Tables["Отображение по наименованию"] != null)) {
  302. base.Tables.Add(new Отображение_по_наименованиюDataTable(ds.Tables["Отображение по наименованию"]));
  303. }
  304. if ((ds.Tables["Отображение по цене"] != null)) {
  305. base.Tables.Add(new Отображение_по_ценеDataTable(ds.Tables["Отображение по цене"]));
  306. }
  307. this.DataSetName = ds.DataSetName;
  308. this.Prefix = ds.Prefix;
  309. this.Namespace = ds.Namespace;
  310. this.Locale = ds.Locale;
  311. this.CaseSensitive = ds.CaseSensitive;
  312. this.EnforceConstraints = ds.EnforceConstraints;
  313. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  314. this.InitVars();
  315. }
  316. else {
  317. this.ReadXml(reader);
  318. this.InitVars();
  319. }
  320. }
  321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  323. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  324. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  325. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  326. stream.Position = 0;
  327. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  328. }
  329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  331. internal void InitVars() {
  332. this.InitVars(true);
  333. }
  334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  336. internal void InitVars(bool initTable) {
  337. this.tableConsumables_sold = ((Consumables_soldDataTable)(base.Tables["Consumables_sold"]));
  338. if ((initTable == true)) {
  339. if ((this.tableConsumables_sold != null)) {
  340. this.tableConsumables_sold.InitVars();
  341. }
  342. }
  343. this.tableDeliveries = ((DeliveriesDataTable)(base.Tables["Deliveries"]));
  344. if ((initTable == true)) {
  345. if ((this.tableDeliveries != null)) {
  346. this.tableDeliveries.InitVars();
  347. }
  348. }
  349. this.tableList = ((ListDataTable)(base.Tables["List"]));
  350. if ((initTable == true)) {
  351. if ((this.tableList != null)) {
  352. this.tableList.InitVars();
  353. }
  354. }
  355. this.tablePurchase = ((PurchaseDataTable)(base.Tables["Purchase"]));
  356. if ((initTable == true)) {
  357. if ((this.tablePurchase != null)) {
  358. this.tablePurchase.InitVars();
  359. }
  360. }
  361. this.tableUsed_consumables = ((Used_consumablesDataTable)(base.Tables["Used_consumables"]));
  362. if ((initTable == true)) {
  363. if ((this.tableUsed_consumables != null)) {
  364. this.tableUsed_consumables.InitVars();
  365. }
  366. }
  367. this.tableWarehouse = ((WarehouseDataTable)(base.Tables["Warehouse"]));
  368. if ((initTable == true)) {
  369. if ((this.tableWarehouse != null)) {
  370. this.tableWarehouse.InitVars();
  371. }
  372. }
  373. this.tableОтображение_по_артиклу = ((Отображение_по_артиклуDataTable)(base.Tables["Отображение по артиклу"]));
  374. if ((initTable == true)) {
  375. if ((this.tableОтображение_по_артиклу != null)) {
  376. this.tableОтображение_по_артиклу.InitVars();
  377. }
  378. }
  379. this.tableОтображение_по_количеству = ((Отображение_по_количествуDataTable)(base.Tables["Отображение по количеству"]));
  380. if ((initTable == true)) {
  381. if ((this.tableОтображение_по_количеству != null)) {
  382. this.tableОтображение_по_количеству.InitVars();
  383. }
  384. }
  385. this.tableОтображение_по_месту_хранения = ((Отображение_по_месту_храненияDataTable)(base.Tables["Отображение по месту хранения"]));
  386. if ((initTable == true)) {
  387. if ((this.tableОтображение_по_месту_хранения != null)) {
  388. this.tableОтображение_по_месту_хранения.InitVars();
  389. }
  390. }
  391. this.tableОтображение_по_наименованию = ((Отображение_по_наименованиюDataTable)(base.Tables["Отображение по наименованию"]));
  392. if ((initTable == true)) {
  393. if ((this.tableОтображение_по_наименованию != null)) {
  394. this.tableОтображение_по_наименованию.InitVars();
  395. }
  396. }
  397. this.tableОтображение_по_цене = ((Отображение_по_ценеDataTable)(base.Tables["Отображение по цене"]));
  398. if ((initTable == true)) {
  399. if ((this.tableОтображение_по_цене != null)) {
  400. this.tableОтображение_по_цене.InitVars();
  401. }
  402. }
  403. this.relationFK_Consumables_sold_Warehouse = this.Relations["FK_Consumables_sold_Warehouse"];
  404. this.relationFK_Deliveries_List = this.Relations["FK_Deliveries_List"];
  405. this.relationFK_Deliveries_Warehouse = this.Relations["FK_Deliveries_Warehouse"];
  406. this.relationFK_Used_consumables_Warehouse = this.Relations["FK_Used_consumables_Warehouse"];
  407. this.relationFK_Warehouse_List = this.Relations["FK_Warehouse_List"];
  408. this.relationFK_Warehouse_Purchase = this.Relations["FK_Warehouse_Purchase"];
  409. }
  410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  412. private void InitClass() {
  413. this.DataSetName = "GushchinaDataSet1";
  414. this.Prefix = "";
  415. this.Namespace = "http://tempuri.org/GushchinaDataSet1.xsd";
  416. this.EnforceConstraints = true;
  417. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  418. this.tableConsumables_sold = new Consumables_soldDataTable();
  419. base.Tables.Add(this.tableConsumables_sold);
  420. this.tableDeliveries = new DeliveriesDataTable();
  421. base.Tables.Add(this.tableDeliveries);
  422. this.tableList = new ListDataTable();
  423. base.Tables.Add(this.tableList);
  424. this.tablePurchase = new PurchaseDataTable();
  425. base.Tables.Add(this.tablePurchase);
  426. this.tableUsed_consumables = new Used_consumablesDataTable();
  427. base.Tables.Add(this.tableUsed_consumables);
  428. this.tableWarehouse = new WarehouseDataTable();
  429. base.Tables.Add(this.tableWarehouse);
  430. this.tableОтображение_по_артиклу = new Отображение_по_артиклуDataTable();
  431. base.Tables.Add(this.tableОтображение_по_артиклу);
  432. this.tableОтображение_по_количеству = new Отображение_по_количествуDataTable();
  433. base.Tables.Add(this.tableОтображение_по_количеству);
  434. this.tableОтображение_по_месту_хранения = new Отображение_по_месту_храненияDataTable();
  435. base.Tables.Add(this.tableОтображение_по_месту_хранения);
  436. this.tableОтображение_по_наименованию = new Отображение_по_наименованиюDataTable();
  437. base.Tables.Add(this.tableОтображение_по_наименованию);
  438. this.tableОтображение_по_цене = new Отображение_по_ценеDataTable();
  439. base.Tables.Add(this.tableОтображение_по_цене);
  440. this.relationFK_Consumables_sold_Warehouse = new global::System.Data.DataRelation("FK_Consumables_sold_Warehouse", new global::System.Data.DataColumn[] {
  441. this.tableWarehouse.АртикулColumn}, new global::System.Data.DataColumn[] {
  442. this.tableConsumables_sold.АртикулColumn}, false);
  443. this.Relations.Add(this.relationFK_Consumables_sold_Warehouse);
  444. this.relationFK_Deliveries_List = new global::System.Data.DataRelation("FK_Deliveries_List", new global::System.Data.DataColumn[] {
  445. this.tableList.АртикулColumn}, new global::System.Data.DataColumn[] {
  446. this.tableDeliveries.АртикулColumn}, false);
  447. this.Relations.Add(this.relationFK_Deliveries_List);
  448. this.relationFK_Deliveries_Warehouse = new global::System.Data.DataRelation("FK_Deliveries_Warehouse", new global::System.Data.DataColumn[] {
  449. this.tableWarehouse.АртикулColumn}, new global::System.Data.DataColumn[] {
  450. this.tableDeliveries.АртикулColumn}, false);
  451. this.Relations.Add(this.relationFK_Deliveries_Warehouse);
  452. this.relationFK_Used_consumables_Warehouse = new global::System.Data.DataRelation("FK_Used_consumables_Warehouse", new global::System.Data.DataColumn[] {
  453. this.tableWarehouse.АртикулColumn}, new global::System.Data.DataColumn[] {
  454. this.tableUsed_consumables.АртикулColumn}, false);
  455. this.Relations.Add(this.relationFK_Used_consumables_Warehouse);
  456. this.relationFK_Warehouse_List = new global::System.Data.DataRelation("FK_Warehouse_List", new global::System.Data.DataColumn[] {
  457. this.tableList.АртикулColumn}, new global::System.Data.DataColumn[] {
  458. this.tableWarehouse.АртикулColumn}, false);
  459. this.Relations.Add(this.relationFK_Warehouse_List);
  460. this.relationFK_Warehouse_Purchase = new global::System.Data.DataRelation("FK_Warehouse_Purchase", new global::System.Data.DataColumn[] {
  461. this.tablePurchase.АртикулColumn}, new global::System.Data.DataColumn[] {
  462. this.tableWarehouse.АртикулColumn}, false);
  463. this.Relations.Add(this.relationFK_Warehouse_Purchase);
  464. }
  465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  467. private bool ShouldSerializeConsumables_sold() {
  468. return false;
  469. }
  470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  472. private bool ShouldSerializeDeliveries() {
  473. return false;
  474. }
  475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  477. private bool ShouldSerializeList() {
  478. return false;
  479. }
  480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  482. private bool ShouldSerializePurchase() {
  483. return false;
  484. }
  485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  487. private bool ShouldSerializeUsed_consumables() {
  488. return false;
  489. }
  490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  492. private bool ShouldSerializeWarehouse() {
  493. return false;
  494. }
  495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  497. private bool ShouldSerializeОтображение_по_артиклу() {
  498. return false;
  499. }
  500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  502. private bool ShouldSerializeОтображение_по_количеству() {
  503. return false;
  504. }
  505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  507. private bool ShouldSerializeОтображение_по_месту_хранения() {
  508. return false;
  509. }
  510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  512. private bool ShouldSerializeОтображение_по_наименованию() {
  513. return false;
  514. }
  515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  517. private bool ShouldSerializeОтображение_по_цене() {
  518. return false;
  519. }
  520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  522. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  523. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  524. this.InitVars();
  525. }
  526. }
  527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  529. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  530. GushchinaDataSet1 ds = new GushchinaDataSet1();
  531. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  532. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  533. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  534. any.Namespace = ds.Namespace;
  535. sequence.Items.Add(any);
  536. type.Particle = sequence;
  537. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  538. if (xs.Contains(dsSchema.TargetNamespace)) {
  539. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  540. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  541. try {
  542. global::System.Xml.Schema.XmlSchema schema = null;
  543. dsSchema.Write(s1);
  544. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  545. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  546. s2.SetLength(0);
  547. schema.Write(s2);
  548. if ((s1.Length == s2.Length)) {
  549. s1.Position = 0;
  550. s2.Position = 0;
  551. for (; ((s1.Position != s1.Length)
  552. && (s1.ReadByte() == s2.ReadByte())); ) {
  553. ;
  554. }
  555. if ((s1.Position == s1.Length)) {
  556. return type;
  557. }
  558. }
  559. }
  560. }
  561. finally {
  562. if ((s1 != null)) {
  563. s1.Close();
  564. }
  565. if ((s2 != null)) {
  566. s2.Close();
  567. }
  568. }
  569. }
  570. xs.Add(dsSchema);
  571. return type;
  572. }
  573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  574. public delegate void Consumables_soldRowChangeEventHandler(object sender, Consumables_soldRowChangeEvent e);
  575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  576. public delegate void DeliveriesRowChangeEventHandler(object sender, DeliveriesRowChangeEvent e);
  577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  578. public delegate void ListRowChangeEventHandler(object sender, ListRowChangeEvent e);
  579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  580. public delegate void PurchaseRowChangeEventHandler(object sender, PurchaseRowChangeEvent e);
  581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  582. public delegate void Used_consumablesRowChangeEventHandler(object sender, Used_consumablesRowChangeEvent e);
  583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  584. public delegate void WarehouseRowChangeEventHandler(object sender, WarehouseRowChangeEvent e);
  585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  586. public delegate void Отображение_по_артиклуRowChangeEventHandler(object sender, Отображение_по_артиклуRowChangeEvent e);
  587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  588. public delegate void Отображение_по_количествуRowChangeEventHandler(object sender, Отображение_по_количествуRowChangeEvent e);
  589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  590. public delegate void Отображение_по_месту_храненияRowChangeEventHandler(object sender, Отображение_по_месту_храненияRowChangeEvent e);
  591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  592. public delegate void Отображение_по_наименованиюRowChangeEventHandler(object sender, Отображение_по_наименованиюRowChangeEvent e);
  593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  594. public delegate void Отображение_по_ценеRowChangeEventHandler(object sender, Отображение_по_ценеRowChangeEvent e);
  595. /// <summary>
  596. ///Represents the strongly named DataTable class.
  597. ///</summary>
  598. [global::System.Serializable()]
  599. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  600. public partial class Consumables_soldDataTable : global::System.Data.TypedTableBase<Consumables_soldRow> {
  601. private global::System.Data.DataColumn columnАртикул;
  602. private global::System.Data.DataColumn columnНаименование;
  603. private global::System.Data.DataColumn columnЦена;
  604. private global::System.Data.DataColumn columnКоличество;
  605. private global::System.Data.DataColumn columnДата;
  606. private global::System.Data.DataColumn columnСотрудник;
  607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  609. public Consumables_soldDataTable() {
  610. this.TableName = "Consumables_sold";
  611. this.BeginInit();
  612. this.InitClass();
  613. this.EndInit();
  614. }
  615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  617. internal Consumables_soldDataTable(global::System.Data.DataTable table) {
  618. this.TableName = table.TableName;
  619. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  620. this.CaseSensitive = table.CaseSensitive;
  621. }
  622. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  623. this.Locale = table.Locale;
  624. }
  625. if ((table.Namespace != table.DataSet.Namespace)) {
  626. this.Namespace = table.Namespace;
  627. }
  628. this.Prefix = table.Prefix;
  629. this.MinimumCapacity = table.MinimumCapacity;
  630. }
  631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  633. protected Consumables_soldDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  634. base(info, context) {
  635. this.InitVars();
  636. }
  637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  639. public global::System.Data.DataColumn АртикулColumn {
  640. get {
  641. return this.columnАртикул;
  642. }
  643. }
  644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  646. public global::System.Data.DataColumn НаименованиеColumn {
  647. get {
  648. return this.columnНаименование;
  649. }
  650. }
  651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  653. public global::System.Data.DataColumn ЦенаColumn {
  654. get {
  655. return this.columnЦена;
  656. }
  657. }
  658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  660. public global::System.Data.DataColumn КоличествоColumn {
  661. get {
  662. return this.columnКоличество;
  663. }
  664. }
  665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  667. public global::System.Data.DataColumn ДатаColumn {
  668. get {
  669. return this.columnДата;
  670. }
  671. }
  672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  674. public global::System.Data.DataColumn СотрудникColumn {
  675. get {
  676. return this.columnСотрудник;
  677. }
  678. }
  679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  681. [global::System.ComponentModel.Browsable(false)]
  682. public int Count {
  683. get {
  684. return this.Rows.Count;
  685. }
  686. }
  687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  689. public Consumables_soldRow this[int index] {
  690. get {
  691. return ((Consumables_soldRow)(this.Rows[index]));
  692. }
  693. }
  694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  695. public event Consumables_soldRowChangeEventHandler Consumables_soldRowChanging;
  696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  697. public event Consumables_soldRowChangeEventHandler Consumables_soldRowChanged;
  698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  699. public event Consumables_soldRowChangeEventHandler Consumables_soldRowDeleting;
  700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  701. public event Consumables_soldRowChangeEventHandler Consumables_soldRowDeleted;
  702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  704. public void AddConsumables_soldRow(Consumables_soldRow row) {
  705. this.Rows.Add(row);
  706. }
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  709. public Consumables_soldRow AddConsumables_soldRow(WarehouseRow parentWarehouseRowByFK_Consumables_sold_Warehouse, string Наименование, decimal Цена, int Количество, System.DateTime Дата, string Сотрудник) {
  710. Consumables_soldRow rowConsumables_soldRow = ((Consumables_soldRow)(this.NewRow()));
  711. object[] columnValuesArray = new object[] {
  712. null,
  713. Наименование,
  714. Цена,
  715. Количество,
  716. Дата,
  717. Сотрудник};
  718. if ((parentWarehouseRowByFK_Consumables_sold_Warehouse != null)) {
  719. columnValuesArray[0] = parentWarehouseRowByFK_Consumables_sold_Warehouse[0];
  720. }
  721. rowConsumables_soldRow.ItemArray = columnValuesArray;
  722. this.Rows.Add(rowConsumables_soldRow);
  723. return rowConsumables_soldRow;
  724. }
  725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  727. public override global::System.Data.DataTable Clone() {
  728. Consumables_soldDataTable cln = ((Consumables_soldDataTable)(base.Clone()));
  729. cln.InitVars();
  730. return cln;
  731. }
  732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  734. protected override global::System.Data.DataTable CreateInstance() {
  735. return new Consumables_soldDataTable();
  736. }
  737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  739. internal void InitVars() {
  740. this.columnАртикул = base.Columns["Артикул"];
  741. this.columnНаименование = base.Columns["Наименование"];
  742. this.columnЦена = base.Columns["Цена"];
  743. this.columnКоличество = base.Columns["Количество"];
  744. this.columnДата = base.Columns["Дата"];
  745. this.columnСотрудник = base.Columns["Сотрудник"];
  746. }
  747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  749. private void InitClass() {
  750. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  751. base.Columns.Add(this.columnАртикул);
  752. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  753. base.Columns.Add(this.columnНаименование);
  754. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  755. base.Columns.Add(this.columnЦена);
  756. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  757. base.Columns.Add(this.columnКоличество);
  758. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  759. base.Columns.Add(this.columnДата);
  760. this.columnСотрудник = new global::System.Data.DataColumn("Сотрудник", typeof(string), null, global::System.Data.MappingType.Element);
  761. base.Columns.Add(this.columnСотрудник);
  762. this.columnАртикул.AllowDBNull = false;
  763. this.columnАртикул.MaxLength = 450;
  764. this.columnНаименование.MaxLength = 2147483647;
  765. this.columnСотрудник.MaxLength = 2147483647;
  766. }
  767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  769. public Consumables_soldRow NewConsumables_soldRow() {
  770. return ((Consumables_soldRow)(this.NewRow()));
  771. }
  772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  774. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  775. return new Consumables_soldRow(builder);
  776. }
  777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  779. protected override global::System.Type GetRowType() {
  780. return typeof(Consumables_soldRow);
  781. }
  782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  784. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  785. base.OnRowChanged(e);
  786. if ((this.Consumables_soldRowChanged != null)) {
  787. this.Consumables_soldRowChanged(this, new Consumables_soldRowChangeEvent(((Consumables_soldRow)(e.Row)), e.Action));
  788. }
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  792. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  793. base.OnRowChanging(e);
  794. if ((this.Consumables_soldRowChanging != null)) {
  795. this.Consumables_soldRowChanging(this, new Consumables_soldRowChangeEvent(((Consumables_soldRow)(e.Row)), e.Action));
  796. }
  797. }
  798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  800. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  801. base.OnRowDeleted(e);
  802. if ((this.Consumables_soldRowDeleted != null)) {
  803. this.Consumables_soldRowDeleted(this, new Consumables_soldRowChangeEvent(((Consumables_soldRow)(e.Row)), e.Action));
  804. }
  805. }
  806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  808. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  809. base.OnRowDeleting(e);
  810. if ((this.Consumables_soldRowDeleting != null)) {
  811. this.Consumables_soldRowDeleting(this, new Consumables_soldRowChangeEvent(((Consumables_soldRow)(e.Row)), e.Action));
  812. }
  813. }
  814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  816. public void RemoveConsumables_soldRow(Consumables_soldRow row) {
  817. this.Rows.Remove(row);
  818. }
  819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  821. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  822. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  823. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  824. GushchinaDataSet1 ds = new GushchinaDataSet1();
  825. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  826. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  827. any1.MinOccurs = new decimal(0);
  828. any1.MaxOccurs = decimal.MaxValue;
  829. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  830. sequence.Items.Add(any1);
  831. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  832. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  833. any2.MinOccurs = new decimal(1);
  834. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  835. sequence.Items.Add(any2);
  836. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  837. attribute1.Name = "namespace";
  838. attribute1.FixedValue = ds.Namespace;
  839. type.Attributes.Add(attribute1);
  840. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  841. attribute2.Name = "tableTypeName";
  842. attribute2.FixedValue = "Consumables_soldDataTable";
  843. type.Attributes.Add(attribute2);
  844. type.Particle = sequence;
  845. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  846. if (xs.Contains(dsSchema.TargetNamespace)) {
  847. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  848. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  849. try {
  850. global::System.Xml.Schema.XmlSchema schema = null;
  851. dsSchema.Write(s1);
  852. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  853. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  854. s2.SetLength(0);
  855. schema.Write(s2);
  856. if ((s1.Length == s2.Length)) {
  857. s1.Position = 0;
  858. s2.Position = 0;
  859. for (; ((s1.Position != s1.Length)
  860. && (s1.ReadByte() == s2.ReadByte())); ) {
  861. ;
  862. }
  863. if ((s1.Position == s1.Length)) {
  864. return type;
  865. }
  866. }
  867. }
  868. }
  869. finally {
  870. if ((s1 != null)) {
  871. s1.Close();
  872. }
  873. if ((s2 != null)) {
  874. s2.Close();
  875. }
  876. }
  877. }
  878. xs.Add(dsSchema);
  879. return type;
  880. }
  881. }
  882. /// <summary>
  883. ///Represents the strongly named DataTable class.
  884. ///</summary>
  885. [global::System.Serializable()]
  886. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  887. public partial class DeliveriesDataTable : global::System.Data.TypedTableBase<DeliveriesRow> {
  888. private global::System.Data.DataColumn columnАртикул;
  889. private global::System.Data.DataColumn columnНаименование;
  890. private global::System.Data.DataColumn columnЦена;
  891. private global::System.Data.DataColumn columnДата;
  892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  894. public DeliveriesDataTable() {
  895. this.TableName = "Deliveries";
  896. this.BeginInit();
  897. this.InitClass();
  898. this.EndInit();
  899. }
  900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  902. internal DeliveriesDataTable(global::System.Data.DataTable table) {
  903. this.TableName = table.TableName;
  904. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  905. this.CaseSensitive = table.CaseSensitive;
  906. }
  907. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  908. this.Locale = table.Locale;
  909. }
  910. if ((table.Namespace != table.DataSet.Namespace)) {
  911. this.Namespace = table.Namespace;
  912. }
  913. this.Prefix = table.Prefix;
  914. this.MinimumCapacity = table.MinimumCapacity;
  915. }
  916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  918. protected DeliveriesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  919. base(info, context) {
  920. this.InitVars();
  921. }
  922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  924. public global::System.Data.DataColumn АртикулColumn {
  925. get {
  926. return this.columnАртикул;
  927. }
  928. }
  929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  931. public global::System.Data.DataColumn НаименованиеColumn {
  932. get {
  933. return this.columnНаименование;
  934. }
  935. }
  936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  938. public global::System.Data.DataColumn ЦенаColumn {
  939. get {
  940. return this.columnЦена;
  941. }
  942. }
  943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  945. public global::System.Data.DataColumn ДатаColumn {
  946. get {
  947. return this.columnДата;
  948. }
  949. }
  950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  952. [global::System.ComponentModel.Browsable(false)]
  953. public int Count {
  954. get {
  955. return this.Rows.Count;
  956. }
  957. }
  958. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  960. public DeliveriesRow this[int index] {
  961. get {
  962. return ((DeliveriesRow)(this.Rows[index]));
  963. }
  964. }
  965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  966. public event DeliveriesRowChangeEventHandler DeliveriesRowChanging;
  967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  968. public event DeliveriesRowChangeEventHandler DeliveriesRowChanged;
  969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  970. public event DeliveriesRowChangeEventHandler DeliveriesRowDeleting;
  971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  972. public event DeliveriesRowChangeEventHandler DeliveriesRowDeleted;
  973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  975. public void AddDeliveriesRow(DeliveriesRow row) {
  976. this.Rows.Add(row);
  977. }
  978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  980. public DeliveriesRow AddDeliveriesRow(ListRow parentListRowByFK_Deliveries_List, string Наименование, decimal Цена, System.DateTime Дата) {
  981. DeliveriesRow rowDeliveriesRow = ((DeliveriesRow)(this.NewRow()));
  982. object[] columnValuesArray = new object[] {
  983. null,
  984. Наименование,
  985. Цена,
  986. Дата};
  987. if ((parentListRowByFK_Deliveries_List != null)) {
  988. columnValuesArray[0] = parentListRowByFK_Deliveries_List[0];
  989. }
  990. rowDeliveriesRow.ItemArray = columnValuesArray;
  991. this.Rows.Add(rowDeliveriesRow);
  992. return rowDeliveriesRow;
  993. }
  994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  996. public override global::System.Data.DataTable Clone() {
  997. DeliveriesDataTable cln = ((DeliveriesDataTable)(base.Clone()));
  998. cln.InitVars();
  999. return cln;
  1000. }
  1001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1003. protected override global::System.Data.DataTable CreateInstance() {
  1004. return new DeliveriesDataTable();
  1005. }
  1006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1008. internal void InitVars() {
  1009. this.columnАртикул = base.Columns["Артикул"];
  1010. this.columnНаименование = base.Columns["Наименование"];
  1011. this.columnЦена = base.Columns["Цена"];
  1012. this.columnДата = base.Columns["Дата"];
  1013. }
  1014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1016. private void InitClass() {
  1017. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  1018. base.Columns.Add(this.columnАртикул);
  1019. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  1020. base.Columns.Add(this.columnНаименование);
  1021. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  1022. base.Columns.Add(this.columnЦена);
  1023. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1024. base.Columns.Add(this.columnДата);
  1025. this.columnАртикул.AllowDBNull = false;
  1026. this.columnАртикул.MaxLength = 450;
  1027. this.columnНаименование.MaxLength = 2147483647;
  1028. }
  1029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1031. public DeliveriesRow NewDeliveriesRow() {
  1032. return ((DeliveriesRow)(this.NewRow()));
  1033. }
  1034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1036. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1037. return new DeliveriesRow(builder);
  1038. }
  1039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1041. protected override global::System.Type GetRowType() {
  1042. return typeof(DeliveriesRow);
  1043. }
  1044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1046. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1047. base.OnRowChanged(e);
  1048. if ((this.DeliveriesRowChanged != null)) {
  1049. this.DeliveriesRowChanged(this, new DeliveriesRowChangeEvent(((DeliveriesRow)(e.Row)), e.Action));
  1050. }
  1051. }
  1052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1054. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1055. base.OnRowChanging(e);
  1056. if ((this.DeliveriesRowChanging != null)) {
  1057. this.DeliveriesRowChanging(this, new DeliveriesRowChangeEvent(((DeliveriesRow)(e.Row)), e.Action));
  1058. }
  1059. }
  1060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1062. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1063. base.OnRowDeleted(e);
  1064. if ((this.DeliveriesRowDeleted != null)) {
  1065. this.DeliveriesRowDeleted(this, new DeliveriesRowChangeEvent(((DeliveriesRow)(e.Row)), e.Action));
  1066. }
  1067. }
  1068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1070. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1071. base.OnRowDeleting(e);
  1072. if ((this.DeliveriesRowDeleting != null)) {
  1073. this.DeliveriesRowDeleting(this, new DeliveriesRowChangeEvent(((DeliveriesRow)(e.Row)), e.Action));
  1074. }
  1075. }
  1076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1078. public void RemoveDeliveriesRow(DeliveriesRow row) {
  1079. this.Rows.Remove(row);
  1080. }
  1081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1083. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1084. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1085. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1086. GushchinaDataSet1 ds = new GushchinaDataSet1();
  1087. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1088. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1089. any1.MinOccurs = new decimal(0);
  1090. any1.MaxOccurs = decimal.MaxValue;
  1091. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1092. sequence.Items.Add(any1);
  1093. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1094. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1095. any2.MinOccurs = new decimal(1);
  1096. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1097. sequence.Items.Add(any2);
  1098. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1099. attribute1.Name = "namespace";
  1100. attribute1.FixedValue = ds.Namespace;
  1101. type.Attributes.Add(attribute1);
  1102. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1103. attribute2.Name = "tableTypeName";
  1104. attribute2.FixedValue = "DeliveriesDataTable";
  1105. type.Attributes.Add(attribute2);
  1106. type.Particle = sequence;
  1107. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1108. if (xs.Contains(dsSchema.TargetNamespace)) {
  1109. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1110. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1111. try {
  1112. global::System.Xml.Schema.XmlSchema schema = null;
  1113. dsSchema.Write(s1);
  1114. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1115. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1116. s2.SetLength(0);
  1117. schema.Write(s2);
  1118. if ((s1.Length == s2.Length)) {
  1119. s1.Position = 0;
  1120. s2.Position = 0;
  1121. for (; ((s1.Position != s1.Length)
  1122. && (s1.ReadByte() == s2.ReadByte())); ) {
  1123. ;
  1124. }
  1125. if ((s1.Position == s1.Length)) {
  1126. return type;
  1127. }
  1128. }
  1129. }
  1130. }
  1131. finally {
  1132. if ((s1 != null)) {
  1133. s1.Close();
  1134. }
  1135. if ((s2 != null)) {
  1136. s2.Close();
  1137. }
  1138. }
  1139. }
  1140. xs.Add(dsSchema);
  1141. return type;
  1142. }
  1143. }
  1144. /// <summary>
  1145. ///Represents the strongly named DataTable class.
  1146. ///</summary>
  1147. [global::System.Serializable()]
  1148. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1149. public partial class ListDataTable : global::System.Data.TypedTableBase<ListRow> {
  1150. private global::System.Data.DataColumn columnАртикул;
  1151. private global::System.Data.DataColumn columnНаименование;
  1152. private global::System.Data.DataColumn columnЦена;
  1153. private global::System.Data.DataColumn columnКоличество;
  1154. private global::System.Data.DataColumn columnМесто_хранения;
  1155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1157. public ListDataTable() {
  1158. this.TableName = "List";
  1159. this.BeginInit();
  1160. this.InitClass();
  1161. this.EndInit();
  1162. }
  1163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1165. internal ListDataTable(global::System.Data.DataTable table) {
  1166. this.TableName = table.TableName;
  1167. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1168. this.CaseSensitive = table.CaseSensitive;
  1169. }
  1170. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1171. this.Locale = table.Locale;
  1172. }
  1173. if ((table.Namespace != table.DataSet.Namespace)) {
  1174. this.Namespace = table.Namespace;
  1175. }
  1176. this.Prefix = table.Prefix;
  1177. this.MinimumCapacity = table.MinimumCapacity;
  1178. }
  1179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1181. protected ListDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1182. base(info, context) {
  1183. this.InitVars();
  1184. }
  1185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1187. public global::System.Data.DataColumn АртикулColumn {
  1188. get {
  1189. return this.columnАртикул;
  1190. }
  1191. }
  1192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1194. public global::System.Data.DataColumn НаименованиеColumn {
  1195. get {
  1196. return this.columnНаименование;
  1197. }
  1198. }
  1199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1201. public global::System.Data.DataColumn ЦенаColumn {
  1202. get {
  1203. return this.columnЦена;
  1204. }
  1205. }
  1206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1208. public global::System.Data.DataColumn КоличествоColumn {
  1209. get {
  1210. return this.columnКоличество;
  1211. }
  1212. }
  1213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1215. public global::System.Data.DataColumn Место_храненияColumn {
  1216. get {
  1217. return this.columnМесто_хранения;
  1218. }
  1219. }
  1220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1222. [global::System.ComponentModel.Browsable(false)]
  1223. public int Count {
  1224. get {
  1225. return this.Rows.Count;
  1226. }
  1227. }
  1228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1230. public ListRow this[int index] {
  1231. get {
  1232. return ((ListRow)(this.Rows[index]));
  1233. }
  1234. }
  1235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1236. public event ListRowChangeEventHandler ListRowChanging;
  1237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1238. public event ListRowChangeEventHandler ListRowChanged;
  1239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1240. public event ListRowChangeEventHandler ListRowDeleting;
  1241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1242. public event ListRowChangeEventHandler ListRowDeleted;
  1243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1245. public void AddListRow(ListRow row) {
  1246. this.Rows.Add(row);
  1247. }
  1248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1250. public ListRow AddListRow(string Артикул, string Наименование, decimal Цена, int Количество, string Место_хранения) {
  1251. ListRow rowListRow = ((ListRow)(this.NewRow()));
  1252. object[] columnValuesArray = new object[] {
  1253. Артикул,
  1254. Наименование,
  1255. Цена,
  1256. Количество,
  1257. Место_хранения};
  1258. rowListRow.ItemArray = columnValuesArray;
  1259. this.Rows.Add(rowListRow);
  1260. return rowListRow;
  1261. }
  1262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1264. public ListRow FindByАртикул(string Артикул) {
  1265. return ((ListRow)(this.Rows.Find(new object[] {
  1266. Артикул})));
  1267. }
  1268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1270. public override global::System.Data.DataTable Clone() {
  1271. ListDataTable cln = ((ListDataTable)(base.Clone()));
  1272. cln.InitVars();
  1273. return cln;
  1274. }
  1275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1277. protected override global::System.Data.DataTable CreateInstance() {
  1278. return new ListDataTable();
  1279. }
  1280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1282. internal void InitVars() {
  1283. this.columnАртикул = base.Columns["Артикул"];
  1284. this.columnНаименование = base.Columns["Наименование"];
  1285. this.columnЦена = base.Columns["Цена"];
  1286. this.columnКоличество = base.Columns["Количество"];
  1287. this.columnМесто_хранения = base.Columns["Место_хранения"];
  1288. }
  1289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1291. private void InitClass() {
  1292. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  1293. base.Columns.Add(this.columnАртикул);
  1294. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  1295. base.Columns.Add(this.columnНаименование);
  1296. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  1297. base.Columns.Add(this.columnЦена);
  1298. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  1299. base.Columns.Add(this.columnКоличество);
  1300. this.columnМесто_хранения = new global::System.Data.DataColumn("Место_хранения", typeof(string), null, global::System.Data.MappingType.Element);
  1301. base.Columns.Add(this.columnМесто_хранения);
  1302. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1303. this.columnАртикул}, true));
  1304. this.columnАртикул.AllowDBNull = false;
  1305. this.columnАртикул.Unique = true;
  1306. this.columnАртикул.MaxLength = 450;
  1307. this.columnНаименование.MaxLength = 2147483647;
  1308. this.columnМесто_хранения.MaxLength = 70;
  1309. }
  1310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1312. public ListRow NewListRow() {
  1313. return ((ListRow)(this.NewRow()));
  1314. }
  1315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1317. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1318. return new ListRow(builder);
  1319. }
  1320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1322. protected override global::System.Type GetRowType() {
  1323. return typeof(ListRow);
  1324. }
  1325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1327. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1328. base.OnRowChanged(e);
  1329. if ((this.ListRowChanged != null)) {
  1330. this.ListRowChanged(this, new ListRowChangeEvent(((ListRow)(e.Row)), e.Action));
  1331. }
  1332. }
  1333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1335. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1336. base.OnRowChanging(e);
  1337. if ((this.ListRowChanging != null)) {
  1338. this.ListRowChanging(this, new ListRowChangeEvent(((ListRow)(e.Row)), e.Action));
  1339. }
  1340. }
  1341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1343. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1344. base.OnRowDeleted(e);
  1345. if ((this.ListRowDeleted != null)) {
  1346. this.ListRowDeleted(this, new ListRowChangeEvent(((ListRow)(e.Row)), e.Action));
  1347. }
  1348. }
  1349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1351. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1352. base.OnRowDeleting(e);
  1353. if ((this.ListRowDeleting != null)) {
  1354. this.ListRowDeleting(this, new ListRowChangeEvent(((ListRow)(e.Row)), e.Action));
  1355. }
  1356. }
  1357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1359. public void RemoveListRow(ListRow row) {
  1360. this.Rows.Remove(row);
  1361. }
  1362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1364. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1365. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1366. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1367. GushchinaDataSet1 ds = new GushchinaDataSet1();
  1368. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1369. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1370. any1.MinOccurs = new decimal(0);
  1371. any1.MaxOccurs = decimal.MaxValue;
  1372. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1373. sequence.Items.Add(any1);
  1374. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1375. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1376. any2.MinOccurs = new decimal(1);
  1377. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1378. sequence.Items.Add(any2);
  1379. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1380. attribute1.Name = "namespace";
  1381. attribute1.FixedValue = ds.Namespace;
  1382. type.Attributes.Add(attribute1);
  1383. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1384. attribute2.Name = "tableTypeName";
  1385. attribute2.FixedValue = "ListDataTable";
  1386. type.Attributes.Add(attribute2);
  1387. type.Particle = sequence;
  1388. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1389. if (xs.Contains(dsSchema.TargetNamespace)) {
  1390. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1391. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1392. try {
  1393. global::System.Xml.Schema.XmlSchema schema = null;
  1394. dsSchema.Write(s1);
  1395. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1396. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1397. s2.SetLength(0);
  1398. schema.Write(s2);
  1399. if ((s1.Length == s2.Length)) {
  1400. s1.Position = 0;
  1401. s2.Position = 0;
  1402. for (; ((s1.Position != s1.Length)
  1403. && (s1.ReadByte() == s2.ReadByte())); ) {
  1404. ;
  1405. }
  1406. if ((s1.Position == s1.Length)) {
  1407. return type;
  1408. }
  1409. }
  1410. }
  1411. }
  1412. finally {
  1413. if ((s1 != null)) {
  1414. s1.Close();
  1415. }
  1416. if ((s2 != null)) {
  1417. s2.Close();
  1418. }
  1419. }
  1420. }
  1421. xs.Add(dsSchema);
  1422. return type;
  1423. }
  1424. }
  1425. /// <summary>
  1426. ///Represents the strongly named DataTable class.
  1427. ///</summary>
  1428. [global::System.Serializable()]
  1429. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1430. public partial class PurchaseDataTable : global::System.Data.TypedTableBase<PurchaseRow> {
  1431. private global::System.Data.DataColumn columnАртикул;
  1432. private global::System.Data.DataColumn columnНаименование;
  1433. private global::System.Data.DataColumn columnЦена;
  1434. private global::System.Data.DataColumn _columnПринудительное_перемешение__Да_Нет_;
  1435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1437. public PurchaseDataTable() {
  1438. this.TableName = "Purchase";
  1439. this.BeginInit();
  1440. this.InitClass();
  1441. this.EndInit();
  1442. }
  1443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1445. internal PurchaseDataTable(global::System.Data.DataTable table) {
  1446. this.TableName = table.TableName;
  1447. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1448. this.CaseSensitive = table.CaseSensitive;
  1449. }
  1450. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1451. this.Locale = table.Locale;
  1452. }
  1453. if ((table.Namespace != table.DataSet.Namespace)) {
  1454. this.Namespace = table.Namespace;
  1455. }
  1456. this.Prefix = table.Prefix;
  1457. this.MinimumCapacity = table.MinimumCapacity;
  1458. }
  1459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1461. protected PurchaseDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1462. base(info, context) {
  1463. this.InitVars();
  1464. }
  1465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1467. public global::System.Data.DataColumn АртикулColumn {
  1468. get {
  1469. return this.columnАртикул;
  1470. }
  1471. }
  1472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1474. public global::System.Data.DataColumn НаименованиеColumn {
  1475. get {
  1476. return this.columnНаименование;
  1477. }
  1478. }
  1479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1481. public global::System.Data.DataColumn ЦенаColumn {
  1482. get {
  1483. return this.columnЦена;
  1484. }
  1485. }
  1486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1488. public global::System.Data.DataColumn _Принудительное_перемешение__Да_Нет_Column {
  1489. get {
  1490. return this._columnПринудительное_перемешение__Да_Нет_;
  1491. }
  1492. }
  1493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1495. [global::System.ComponentModel.Browsable(false)]
  1496. public int Count {
  1497. get {
  1498. return this.Rows.Count;
  1499. }
  1500. }
  1501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1503. public PurchaseRow this[int index] {
  1504. get {
  1505. return ((PurchaseRow)(this.Rows[index]));
  1506. }
  1507. }
  1508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1509. public event PurchaseRowChangeEventHandler PurchaseRowChanging;
  1510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1511. public event PurchaseRowChangeEventHandler PurchaseRowChanged;
  1512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1513. public event PurchaseRowChangeEventHandler PurchaseRowDeleting;
  1514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1515. public event PurchaseRowChangeEventHandler PurchaseRowDeleted;
  1516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1518. public void AddPurchaseRow(PurchaseRow row) {
  1519. this.Rows.Add(row);
  1520. }
  1521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1523. public PurchaseRow AddPurchaseRow(string Артикул, string Наименование, decimal Цена, string _Принудительное_перемешение__Да_Нет_) {
  1524. PurchaseRow rowPurchaseRow = ((PurchaseRow)(this.NewRow()));
  1525. object[] columnValuesArray = new object[] {
  1526. Артикул,
  1527. Наименование,
  1528. Цена,
  1529. _Принудительное_перемешение__Да_Нет_};
  1530. rowPurchaseRow.ItemArray = columnValuesArray;
  1531. this.Rows.Add(rowPurchaseRow);
  1532. return rowPurchaseRow;
  1533. }
  1534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1536. public PurchaseRow FindByАртикул(string Артикул) {
  1537. return ((PurchaseRow)(this.Rows.Find(new object[] {
  1538. Артикул})));
  1539. }
  1540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1542. public override global::System.Data.DataTable Clone() {
  1543. PurchaseDataTable cln = ((PurchaseDataTable)(base.Clone()));
  1544. cln.InitVars();
  1545. return cln;
  1546. }
  1547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1549. protected override global::System.Data.DataTable CreateInstance() {
  1550. return new PurchaseDataTable();
  1551. }
  1552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1554. internal void InitVars() {
  1555. this.columnАртикул = base.Columns["Артикул"];
  1556. this.columnНаименование = base.Columns["Наименование"];
  1557. this.columnЦена = base.Columns["Цена"];
  1558. this._columnПринудительное_перемешение__Да_Нет_ = base.Columns["Принудительное перемешение (Да/Нет)"];
  1559. }
  1560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1562. private void InitClass() {
  1563. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  1564. base.Columns.Add(this.columnАртикул);
  1565. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  1566. base.Columns.Add(this.columnНаименование);
  1567. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  1568. base.Columns.Add(this.columnЦена);
  1569. this._columnПринудительное_перемешение__Да_Нет_ = new global::System.Data.DataColumn("Принудительное перемешение (Да/Нет)", typeof(string), null, global::System.Data.MappingType.Element);
  1570. this._columnПринудительное_перемешение__Да_Нет_.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnПринудительное_перемешение__Да_Нет_");
  1571. this._columnПринудительное_перемешение__Да_Нет_.ExtendedProperties.Add("Generator_UserColumnName", "Принудительное перемешение (Да/Нет)");
  1572. base.Columns.Add(this._columnПринудительное_перемешение__Да_Нет_);
  1573. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1574. this.columnАртикул}, true));
  1575. this.columnАртикул.AllowDBNull = false;
  1576. this.columnАртикул.Unique = true;
  1577. this.columnАртикул.MaxLength = 450;
  1578. this.columnНаименование.MaxLength = 2147483647;
  1579. this._columnПринудительное_перемешение__Да_Нет_.MaxLength = 3;
  1580. }
  1581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1583. public PurchaseRow NewPurchaseRow() {
  1584. return ((PurchaseRow)(this.NewRow()));
  1585. }
  1586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1588. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1589. return new PurchaseRow(builder);
  1590. }
  1591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1593. protected override global::System.Type GetRowType() {
  1594. return typeof(PurchaseRow);
  1595. }
  1596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1598. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1599. base.OnRowChanged(e);
  1600. if ((this.PurchaseRowChanged != null)) {
  1601. this.PurchaseRowChanged(this, new PurchaseRowChangeEvent(((PurchaseRow)(e.Row)), e.Action));
  1602. }
  1603. }
  1604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1606. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1607. base.OnRowChanging(e);
  1608. if ((this.PurchaseRowChanging != null)) {
  1609. this.PurchaseRowChanging(this, new PurchaseRowChangeEvent(((PurchaseRow)(e.Row)), e.Action));
  1610. }
  1611. }
  1612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1614. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1615. base.OnRowDeleted(e);
  1616. if ((this.PurchaseRowDeleted != null)) {
  1617. this.PurchaseRowDeleted(this, new PurchaseRowChangeEvent(((PurchaseRow)(e.Row)), e.Action));
  1618. }
  1619. }
  1620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1622. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1623. base.OnRowDeleting(e);
  1624. if ((this.PurchaseRowDeleting != null)) {
  1625. this.PurchaseRowDeleting(this, new PurchaseRowChangeEvent(((PurchaseRow)(e.Row)), e.Action));
  1626. }
  1627. }
  1628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1630. public void RemovePurchaseRow(PurchaseRow row) {
  1631. this.Rows.Remove(row);
  1632. }
  1633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1635. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1636. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1637. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1638. GushchinaDataSet1 ds = new GushchinaDataSet1();
  1639. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1640. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1641. any1.MinOccurs = new decimal(0);
  1642. any1.MaxOccurs = decimal.MaxValue;
  1643. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1644. sequence.Items.Add(any1);
  1645. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1646. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1647. any2.MinOccurs = new decimal(1);
  1648. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1649. sequence.Items.Add(any2);
  1650. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1651. attribute1.Name = "namespace";
  1652. attribute1.FixedValue = ds.Namespace;
  1653. type.Attributes.Add(attribute1);
  1654. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1655. attribute2.Name = "tableTypeName";
  1656. attribute2.FixedValue = "PurchaseDataTable";
  1657. type.Attributes.Add(attribute2);
  1658. type.Particle = sequence;
  1659. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1660. if (xs.Contains(dsSchema.TargetNamespace)) {
  1661. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1662. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1663. try {
  1664. global::System.Xml.Schema.XmlSchema schema = null;
  1665. dsSchema.Write(s1);
  1666. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1667. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1668. s2.SetLength(0);
  1669. schema.Write(s2);
  1670. if ((s1.Length == s2.Length)) {
  1671. s1.Position = 0;
  1672. s2.Position = 0;
  1673. for (; ((s1.Position != s1.Length)
  1674. && (s1.ReadByte() == s2.ReadByte())); ) {
  1675. ;
  1676. }
  1677. if ((s1.Position == s1.Length)) {
  1678. return type;
  1679. }
  1680. }
  1681. }
  1682. }
  1683. finally {
  1684. if ((s1 != null)) {
  1685. s1.Close();
  1686. }
  1687. if ((s2 != null)) {
  1688. s2.Close();
  1689. }
  1690. }
  1691. }
  1692. xs.Add(dsSchema);
  1693. return type;
  1694. }
  1695. }
  1696. /// <summary>
  1697. ///Represents the strongly named DataTable class.
  1698. ///</summary>
  1699. [global::System.Serializable()]
  1700. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1701. public partial class Used_consumablesDataTable : global::System.Data.TypedTableBase<Used_consumablesRow> {
  1702. private global::System.Data.DataColumn columnАртикул;
  1703. private global::System.Data.DataColumn columnНаименование;
  1704. private global::System.Data.DataColumn columnЦена;
  1705. private global::System.Data.DataColumn columnКоличество;
  1706. private global::System.Data.DataColumn columnДата;
  1707. private global::System.Data.DataColumn columnСотрудник;
  1708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1710. public Used_consumablesDataTable() {
  1711. this.TableName = "Used_consumables";
  1712. this.BeginInit();
  1713. this.InitClass();
  1714. this.EndInit();
  1715. }
  1716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1718. internal Used_consumablesDataTable(global::System.Data.DataTable table) {
  1719. this.TableName = table.TableName;
  1720. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1721. this.CaseSensitive = table.CaseSensitive;
  1722. }
  1723. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1724. this.Locale = table.Locale;
  1725. }
  1726. if ((table.Namespace != table.DataSet.Namespace)) {
  1727. this.Namespace = table.Namespace;
  1728. }
  1729. this.Prefix = table.Prefix;
  1730. this.MinimumCapacity = table.MinimumCapacity;
  1731. }
  1732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1734. protected Used_consumablesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1735. base(info, context) {
  1736. this.InitVars();
  1737. }
  1738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1740. public global::System.Data.DataColumn АртикулColumn {
  1741. get {
  1742. return this.columnАртикул;
  1743. }
  1744. }
  1745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1747. public global::System.Data.DataColumn НаименованиеColumn {
  1748. get {
  1749. return this.columnНаименование;
  1750. }
  1751. }
  1752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1754. public global::System.Data.DataColumn ЦенаColumn {
  1755. get {
  1756. return this.columnЦена;
  1757. }
  1758. }
  1759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1761. public global::System.Data.DataColumn КоличествоColumn {
  1762. get {
  1763. return this.columnКоличество;
  1764. }
  1765. }
  1766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1768. public global::System.Data.DataColumn ДатаColumn {
  1769. get {
  1770. return this.columnДата;
  1771. }
  1772. }
  1773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1775. public global::System.Data.DataColumn СотрудникColumn {
  1776. get {
  1777. return this.columnСотрудник;
  1778. }
  1779. }
  1780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1782. [global::System.ComponentModel.Browsable(false)]
  1783. public int Count {
  1784. get {
  1785. return this.Rows.Count;
  1786. }
  1787. }
  1788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1790. public Used_consumablesRow this[int index] {
  1791. get {
  1792. return ((Used_consumablesRow)(this.Rows[index]));
  1793. }
  1794. }
  1795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1796. public event Used_consumablesRowChangeEventHandler Used_consumablesRowChanging;
  1797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1798. public event Used_consumablesRowChangeEventHandler Used_consumablesRowChanged;
  1799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1800. public event Used_consumablesRowChangeEventHandler Used_consumablesRowDeleting;
  1801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1802. public event Used_consumablesRowChangeEventHandler Used_consumablesRowDeleted;
  1803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1805. public void AddUsed_consumablesRow(Used_consumablesRow row) {
  1806. this.Rows.Add(row);
  1807. }
  1808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1810. public Used_consumablesRow AddUsed_consumablesRow(WarehouseRow parentWarehouseRowByFK_Used_consumables_Warehouse, string Наименование, decimal Цена, int Количество, System.DateTime Дата, string Сотрудник) {
  1811. Used_consumablesRow rowUsed_consumablesRow = ((Used_consumablesRow)(this.NewRow()));
  1812. object[] columnValuesArray = new object[] {
  1813. null,
  1814. Наименование,
  1815. Цена,
  1816. Количество,
  1817. Дата,
  1818. Сотрудник};
  1819. if ((parentWarehouseRowByFK_Used_consumables_Warehouse != null)) {
  1820. columnValuesArray[0] = parentWarehouseRowByFK_Used_consumables_Warehouse[0];
  1821. }
  1822. rowUsed_consumablesRow.ItemArray = columnValuesArray;
  1823. this.Rows.Add(rowUsed_consumablesRow);
  1824. return rowUsed_consumablesRow;
  1825. }
  1826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1828. public override global::System.Data.DataTable Clone() {
  1829. Used_consumablesDataTable cln = ((Used_consumablesDataTable)(base.Clone()));
  1830. cln.InitVars();
  1831. return cln;
  1832. }
  1833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1835. protected override global::System.Data.DataTable CreateInstance() {
  1836. return new Used_consumablesDataTable();
  1837. }
  1838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1840. internal void InitVars() {
  1841. this.columnАртикул = base.Columns["Артикул"];
  1842. this.columnНаименование = base.Columns["Наименование"];
  1843. this.columnЦена = base.Columns["Цена"];
  1844. this.columnКоличество = base.Columns["Количество"];
  1845. this.columnДата = base.Columns["Дата"];
  1846. this.columnСотрудник = base.Columns["Сотрудник"];
  1847. }
  1848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1850. private void InitClass() {
  1851. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  1852. base.Columns.Add(this.columnАртикул);
  1853. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  1854. base.Columns.Add(this.columnНаименование);
  1855. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  1856. base.Columns.Add(this.columnЦена);
  1857. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  1858. base.Columns.Add(this.columnКоличество);
  1859. this.columnДата = new global::System.Data.DataColumn("Дата", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1860. base.Columns.Add(this.columnДата);
  1861. this.columnСотрудник = new global::System.Data.DataColumn("Сотрудник", typeof(string), null, global::System.Data.MappingType.Element);
  1862. base.Columns.Add(this.columnСотрудник);
  1863. this.columnАртикул.AllowDBNull = false;
  1864. this.columnАртикул.MaxLength = 450;
  1865. this.columnНаименование.MaxLength = 2147483647;
  1866. this.columnСотрудник.MaxLength = 2147483647;
  1867. }
  1868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1870. public Used_consumablesRow NewUsed_consumablesRow() {
  1871. return ((Used_consumablesRow)(this.NewRow()));
  1872. }
  1873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1875. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1876. return new Used_consumablesRow(builder);
  1877. }
  1878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1880. protected override global::System.Type GetRowType() {
  1881. return typeof(Used_consumablesRow);
  1882. }
  1883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1885. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1886. base.OnRowChanged(e);
  1887. if ((this.Used_consumablesRowChanged != null)) {
  1888. this.Used_consumablesRowChanged(this, new Used_consumablesRowChangeEvent(((Used_consumablesRow)(e.Row)), e.Action));
  1889. }
  1890. }
  1891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1893. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1894. base.OnRowChanging(e);
  1895. if ((this.Used_consumablesRowChanging != null)) {
  1896. this.Used_consumablesRowChanging(this, new Used_consumablesRowChangeEvent(((Used_consumablesRow)(e.Row)), e.Action));
  1897. }
  1898. }
  1899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1901. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1902. base.OnRowDeleted(e);
  1903. if ((this.Used_consumablesRowDeleted != null)) {
  1904. this.Used_consumablesRowDeleted(this, new Used_consumablesRowChangeEvent(((Used_consumablesRow)(e.Row)), e.Action));
  1905. }
  1906. }
  1907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1909. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1910. base.OnRowDeleting(e);
  1911. if ((this.Used_consumablesRowDeleting != null)) {
  1912. this.Used_consumablesRowDeleting(this, new Used_consumablesRowChangeEvent(((Used_consumablesRow)(e.Row)), e.Action));
  1913. }
  1914. }
  1915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1917. public void RemoveUsed_consumablesRow(Used_consumablesRow row) {
  1918. this.Rows.Remove(row);
  1919. }
  1920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1922. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1923. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1924. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1925. GushchinaDataSet1 ds = new GushchinaDataSet1();
  1926. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1927. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1928. any1.MinOccurs = new decimal(0);
  1929. any1.MaxOccurs = decimal.MaxValue;
  1930. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1931. sequence.Items.Add(any1);
  1932. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1933. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1934. any2.MinOccurs = new decimal(1);
  1935. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1936. sequence.Items.Add(any2);
  1937. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1938. attribute1.Name = "namespace";
  1939. attribute1.FixedValue = ds.Namespace;
  1940. type.Attributes.Add(attribute1);
  1941. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1942. attribute2.Name = "tableTypeName";
  1943. attribute2.FixedValue = "Used_consumablesDataTable";
  1944. type.Attributes.Add(attribute2);
  1945. type.Particle = sequence;
  1946. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1947. if (xs.Contains(dsSchema.TargetNamespace)) {
  1948. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1949. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1950. try {
  1951. global::System.Xml.Schema.XmlSchema schema = null;
  1952. dsSchema.Write(s1);
  1953. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1954. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1955. s2.SetLength(0);
  1956. schema.Write(s2);
  1957. if ((s1.Length == s2.Length)) {
  1958. s1.Position = 0;
  1959. s2.Position = 0;
  1960. for (; ((s1.Position != s1.Length)
  1961. && (s1.ReadByte() == s2.ReadByte())); ) {
  1962. ;
  1963. }
  1964. if ((s1.Position == s1.Length)) {
  1965. return type;
  1966. }
  1967. }
  1968. }
  1969. }
  1970. finally {
  1971. if ((s1 != null)) {
  1972. s1.Close();
  1973. }
  1974. if ((s2 != null)) {
  1975. s2.Close();
  1976. }
  1977. }
  1978. }
  1979. xs.Add(dsSchema);
  1980. return type;
  1981. }
  1982. }
  1983. /// <summary>
  1984. ///Represents the strongly named DataTable class.
  1985. ///</summary>
  1986. [global::System.Serializable()]
  1987. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1988. public partial class WarehouseDataTable : global::System.Data.TypedTableBase<WarehouseRow> {
  1989. private global::System.Data.DataColumn columnАртикул;
  1990. private global::System.Data.DataColumn columnНаименование;
  1991. private global::System.Data.DataColumn columnЦена;
  1992. private global::System.Data.DataColumn columnКоличество;
  1993. private global::System.Data.DataColumn _columnМесто_хранения__Склад_Витрина_;
  1994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1996. public WarehouseDataTable() {
  1997. this.TableName = "Warehouse";
  1998. this.BeginInit();
  1999. this.InitClass();
  2000. this.EndInit();
  2001. }
  2002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2004. internal WarehouseDataTable(global::System.Data.DataTable table) {
  2005. this.TableName = table.TableName;
  2006. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2007. this.CaseSensitive = table.CaseSensitive;
  2008. }
  2009. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2010. this.Locale = table.Locale;
  2011. }
  2012. if ((table.Namespace != table.DataSet.Namespace)) {
  2013. this.Namespace = table.Namespace;
  2014. }
  2015. this.Prefix = table.Prefix;
  2016. this.MinimumCapacity = table.MinimumCapacity;
  2017. }
  2018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2020. protected WarehouseDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2021. base(info, context) {
  2022. this.InitVars();
  2023. }
  2024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2026. public global::System.Data.DataColumn АртикулColumn {
  2027. get {
  2028. return this.columnАртикул;
  2029. }
  2030. }
  2031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2033. public global::System.Data.DataColumn НаименованиеColumn {
  2034. get {
  2035. return this.columnНаименование;
  2036. }
  2037. }
  2038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2040. public global::System.Data.DataColumn ЦенаColumn {
  2041. get {
  2042. return this.columnЦена;
  2043. }
  2044. }
  2045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2047. public global::System.Data.DataColumn КоличествоColumn {
  2048. get {
  2049. return this.columnКоличество;
  2050. }
  2051. }
  2052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2054. public global::System.Data.DataColumn _Место_хранения__Склад_Витрина_Column {
  2055. get {
  2056. return this._columnМесто_хранения__Склад_Витрина_;
  2057. }
  2058. }
  2059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2061. [global::System.ComponentModel.Browsable(false)]
  2062. public int Count {
  2063. get {
  2064. return this.Rows.Count;
  2065. }
  2066. }
  2067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2069. public WarehouseRow this[int index] {
  2070. get {
  2071. return ((WarehouseRow)(this.Rows[index]));
  2072. }
  2073. }
  2074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2075. public event WarehouseRowChangeEventHandler WarehouseRowChanging;
  2076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2077. public event WarehouseRowChangeEventHandler WarehouseRowChanged;
  2078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2079. public event WarehouseRowChangeEventHandler WarehouseRowDeleting;
  2080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2081. public event WarehouseRowChangeEventHandler WarehouseRowDeleted;
  2082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2084. public void AddWarehouseRow(WarehouseRow row) {
  2085. this.Rows.Add(row);
  2086. }
  2087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2089. public WarehouseRow AddWarehouseRow(ListRow parentListRowByFK_Warehouse_List, string Наименование, decimal Цена, int Количество, string _Место_хранения__Склад_Витрина_) {
  2090. WarehouseRow rowWarehouseRow = ((WarehouseRow)(this.NewRow()));
  2091. object[] columnValuesArray = new object[] {
  2092. null,
  2093. Наименование,
  2094. Цена,
  2095. Количество,
  2096. _Место_хранения__Склад_Витрина_};
  2097. if ((parentListRowByFK_Warehouse_List != null)) {
  2098. columnValuesArray[0] = parentListRowByFK_Warehouse_List[0];
  2099. }
  2100. rowWarehouseRow.ItemArray = columnValuesArray;
  2101. this.Rows.Add(rowWarehouseRow);
  2102. return rowWarehouseRow;
  2103. }
  2104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2106. public WarehouseRow FindByАртикул(string Артикул) {
  2107. return ((WarehouseRow)(this.Rows.Find(new object[] {
  2108. Артикул})));
  2109. }
  2110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2112. public override global::System.Data.DataTable Clone() {
  2113. WarehouseDataTable cln = ((WarehouseDataTable)(base.Clone()));
  2114. cln.InitVars();
  2115. return cln;
  2116. }
  2117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2119. protected override global::System.Data.DataTable CreateInstance() {
  2120. return new WarehouseDataTable();
  2121. }
  2122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2124. internal void InitVars() {
  2125. this.columnАртикул = base.Columns["Артикул"];
  2126. this.columnНаименование = base.Columns["Наименование"];
  2127. this.columnЦена = base.Columns["Цена"];
  2128. this.columnКоличество = base.Columns["Количество"];
  2129. this._columnМесто_хранения__Склад_Витрина_ = base.Columns["Место хранения (Склад/Витрина)"];
  2130. }
  2131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2133. private void InitClass() {
  2134. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  2135. base.Columns.Add(this.columnАртикул);
  2136. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  2137. base.Columns.Add(this.columnНаименование);
  2138. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  2139. base.Columns.Add(this.columnЦена);
  2140. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  2141. base.Columns.Add(this.columnКоличество);
  2142. this._columnМесто_хранения__Склад_Витрина_ = new global::System.Data.DataColumn("Место хранения (Склад/Витрина)", typeof(string), null, global::System.Data.MappingType.Element);
  2143. this._columnМесто_хранения__Склад_Витрина_.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnМесто_хранения__Склад_Витрина_");
  2144. this._columnМесто_хранения__Склад_Витрина_.ExtendedProperties.Add("Generator_UserColumnName", "Место хранения (Склад/Витрина)");
  2145. base.Columns.Add(this._columnМесто_хранения__Склад_Витрина_);
  2146. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2147. this.columnАртикул}, true));
  2148. this.columnАртикул.AllowDBNull = false;
  2149. this.columnАртикул.Unique = true;
  2150. this.columnАртикул.MaxLength = 450;
  2151. this.columnНаименование.MaxLength = 2147483647;
  2152. this._columnМесто_хранения__Склад_Витрина_.MaxLength = 7;
  2153. }
  2154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2156. public WarehouseRow NewWarehouseRow() {
  2157. return ((WarehouseRow)(this.NewRow()));
  2158. }
  2159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2161. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2162. return new WarehouseRow(builder);
  2163. }
  2164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2166. protected override global::System.Type GetRowType() {
  2167. return typeof(WarehouseRow);
  2168. }
  2169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2171. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2172. base.OnRowChanged(e);
  2173. if ((this.WarehouseRowChanged != null)) {
  2174. this.WarehouseRowChanged(this, new WarehouseRowChangeEvent(((WarehouseRow)(e.Row)), e.Action));
  2175. }
  2176. }
  2177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2179. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2180. base.OnRowChanging(e);
  2181. if ((this.WarehouseRowChanging != null)) {
  2182. this.WarehouseRowChanging(this, new WarehouseRowChangeEvent(((WarehouseRow)(e.Row)), e.Action));
  2183. }
  2184. }
  2185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2187. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2188. base.OnRowDeleted(e);
  2189. if ((this.WarehouseRowDeleted != null)) {
  2190. this.WarehouseRowDeleted(this, new WarehouseRowChangeEvent(((WarehouseRow)(e.Row)), e.Action));
  2191. }
  2192. }
  2193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2195. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2196. base.OnRowDeleting(e);
  2197. if ((this.WarehouseRowDeleting != null)) {
  2198. this.WarehouseRowDeleting(this, new WarehouseRowChangeEvent(((WarehouseRow)(e.Row)), e.Action));
  2199. }
  2200. }
  2201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2203. public void RemoveWarehouseRow(WarehouseRow row) {
  2204. this.Rows.Remove(row);
  2205. }
  2206. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2208. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2209. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2210. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2211. GushchinaDataSet1 ds = new GushchinaDataSet1();
  2212. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2213. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2214. any1.MinOccurs = new decimal(0);
  2215. any1.MaxOccurs = decimal.MaxValue;
  2216. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2217. sequence.Items.Add(any1);
  2218. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2219. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2220. any2.MinOccurs = new decimal(1);
  2221. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2222. sequence.Items.Add(any2);
  2223. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2224. attribute1.Name = "namespace";
  2225. attribute1.FixedValue = ds.Namespace;
  2226. type.Attributes.Add(attribute1);
  2227. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2228. attribute2.Name = "tableTypeName";
  2229. attribute2.FixedValue = "WarehouseDataTable";
  2230. type.Attributes.Add(attribute2);
  2231. type.Particle = sequence;
  2232. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2233. if (xs.Contains(dsSchema.TargetNamespace)) {
  2234. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2235. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2236. try {
  2237. global::System.Xml.Schema.XmlSchema schema = null;
  2238. dsSchema.Write(s1);
  2239. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2240. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2241. s2.SetLength(0);
  2242. schema.Write(s2);
  2243. if ((s1.Length == s2.Length)) {
  2244. s1.Position = 0;
  2245. s2.Position = 0;
  2246. for (; ((s1.Position != s1.Length)
  2247. && (s1.ReadByte() == s2.ReadByte())); ) {
  2248. ;
  2249. }
  2250. if ((s1.Position == s1.Length)) {
  2251. return type;
  2252. }
  2253. }
  2254. }
  2255. }
  2256. finally {
  2257. if ((s1 != null)) {
  2258. s1.Close();
  2259. }
  2260. if ((s2 != null)) {
  2261. s2.Close();
  2262. }
  2263. }
  2264. }
  2265. xs.Add(dsSchema);
  2266. return type;
  2267. }
  2268. }
  2269. /// <summary>
  2270. ///Represents the strongly named DataTable class.
  2271. ///</summary>
  2272. [global::System.Serializable()]
  2273. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2274. public partial class Отображение_по_артиклуDataTable : global::System.Data.TypedTableBase<Отображение_по_артиклуRow> {
  2275. private global::System.Data.DataColumn columnАртикул;
  2276. private global::System.Data.DataColumn columnНаименование;
  2277. private global::System.Data.DataColumn columnЦена;
  2278. private global::System.Data.DataColumn columnКоличество;
  2279. private global::System.Data.DataColumn columnМесто_хранения;
  2280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2282. public Отображение_по_артиклуDataTable() {
  2283. this.TableName = "Отображение по артиклу";
  2284. this.BeginInit();
  2285. this.InitClass();
  2286. this.EndInit();
  2287. }
  2288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2290. internal Отображение_по_артиклуDataTable(global::System.Data.DataTable table) {
  2291. this.TableName = table.TableName;
  2292. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2293. this.CaseSensitive = table.CaseSensitive;
  2294. }
  2295. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2296. this.Locale = table.Locale;
  2297. }
  2298. if ((table.Namespace != table.DataSet.Namespace)) {
  2299. this.Namespace = table.Namespace;
  2300. }
  2301. this.Prefix = table.Prefix;
  2302. this.MinimumCapacity = table.MinimumCapacity;
  2303. }
  2304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2306. protected Отображение_по_артиклуDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2307. base(info, context) {
  2308. this.InitVars();
  2309. }
  2310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2312. public global::System.Data.DataColumn АртикулColumn {
  2313. get {
  2314. return this.columnАртикул;
  2315. }
  2316. }
  2317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2319. public global::System.Data.DataColumn НаименованиеColumn {
  2320. get {
  2321. return this.columnНаименование;
  2322. }
  2323. }
  2324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2326. public global::System.Data.DataColumn ЦенаColumn {
  2327. get {
  2328. return this.columnЦена;
  2329. }
  2330. }
  2331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2333. public global::System.Data.DataColumn КоличествоColumn {
  2334. get {
  2335. return this.columnКоличество;
  2336. }
  2337. }
  2338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2340. public global::System.Data.DataColumn Место_храненияColumn {
  2341. get {
  2342. return this.columnМесто_хранения;
  2343. }
  2344. }
  2345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2347. [global::System.ComponentModel.Browsable(false)]
  2348. public int Count {
  2349. get {
  2350. return this.Rows.Count;
  2351. }
  2352. }
  2353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2355. public Отображение_по_артиклуRow this[int index] {
  2356. get {
  2357. return ((Отображение_по_артиклуRow)(this.Rows[index]));
  2358. }
  2359. }
  2360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2361. public event Отображение_по_артиклуRowChangeEventHandler Отображение_по_артиклуRowChanging;
  2362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2363. public event Отображение_по_артиклуRowChangeEventHandler Отображение_по_артиклуRowChanged;
  2364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2365. public event Отображение_по_артиклуRowChangeEventHandler Отображение_по_артиклуRowDeleting;
  2366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2367. public event Отображение_по_артиклуRowChangeEventHandler Отображение_по_артиклуRowDeleted;
  2368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2370. public void AddОтображение_по_артиклуRow(Отображение_по_артиклуRow row) {
  2371. this.Rows.Add(row);
  2372. }
  2373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2375. public Отображение_по_артиклуRow AddОтображение_по_артиклуRow(string Артикул, string Наименование, decimal Цена, int Количество, string Место_хранения) {
  2376. Отображение_по_артиклуRow rowОтображение_по_артиклуRow = ((Отображение_по_артиклуRow)(this.NewRow()));
  2377. object[] columnValuesArray = new object[] {
  2378. Артикул,
  2379. Наименование,
  2380. Цена,
  2381. Количество,
  2382. Место_хранения};
  2383. rowОтображение_по_артиклуRow.ItemArray = columnValuesArray;
  2384. this.Rows.Add(rowОтображение_по_артиклуRow);
  2385. return rowОтображение_по_артиклуRow;
  2386. }
  2387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2389. public Отображение_по_артиклуRow FindByАртикул(string Артикул) {
  2390. return ((Отображение_по_артиклуRow)(this.Rows.Find(new object[] {
  2391. Артикул})));
  2392. }
  2393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2395. public override global::System.Data.DataTable Clone() {
  2396. Отображение_по_артиклуDataTable cln = ((Отображение_по_артиклуDataTable)(base.Clone()));
  2397. cln.InitVars();
  2398. return cln;
  2399. }
  2400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2402. protected override global::System.Data.DataTable CreateInstance() {
  2403. return new Отображение_по_артиклуDataTable();
  2404. }
  2405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2407. internal void InitVars() {
  2408. this.columnАртикул = base.Columns["Артикул"];
  2409. this.columnНаименование = base.Columns["Наименование"];
  2410. this.columnЦена = base.Columns["Цена"];
  2411. this.columnКоличество = base.Columns["Количество"];
  2412. this.columnМесто_хранения = base.Columns["Место_хранения"];
  2413. }
  2414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2416. private void InitClass() {
  2417. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  2418. base.Columns.Add(this.columnАртикул);
  2419. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  2420. base.Columns.Add(this.columnНаименование);
  2421. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  2422. base.Columns.Add(this.columnЦена);
  2423. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  2424. base.Columns.Add(this.columnКоличество);
  2425. this.columnМесто_хранения = new global::System.Data.DataColumn("Место_хранения", typeof(string), null, global::System.Data.MappingType.Element);
  2426. base.Columns.Add(this.columnМесто_хранения);
  2427. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2428. this.columnАртикул}, true));
  2429. this.columnАртикул.AllowDBNull = false;
  2430. this.columnАртикул.Unique = true;
  2431. this.columnАртикул.MaxLength = 450;
  2432. this.columnНаименование.MaxLength = 2147483647;
  2433. this.columnМесто_хранения.MaxLength = 70;
  2434. }
  2435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2437. public Отображение_по_артиклуRow NewОтображение_по_артиклуRow() {
  2438. return ((Отображение_по_артиклуRow)(this.NewRow()));
  2439. }
  2440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2442. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2443. return new Отображение_по_артиклуRow(builder);
  2444. }
  2445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2447. protected override global::System.Type GetRowType() {
  2448. return typeof(Отображение_по_артиклуRow);
  2449. }
  2450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2452. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2453. base.OnRowChanged(e);
  2454. if ((this.Отображение_по_артиклуRowChanged != null)) {
  2455. this.Отображение_по_артиклуRowChanged(this, new Отображение_по_артиклуRowChangeEvent(((Отображение_по_артиклуRow)(e.Row)), e.Action));
  2456. }
  2457. }
  2458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2460. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2461. base.OnRowChanging(e);
  2462. if ((this.Отображение_по_артиклуRowChanging != null)) {
  2463. this.Отображение_по_артиклуRowChanging(this, new Отображение_по_артиклуRowChangeEvent(((Отображение_по_артиклуRow)(e.Row)), e.Action));
  2464. }
  2465. }
  2466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2468. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2469. base.OnRowDeleted(e);
  2470. if ((this.Отображение_по_артиклуRowDeleted != null)) {
  2471. this.Отображение_по_артиклуRowDeleted(this, new Отображение_по_артиклуRowChangeEvent(((Отображение_по_артиклуRow)(e.Row)), e.Action));
  2472. }
  2473. }
  2474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2476. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2477. base.OnRowDeleting(e);
  2478. if ((this.Отображение_по_артиклуRowDeleting != null)) {
  2479. this.Отображение_по_артиклуRowDeleting(this, new Отображение_по_артиклуRowChangeEvent(((Отображение_по_артиклуRow)(e.Row)), e.Action));
  2480. }
  2481. }
  2482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2484. public void RemoveОтображение_по_артиклуRow(Отображение_по_артиклуRow row) {
  2485. this.Rows.Remove(row);
  2486. }
  2487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2489. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2490. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2491. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2492. GushchinaDataSet1 ds = new GushchinaDataSet1();
  2493. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2494. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2495. any1.MinOccurs = new decimal(0);
  2496. any1.MaxOccurs = decimal.MaxValue;
  2497. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2498. sequence.Items.Add(any1);
  2499. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2500. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2501. any2.MinOccurs = new decimal(1);
  2502. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2503. sequence.Items.Add(any2);
  2504. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2505. attribute1.Name = "namespace";
  2506. attribute1.FixedValue = ds.Namespace;
  2507. type.Attributes.Add(attribute1);
  2508. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2509. attribute2.Name = "tableTypeName";
  2510. attribute2.FixedValue = "Отображение_по_артиклуDataTable";
  2511. type.Attributes.Add(attribute2);
  2512. type.Particle = sequence;
  2513. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2514. if (xs.Contains(dsSchema.TargetNamespace)) {
  2515. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2516. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2517. try {
  2518. global::System.Xml.Schema.XmlSchema schema = null;
  2519. dsSchema.Write(s1);
  2520. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2521. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2522. s2.SetLength(0);
  2523. schema.Write(s2);
  2524. if ((s1.Length == s2.Length)) {
  2525. s1.Position = 0;
  2526. s2.Position = 0;
  2527. for (; ((s1.Position != s1.Length)
  2528. && (s1.ReadByte() == s2.ReadByte())); ) {
  2529. ;
  2530. }
  2531. if ((s1.Position == s1.Length)) {
  2532. return type;
  2533. }
  2534. }
  2535. }
  2536. }
  2537. finally {
  2538. if ((s1 != null)) {
  2539. s1.Close();
  2540. }
  2541. if ((s2 != null)) {
  2542. s2.Close();
  2543. }
  2544. }
  2545. }
  2546. xs.Add(dsSchema);
  2547. return type;
  2548. }
  2549. }
  2550. /// <summary>
  2551. ///Represents the strongly named DataTable class.
  2552. ///</summary>
  2553. [global::System.Serializable()]
  2554. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2555. public partial class Отображение_по_количествуDataTable : global::System.Data.TypedTableBase<Отображение_по_количествуRow> {
  2556. private global::System.Data.DataColumn columnАртикул;
  2557. private global::System.Data.DataColumn columnНаименование;
  2558. private global::System.Data.DataColumn columnЦена;
  2559. private global::System.Data.DataColumn columnКоличество;
  2560. private global::System.Data.DataColumn columnМесто_хранения;
  2561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2563. public Отображение_по_количествуDataTable() {
  2564. this.TableName = "Отображение по количеству";
  2565. this.BeginInit();
  2566. this.InitClass();
  2567. this.EndInit();
  2568. }
  2569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2571. internal Отображение_по_количествуDataTable(global::System.Data.DataTable table) {
  2572. this.TableName = table.TableName;
  2573. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2574. this.CaseSensitive = table.CaseSensitive;
  2575. }
  2576. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2577. this.Locale = table.Locale;
  2578. }
  2579. if ((table.Namespace != table.DataSet.Namespace)) {
  2580. this.Namespace = table.Namespace;
  2581. }
  2582. this.Prefix = table.Prefix;
  2583. this.MinimumCapacity = table.MinimumCapacity;
  2584. }
  2585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2587. protected Отображение_по_количествуDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2588. base(info, context) {
  2589. this.InitVars();
  2590. }
  2591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2593. public global::System.Data.DataColumn АртикулColumn {
  2594. get {
  2595. return this.columnАртикул;
  2596. }
  2597. }
  2598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2600. public global::System.Data.DataColumn НаименованиеColumn {
  2601. get {
  2602. return this.columnНаименование;
  2603. }
  2604. }
  2605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2607. public global::System.Data.DataColumn ЦенаColumn {
  2608. get {
  2609. return this.columnЦена;
  2610. }
  2611. }
  2612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2614. public global::System.Data.DataColumn КоличествоColumn {
  2615. get {
  2616. return this.columnКоличество;
  2617. }
  2618. }
  2619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2621. public global::System.Data.DataColumn Место_храненияColumn {
  2622. get {
  2623. return this.columnМесто_хранения;
  2624. }
  2625. }
  2626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2628. [global::System.ComponentModel.Browsable(false)]
  2629. public int Count {
  2630. get {
  2631. return this.Rows.Count;
  2632. }
  2633. }
  2634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2636. public Отображение_по_количествуRow this[int index] {
  2637. get {
  2638. return ((Отображение_по_количествуRow)(this.Rows[index]));
  2639. }
  2640. }
  2641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2642. public event Отображение_по_количествуRowChangeEventHandler Отображение_по_количествуRowChanging;
  2643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2644. public event Отображение_по_количествуRowChangeEventHandler Отображение_по_количествуRowChanged;
  2645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2646. public event Отображение_по_количествуRowChangeEventHandler Отображение_по_количествуRowDeleting;
  2647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2648. public event Отображение_по_количествуRowChangeEventHandler Отображение_по_количествуRowDeleted;
  2649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2651. public void AddОтображение_по_количествуRow(Отображение_по_количествуRow row) {
  2652. this.Rows.Add(row);
  2653. }
  2654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2656. public Отображение_по_количествуRow AddОтображение_по_количествуRow(string Артикул, string Наименование, decimal Цена, int Количество, string Место_хранения) {
  2657. Отображение_по_количествуRow rowОтображение_по_количествуRow = ((Отображение_по_количествуRow)(this.NewRow()));
  2658. object[] columnValuesArray = new object[] {
  2659. Артикул,
  2660. Наименование,
  2661. Цена,
  2662. Количество,
  2663. Место_хранения};
  2664. rowОтображение_по_количествуRow.ItemArray = columnValuesArray;
  2665. this.Rows.Add(rowОтображение_по_количествуRow);
  2666. return rowОтображение_по_количествуRow;
  2667. }
  2668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2670. public Отображение_по_количествуRow FindByАртикул(string Артикул) {
  2671. return ((Отображение_по_количествуRow)(this.Rows.Find(new object[] {
  2672. Артикул})));
  2673. }
  2674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2676. public override global::System.Data.DataTable Clone() {
  2677. Отображение_по_количествуDataTable cln = ((Отображение_по_количествуDataTable)(base.Clone()));
  2678. cln.InitVars();
  2679. return cln;
  2680. }
  2681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2683. protected override global::System.Data.DataTable CreateInstance() {
  2684. return new Отображение_по_количествуDataTable();
  2685. }
  2686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2688. internal void InitVars() {
  2689. this.columnАртикул = base.Columns["Артикул"];
  2690. this.columnНаименование = base.Columns["Наименование"];
  2691. this.columnЦена = base.Columns["Цена"];
  2692. this.columnКоличество = base.Columns["Количество"];
  2693. this.columnМесто_хранения = base.Columns["Место_хранения"];
  2694. }
  2695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2697. private void InitClass() {
  2698. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  2699. base.Columns.Add(this.columnАртикул);
  2700. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  2701. base.Columns.Add(this.columnНаименование);
  2702. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  2703. base.Columns.Add(this.columnЦена);
  2704. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  2705. base.Columns.Add(this.columnКоличество);
  2706. this.columnМесто_хранения = new global::System.Data.DataColumn("Место_хранения", typeof(string), null, global::System.Data.MappingType.Element);
  2707. base.Columns.Add(this.columnМесто_хранения);
  2708. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2709. this.columnАртикул}, true));
  2710. this.columnАртикул.AllowDBNull = false;
  2711. this.columnАртикул.Unique = true;
  2712. this.columnАртикул.MaxLength = 450;
  2713. this.columnНаименование.MaxLength = 2147483647;
  2714. this.columnМесто_хранения.MaxLength = 70;
  2715. }
  2716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2718. public Отображение_по_количествуRow NewОтображение_по_количествуRow() {
  2719. return ((Отображение_по_количествуRow)(this.NewRow()));
  2720. }
  2721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2723. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2724. return new Отображение_по_количествуRow(builder);
  2725. }
  2726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2728. protected override global::System.Type GetRowType() {
  2729. return typeof(Отображение_по_количествуRow);
  2730. }
  2731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2733. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2734. base.OnRowChanged(e);
  2735. if ((this.Отображение_по_количествуRowChanged != null)) {
  2736. this.Отображение_по_количествуRowChanged(this, new Отображение_по_количествуRowChangeEvent(((Отображение_по_количествуRow)(e.Row)), e.Action));
  2737. }
  2738. }
  2739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2741. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2742. base.OnRowChanging(e);
  2743. if ((this.Отображение_по_количествуRowChanging != null)) {
  2744. this.Отображение_по_количествуRowChanging(this, new Отображение_по_количествуRowChangeEvent(((Отображение_по_количествуRow)(e.Row)), e.Action));
  2745. }
  2746. }
  2747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2749. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2750. base.OnRowDeleted(e);
  2751. if ((this.Отображение_по_количествуRowDeleted != null)) {
  2752. this.Отображение_по_количествуRowDeleted(this, new Отображение_по_количествуRowChangeEvent(((Отображение_по_количествуRow)(e.Row)), e.Action));
  2753. }
  2754. }
  2755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2757. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2758. base.OnRowDeleting(e);
  2759. if ((this.Отображение_по_количествуRowDeleting != null)) {
  2760. this.Отображение_по_количествуRowDeleting(this, new Отображение_по_количествуRowChangeEvent(((Отображение_по_количествуRow)(e.Row)), e.Action));
  2761. }
  2762. }
  2763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2765. public void RemoveОтображение_по_количествуRow(Отображение_по_количествуRow row) {
  2766. this.Rows.Remove(row);
  2767. }
  2768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2770. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2771. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2772. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2773. GushchinaDataSet1 ds = new GushchinaDataSet1();
  2774. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2775. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2776. any1.MinOccurs = new decimal(0);
  2777. any1.MaxOccurs = decimal.MaxValue;
  2778. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2779. sequence.Items.Add(any1);
  2780. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2781. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2782. any2.MinOccurs = new decimal(1);
  2783. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2784. sequence.Items.Add(any2);
  2785. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2786. attribute1.Name = "namespace";
  2787. attribute1.FixedValue = ds.Namespace;
  2788. type.Attributes.Add(attribute1);
  2789. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2790. attribute2.Name = "tableTypeName";
  2791. attribute2.FixedValue = "Отображение_по_количествуDataTable";
  2792. type.Attributes.Add(attribute2);
  2793. type.Particle = sequence;
  2794. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2795. if (xs.Contains(dsSchema.TargetNamespace)) {
  2796. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2797. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2798. try {
  2799. global::System.Xml.Schema.XmlSchema schema = null;
  2800. dsSchema.Write(s1);
  2801. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2802. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2803. s2.SetLength(0);
  2804. schema.Write(s2);
  2805. if ((s1.Length == s2.Length)) {
  2806. s1.Position = 0;
  2807. s2.Position = 0;
  2808. for (; ((s1.Position != s1.Length)
  2809. && (s1.ReadByte() == s2.ReadByte())); ) {
  2810. ;
  2811. }
  2812. if ((s1.Position == s1.Length)) {
  2813. return type;
  2814. }
  2815. }
  2816. }
  2817. }
  2818. finally {
  2819. if ((s1 != null)) {
  2820. s1.Close();
  2821. }
  2822. if ((s2 != null)) {
  2823. s2.Close();
  2824. }
  2825. }
  2826. }
  2827. xs.Add(dsSchema);
  2828. return type;
  2829. }
  2830. }
  2831. /// <summary>
  2832. ///Represents the strongly named DataTable class.
  2833. ///</summary>
  2834. [global::System.Serializable()]
  2835. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2836. public partial class Отображение_по_месту_храненияDataTable : global::System.Data.TypedTableBase<Отображение_по_месту_храненияRow> {
  2837. private global::System.Data.DataColumn columnАртикул;
  2838. private global::System.Data.DataColumn columnНаименование;
  2839. private global::System.Data.DataColumn columnЦена;
  2840. private global::System.Data.DataColumn columnКоличество;
  2841. private global::System.Data.DataColumn columnМесто_хранения;
  2842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2844. public Отображение_по_месту_храненияDataTable() {
  2845. this.TableName = "Отображение по месту хранения";
  2846. this.BeginInit();
  2847. this.InitClass();
  2848. this.EndInit();
  2849. }
  2850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2852. internal Отображение_по_месту_храненияDataTable(global::System.Data.DataTable table) {
  2853. this.TableName = table.TableName;
  2854. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2855. this.CaseSensitive = table.CaseSensitive;
  2856. }
  2857. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2858. this.Locale = table.Locale;
  2859. }
  2860. if ((table.Namespace != table.DataSet.Namespace)) {
  2861. this.Namespace = table.Namespace;
  2862. }
  2863. this.Prefix = table.Prefix;
  2864. this.MinimumCapacity = table.MinimumCapacity;
  2865. }
  2866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2868. protected Отображение_по_месту_храненияDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2869. base(info, context) {
  2870. this.InitVars();
  2871. }
  2872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2874. public global::System.Data.DataColumn АртикулColumn {
  2875. get {
  2876. return this.columnАртикул;
  2877. }
  2878. }
  2879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2881. public global::System.Data.DataColumn НаименованиеColumn {
  2882. get {
  2883. return this.columnНаименование;
  2884. }
  2885. }
  2886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2888. public global::System.Data.DataColumn ЦенаColumn {
  2889. get {
  2890. return this.columnЦена;
  2891. }
  2892. }
  2893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2895. public global::System.Data.DataColumn КоличествоColumn {
  2896. get {
  2897. return this.columnКоличество;
  2898. }
  2899. }
  2900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2902. public global::System.Data.DataColumn Место_храненияColumn {
  2903. get {
  2904. return this.columnМесто_хранения;
  2905. }
  2906. }
  2907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2909. [global::System.ComponentModel.Browsable(false)]
  2910. public int Count {
  2911. get {
  2912. return this.Rows.Count;
  2913. }
  2914. }
  2915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2917. public Отображение_по_месту_храненияRow this[int index] {
  2918. get {
  2919. return ((Отображение_по_месту_храненияRow)(this.Rows[index]));
  2920. }
  2921. }
  2922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2923. public event Отображение_по_месту_храненияRowChangeEventHandler Отображение_по_месту_храненияRowChanging;
  2924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2925. public event Отображение_по_месту_храненияRowChangeEventHandler Отображение_по_месту_храненияRowChanged;
  2926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2927. public event Отображение_по_месту_храненияRowChangeEventHandler Отображение_по_месту_храненияRowDeleting;
  2928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2929. public event Отображение_по_месту_храненияRowChangeEventHandler Отображение_по_месту_храненияRowDeleted;
  2930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2932. public void AddОтображение_по_месту_храненияRow(Отображение_по_месту_храненияRow row) {
  2933. this.Rows.Add(row);
  2934. }
  2935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2937. public Отображение_по_месту_храненияRow AddОтображение_по_месту_храненияRow(string Артикул, string Наименование, decimal Цена, int Количество, string Место_хранения) {
  2938. Отображение_по_месту_храненияRow rowОтображение_по_месту_храненияRow = ((Отображение_по_месту_храненияRow)(this.NewRow()));
  2939. object[] columnValuesArray = new object[] {
  2940. Артикул,
  2941. Наименование,
  2942. Цена,
  2943. Количество,
  2944. Место_хранения};
  2945. rowОтображение_по_месту_храненияRow.ItemArray = columnValuesArray;
  2946. this.Rows.Add(rowОтображение_по_месту_храненияRow);
  2947. return rowОтображение_по_месту_храненияRow;
  2948. }
  2949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2951. public Отображение_по_месту_храненияRow FindByАртикул(string Артикул) {
  2952. return ((Отображение_по_месту_храненияRow)(this.Rows.Find(new object[] {
  2953. Артикул})));
  2954. }
  2955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2957. public override global::System.Data.DataTable Clone() {
  2958. Отображение_по_месту_храненияDataTable cln = ((Отображение_по_месту_храненияDataTable)(base.Clone()));
  2959. cln.InitVars();
  2960. return cln;
  2961. }
  2962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2964. protected override global::System.Data.DataTable CreateInstance() {
  2965. return new Отображение_по_месту_храненияDataTable();
  2966. }
  2967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2969. internal void InitVars() {
  2970. this.columnАртикул = base.Columns["Артикул"];
  2971. this.columnНаименование = base.Columns["Наименование"];
  2972. this.columnЦена = base.Columns["Цена"];
  2973. this.columnКоличество = base.Columns["Количество"];
  2974. this.columnМесто_хранения = base.Columns["Место_хранения"];
  2975. }
  2976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2978. private void InitClass() {
  2979. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  2980. base.Columns.Add(this.columnАртикул);
  2981. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  2982. base.Columns.Add(this.columnНаименование);
  2983. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  2984. base.Columns.Add(this.columnЦена);
  2985. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  2986. base.Columns.Add(this.columnКоличество);
  2987. this.columnМесто_хранения = new global::System.Data.DataColumn("Место_хранения", typeof(string), null, global::System.Data.MappingType.Element);
  2988. base.Columns.Add(this.columnМесто_хранения);
  2989. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2990. this.columnАртикул}, true));
  2991. this.columnАртикул.AllowDBNull = false;
  2992. this.columnАртикул.Unique = true;
  2993. this.columnАртикул.MaxLength = 450;
  2994. this.columnНаименование.MaxLength = 2147483647;
  2995. this.columnМесто_хранения.MaxLength = 70;
  2996. }
  2997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2999. public Отображение_по_месту_храненияRow NewОтображение_по_месту_храненияRow() {
  3000. return ((Отображение_по_месту_храненияRow)(this.NewRow()));
  3001. }
  3002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3004. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3005. return new Отображение_по_месту_храненияRow(builder);
  3006. }
  3007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3009. protected override global::System.Type GetRowType() {
  3010. return typeof(Отображение_по_месту_храненияRow);
  3011. }
  3012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3014. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3015. base.OnRowChanged(e);
  3016. if ((this.Отображение_по_месту_храненияRowChanged != null)) {
  3017. this.Отображение_по_месту_храненияRowChanged(this, new Отображение_по_месту_храненияRowChangeEvent(((Отображение_по_месту_храненияRow)(e.Row)), e.Action));
  3018. }
  3019. }
  3020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3022. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3023. base.OnRowChanging(e);
  3024. if ((this.Отображение_по_месту_храненияRowChanging != null)) {
  3025. this.Отображение_по_месту_храненияRowChanging(this, new Отображение_по_месту_храненияRowChangeEvent(((Отображение_по_месту_храненияRow)(e.Row)), e.Action));
  3026. }
  3027. }
  3028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3030. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3031. base.OnRowDeleted(e);
  3032. if ((this.Отображение_по_месту_храненияRowDeleted != null)) {
  3033. this.Отображение_по_месту_храненияRowDeleted(this, new Отображение_по_месту_храненияRowChangeEvent(((Отображение_по_месту_храненияRow)(e.Row)), e.Action));
  3034. }
  3035. }
  3036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3038. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3039. base.OnRowDeleting(e);
  3040. if ((this.Отображение_по_месту_храненияRowDeleting != null)) {
  3041. this.Отображение_по_месту_храненияRowDeleting(this, new Отображение_по_месту_храненияRowChangeEvent(((Отображение_по_месту_храненияRow)(e.Row)), e.Action));
  3042. }
  3043. }
  3044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3046. public void RemoveОтображение_по_месту_храненияRow(Отображение_по_месту_храненияRow row) {
  3047. this.Rows.Remove(row);
  3048. }
  3049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3051. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3052. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3053. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3054. GushchinaDataSet1 ds = new GushchinaDataSet1();
  3055. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3056. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3057. any1.MinOccurs = new decimal(0);
  3058. any1.MaxOccurs = decimal.MaxValue;
  3059. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3060. sequence.Items.Add(any1);
  3061. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3062. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3063. any2.MinOccurs = new decimal(1);
  3064. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3065. sequence.Items.Add(any2);
  3066. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3067. attribute1.Name = "namespace";
  3068. attribute1.FixedValue = ds.Namespace;
  3069. type.Attributes.Add(attribute1);
  3070. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3071. attribute2.Name = "tableTypeName";
  3072. attribute2.FixedValue = "Отображение_по_месту_храненияDataTable";
  3073. type.Attributes.Add(attribute2);
  3074. type.Particle = sequence;
  3075. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3076. if (xs.Contains(dsSchema.TargetNamespace)) {
  3077. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3078. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3079. try {
  3080. global::System.Xml.Schema.XmlSchema schema = null;
  3081. dsSchema.Write(s1);
  3082. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3083. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3084. s2.SetLength(0);
  3085. schema.Write(s2);
  3086. if ((s1.Length == s2.Length)) {
  3087. s1.Position = 0;
  3088. s2.Position = 0;
  3089. for (; ((s1.Position != s1.Length)
  3090. && (s1.ReadByte() == s2.ReadByte())); ) {
  3091. ;
  3092. }
  3093. if ((s1.Position == s1.Length)) {
  3094. return type;
  3095. }
  3096. }
  3097. }
  3098. }
  3099. finally {
  3100. if ((s1 != null)) {
  3101. s1.Close();
  3102. }
  3103. if ((s2 != null)) {
  3104. s2.Close();
  3105. }
  3106. }
  3107. }
  3108. xs.Add(dsSchema);
  3109. return type;
  3110. }
  3111. }
  3112. /// <summary>
  3113. ///Represents the strongly named DataTable class.
  3114. ///</summary>
  3115. [global::System.Serializable()]
  3116. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3117. public partial class Отображение_по_наименованиюDataTable : global::System.Data.TypedTableBase<Отображение_по_наименованиюRow> {
  3118. private global::System.Data.DataColumn columnАртикул;
  3119. private global::System.Data.DataColumn columnНаименование;
  3120. private global::System.Data.DataColumn columnЦена;
  3121. private global::System.Data.DataColumn columnКоличество;
  3122. private global::System.Data.DataColumn columnМесто_хранения;
  3123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3125. public Отображение_по_наименованиюDataTable() {
  3126. this.TableName = "Отображение по наименованию";
  3127. this.BeginInit();
  3128. this.InitClass();
  3129. this.EndInit();
  3130. }
  3131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3133. internal Отображение_по_наименованиюDataTable(global::System.Data.DataTable table) {
  3134. this.TableName = table.TableName;
  3135. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3136. this.CaseSensitive = table.CaseSensitive;
  3137. }
  3138. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3139. this.Locale = table.Locale;
  3140. }
  3141. if ((table.Namespace != table.DataSet.Namespace)) {
  3142. this.Namespace = table.Namespace;
  3143. }
  3144. this.Prefix = table.Prefix;
  3145. this.MinimumCapacity = table.MinimumCapacity;
  3146. }
  3147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3149. protected Отображение_по_наименованиюDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3150. base(info, context) {
  3151. this.InitVars();
  3152. }
  3153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3155. public global::System.Data.DataColumn АртикулColumn {
  3156. get {
  3157. return this.columnАртикул;
  3158. }
  3159. }
  3160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3162. public global::System.Data.DataColumn НаименованиеColumn {
  3163. get {
  3164. return this.columnНаименование;
  3165. }
  3166. }
  3167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3169. public global::System.Data.DataColumn ЦенаColumn {
  3170. get {
  3171. return this.columnЦена;
  3172. }
  3173. }
  3174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3176. public global::System.Data.DataColumn КоличествоColumn {
  3177. get {
  3178. return this.columnКоличество;
  3179. }
  3180. }
  3181. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3182. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3183. public global::System.Data.DataColumn Место_храненияColumn {
  3184. get {
  3185. return this.columnМесто_хранения;
  3186. }
  3187. }
  3188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3190. [global::System.ComponentModel.Browsable(false)]
  3191. public int Count {
  3192. get {
  3193. return this.Rows.Count;
  3194. }
  3195. }
  3196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3198. public Отображение_по_наименованиюRow this[int index] {
  3199. get {
  3200. return ((Отображение_по_наименованиюRow)(this.Rows[index]));
  3201. }
  3202. }
  3203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3204. public event Отображение_по_наименованиюRowChangeEventHandler Отображение_по_наименованиюRowChanging;
  3205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3206. public event Отображение_по_наименованиюRowChangeEventHandler Отображение_по_наименованиюRowChanged;
  3207. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3208. public event Отображение_по_наименованиюRowChangeEventHandler Отображение_по_наименованиюRowDeleting;
  3209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3210. public event Отображение_по_наименованиюRowChangeEventHandler Отображение_по_наименованиюRowDeleted;
  3211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3213. public void AddОтображение_по_наименованиюRow(Отображение_по_наименованиюRow row) {
  3214. this.Rows.Add(row);
  3215. }
  3216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3218. public Отображение_по_наименованиюRow AddОтображение_по_наименованиюRow(string Артикул, string Наименование, decimal Цена, int Количество, string Место_хранения) {
  3219. Отображение_по_наименованиюRow rowОтображение_по_наименованиюRow = ((Отображение_по_наименованиюRow)(this.NewRow()));
  3220. object[] columnValuesArray = new object[] {
  3221. Артикул,
  3222. Наименование,
  3223. Цена,
  3224. Количество,
  3225. Место_хранения};
  3226. rowОтображение_по_наименованиюRow.ItemArray = columnValuesArray;
  3227. this.Rows.Add(rowОтображение_по_наименованиюRow);
  3228. return rowОтображение_по_наименованиюRow;
  3229. }
  3230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3232. public Отображение_по_наименованиюRow FindByАртикул(string Артикул) {
  3233. return ((Отображение_по_наименованиюRow)(this.Rows.Find(new object[] {
  3234. Артикул})));
  3235. }
  3236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3238. public override global::System.Data.DataTable Clone() {
  3239. Отображение_по_наименованиюDataTable cln = ((Отображение_по_наименованиюDataTable)(base.Clone()));
  3240. cln.InitVars();
  3241. return cln;
  3242. }
  3243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3245. protected override global::System.Data.DataTable CreateInstance() {
  3246. return new Отображение_по_наименованиюDataTable();
  3247. }
  3248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3250. internal void InitVars() {
  3251. this.columnАртикул = base.Columns["Артикул"];
  3252. this.columnНаименование = base.Columns["Наименование"];
  3253. this.columnЦена = base.Columns["Цена"];
  3254. this.columnКоличество = base.Columns["Количество"];
  3255. this.columnМесто_хранения = base.Columns["Место_хранения"];
  3256. }
  3257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3259. private void InitClass() {
  3260. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  3261. base.Columns.Add(this.columnАртикул);
  3262. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  3263. base.Columns.Add(this.columnНаименование);
  3264. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  3265. base.Columns.Add(this.columnЦена);
  3266. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  3267. base.Columns.Add(this.columnКоличество);
  3268. this.columnМесто_хранения = new global::System.Data.DataColumn("Место_хранения", typeof(string), null, global::System.Data.MappingType.Element);
  3269. base.Columns.Add(this.columnМесто_хранения);
  3270. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3271. this.columnАртикул}, true));
  3272. this.columnАртикул.AllowDBNull = false;
  3273. this.columnАртикул.Unique = true;
  3274. this.columnАртикул.MaxLength = 450;
  3275. this.columnНаименование.MaxLength = 2147483647;
  3276. this.columnМесто_хранения.MaxLength = 70;
  3277. }
  3278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3280. public Отображение_по_наименованиюRow NewОтображение_по_наименованиюRow() {
  3281. return ((Отображение_по_наименованиюRow)(this.NewRow()));
  3282. }
  3283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3285. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3286. return new Отображение_по_наименованиюRow(builder);
  3287. }
  3288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3290. protected override global::System.Type GetRowType() {
  3291. return typeof(Отображение_по_наименованиюRow);
  3292. }
  3293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3295. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3296. base.OnRowChanged(e);
  3297. if ((this.Отображение_по_наименованиюRowChanged != null)) {
  3298. this.Отображение_по_наименованиюRowChanged(this, new Отображение_по_наименованиюRowChangeEvent(((Отображение_по_наименованиюRow)(e.Row)), e.Action));
  3299. }
  3300. }
  3301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3303. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3304. base.OnRowChanging(e);
  3305. if ((this.Отображение_по_наименованиюRowChanging != null)) {
  3306. this.Отображение_по_наименованиюRowChanging(this, new Отображение_по_наименованиюRowChangeEvent(((Отображение_по_наименованиюRow)(e.Row)), e.Action));
  3307. }
  3308. }
  3309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3311. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3312. base.OnRowDeleted(e);
  3313. if ((this.Отображение_по_наименованиюRowDeleted != null)) {
  3314. this.Отображение_по_наименованиюRowDeleted(this, new Отображение_по_наименованиюRowChangeEvent(((Отображение_по_наименованиюRow)(e.Row)), e.Action));
  3315. }
  3316. }
  3317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3319. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3320. base.OnRowDeleting(e);
  3321. if ((this.Отображение_по_наименованиюRowDeleting != null)) {
  3322. this.Отображение_по_наименованиюRowDeleting(this, new Отображение_по_наименованиюRowChangeEvent(((Отображение_по_наименованиюRow)(e.Row)), e.Action));
  3323. }
  3324. }
  3325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3327. public void RemoveОтображение_по_наименованиюRow(Отображение_по_наименованиюRow row) {
  3328. this.Rows.Remove(row);
  3329. }
  3330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3332. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3333. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3334. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3335. GushchinaDataSet1 ds = new GushchinaDataSet1();
  3336. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3337. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3338. any1.MinOccurs = new decimal(0);
  3339. any1.MaxOccurs = decimal.MaxValue;
  3340. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3341. sequence.Items.Add(any1);
  3342. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3343. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3344. any2.MinOccurs = new decimal(1);
  3345. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3346. sequence.Items.Add(any2);
  3347. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3348. attribute1.Name = "namespace";
  3349. attribute1.FixedValue = ds.Namespace;
  3350. type.Attributes.Add(attribute1);
  3351. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3352. attribute2.Name = "tableTypeName";
  3353. attribute2.FixedValue = "Отображение_по_наименованиюDataTable";
  3354. type.Attributes.Add(attribute2);
  3355. type.Particle = sequence;
  3356. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3357. if (xs.Contains(dsSchema.TargetNamespace)) {
  3358. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3359. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3360. try {
  3361. global::System.Xml.Schema.XmlSchema schema = null;
  3362. dsSchema.Write(s1);
  3363. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3364. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3365. s2.SetLength(0);
  3366. schema.Write(s2);
  3367. if ((s1.Length == s2.Length)) {
  3368. s1.Position = 0;
  3369. s2.Position = 0;
  3370. for (; ((s1.Position != s1.Length)
  3371. && (s1.ReadByte() == s2.ReadByte())); ) {
  3372. ;
  3373. }
  3374. if ((s1.Position == s1.Length)) {
  3375. return type;
  3376. }
  3377. }
  3378. }
  3379. }
  3380. finally {
  3381. if ((s1 != null)) {
  3382. s1.Close();
  3383. }
  3384. if ((s2 != null)) {
  3385. s2.Close();
  3386. }
  3387. }
  3388. }
  3389. xs.Add(dsSchema);
  3390. return type;
  3391. }
  3392. }
  3393. /// <summary>
  3394. ///Represents the strongly named DataTable class.
  3395. ///</summary>
  3396. [global::System.Serializable()]
  3397. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3398. public partial class Отображение_по_ценеDataTable : global::System.Data.TypedTableBase<Отображение_по_ценеRow> {
  3399. private global::System.Data.DataColumn columnАртикул;
  3400. private global::System.Data.DataColumn columnНаименование;
  3401. private global::System.Data.DataColumn columnЦена;
  3402. private global::System.Data.DataColumn columnКоличество;
  3403. private global::System.Data.DataColumn columnМесто_хранения;
  3404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3406. public Отображение_по_ценеDataTable() {
  3407. this.TableName = "Отображение по цене";
  3408. this.BeginInit();
  3409. this.InitClass();
  3410. this.EndInit();
  3411. }
  3412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3414. internal Отображение_по_ценеDataTable(global::System.Data.DataTable table) {
  3415. this.TableName = table.TableName;
  3416. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3417. this.CaseSensitive = table.CaseSensitive;
  3418. }
  3419. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3420. this.Locale = table.Locale;
  3421. }
  3422. if ((table.Namespace != table.DataSet.Namespace)) {
  3423. this.Namespace = table.Namespace;
  3424. }
  3425. this.Prefix = table.Prefix;
  3426. this.MinimumCapacity = table.MinimumCapacity;
  3427. }
  3428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3430. protected Отображение_по_ценеDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3431. base(info, context) {
  3432. this.InitVars();
  3433. }
  3434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3436. public global::System.Data.DataColumn АртикулColumn {
  3437. get {
  3438. return this.columnАртикул;
  3439. }
  3440. }
  3441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3443. public global::System.Data.DataColumn НаименованиеColumn {
  3444. get {
  3445. return this.columnНаименование;
  3446. }
  3447. }
  3448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3450. public global::System.Data.DataColumn ЦенаColumn {
  3451. get {
  3452. return this.columnЦена;
  3453. }
  3454. }
  3455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3457. public global::System.Data.DataColumn КоличествоColumn {
  3458. get {
  3459. return this.columnКоличество;
  3460. }
  3461. }
  3462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3464. public global::System.Data.DataColumn Место_храненияColumn {
  3465. get {
  3466. return this.columnМесто_хранения;
  3467. }
  3468. }
  3469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3471. [global::System.ComponentModel.Browsable(false)]
  3472. public int Count {
  3473. get {
  3474. return this.Rows.Count;
  3475. }
  3476. }
  3477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3479. public Отображение_по_ценеRow this[int index] {
  3480. get {
  3481. return ((Отображение_по_ценеRow)(this.Rows[index]));
  3482. }
  3483. }
  3484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3485. public event Отображение_по_ценеRowChangeEventHandler Отображение_по_ценеRowChanging;
  3486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3487. public event Отображение_по_ценеRowChangeEventHandler Отображение_по_ценеRowChanged;
  3488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3489. public event Отображение_по_ценеRowChangeEventHandler Отображение_по_ценеRowDeleting;
  3490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3491. public event Отображение_по_ценеRowChangeEventHandler Отображение_по_ценеRowDeleted;
  3492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3494. public void AddОтображение_по_ценеRow(Отображение_по_ценеRow row) {
  3495. this.Rows.Add(row);
  3496. }
  3497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3499. public Отображение_по_ценеRow AddОтображение_по_ценеRow(string Артикул, string Наименование, decimal Цена, int Количество, string Место_хранения) {
  3500. Отображение_по_ценеRow rowОтображение_по_ценеRow = ((Отображение_по_ценеRow)(this.NewRow()));
  3501. object[] columnValuesArray = new object[] {
  3502. Артикул,
  3503. Наименование,
  3504. Цена,
  3505. Количество,
  3506. Место_хранения};
  3507. rowОтображение_по_ценеRow.ItemArray = columnValuesArray;
  3508. this.Rows.Add(rowОтображение_по_ценеRow);
  3509. return rowОтображение_по_ценеRow;
  3510. }
  3511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3513. public Отображение_по_ценеRow FindByАртикул(string Артикул) {
  3514. return ((Отображение_по_ценеRow)(this.Rows.Find(new object[] {
  3515. Артикул})));
  3516. }
  3517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3519. public override global::System.Data.DataTable Clone() {
  3520. Отображение_по_ценеDataTable cln = ((Отображение_по_ценеDataTable)(base.Clone()));
  3521. cln.InitVars();
  3522. return cln;
  3523. }
  3524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3526. protected override global::System.Data.DataTable CreateInstance() {
  3527. return new Отображение_по_ценеDataTable();
  3528. }
  3529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3531. internal void InitVars() {
  3532. this.columnАртикул = base.Columns["Артикул"];
  3533. this.columnНаименование = base.Columns["Наименование"];
  3534. this.columnЦена = base.Columns["Цена"];
  3535. this.columnКоличество = base.Columns["Количество"];
  3536. this.columnМесто_хранения = base.Columns["Место_хранения"];
  3537. }
  3538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3540. private void InitClass() {
  3541. this.columnАртикул = new global::System.Data.DataColumn("Артикул", typeof(string), null, global::System.Data.MappingType.Element);
  3542. base.Columns.Add(this.columnАртикул);
  3543. this.columnНаименование = new global::System.Data.DataColumn("Наименование", typeof(string), null, global::System.Data.MappingType.Element);
  3544. base.Columns.Add(this.columnНаименование);
  3545. this.columnЦена = new global::System.Data.DataColumn("Цена", typeof(decimal), null, global::System.Data.MappingType.Element);
  3546. base.Columns.Add(this.columnЦена);
  3547. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(int), null, global::System.Data.MappingType.Element);
  3548. base.Columns.Add(this.columnКоличество);
  3549. this.columnМесто_хранения = new global::System.Data.DataColumn("Место_хранения", typeof(string), null, global::System.Data.MappingType.Element);
  3550. base.Columns.Add(this.columnМесто_хранения);
  3551. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3552. this.columnАртикул}, true));
  3553. this.columnАртикул.AllowDBNull = false;
  3554. this.columnАртикул.Unique = true;
  3555. this.columnАртикул.MaxLength = 450;
  3556. this.columnНаименование.MaxLength = 2147483647;
  3557. this.columnМесто_хранения.MaxLength = 70;
  3558. }
  3559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3561. public Отображение_по_ценеRow NewОтображение_по_ценеRow() {
  3562. return ((Отображение_по_ценеRow)(this.NewRow()));
  3563. }
  3564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3566. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3567. return new Отображение_по_ценеRow(builder);
  3568. }
  3569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3571. protected override global::System.Type GetRowType() {
  3572. return typeof(Отображение_по_ценеRow);
  3573. }
  3574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3576. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3577. base.OnRowChanged(e);
  3578. if ((this.Отображение_по_ценеRowChanged != null)) {
  3579. this.Отображение_по_ценеRowChanged(this, new Отображение_по_ценеRowChangeEvent(((Отображение_по_ценеRow)(e.Row)), e.Action));
  3580. }
  3581. }
  3582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3584. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3585. base.OnRowChanging(e);
  3586. if ((this.Отображение_по_ценеRowChanging != null)) {
  3587. this.Отображение_по_ценеRowChanging(this, new Отображение_по_ценеRowChangeEvent(((Отображение_по_ценеRow)(e.Row)), e.Action));
  3588. }
  3589. }
  3590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3592. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3593. base.OnRowDeleted(e);
  3594. if ((this.Отображение_по_ценеRowDeleted != null)) {
  3595. this.Отображение_по_ценеRowDeleted(this, new Отображение_по_ценеRowChangeEvent(((Отображение_по_ценеRow)(e.Row)), e.Action));
  3596. }
  3597. }
  3598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3600. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3601. base.OnRowDeleting(e);
  3602. if ((this.Отображение_по_ценеRowDeleting != null)) {
  3603. this.Отображение_по_ценеRowDeleting(this, new Отображение_по_ценеRowChangeEvent(((Отображение_по_ценеRow)(e.Row)), e.Action));
  3604. }
  3605. }
  3606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3608. public void RemoveОтображение_по_ценеRow(Отображение_по_ценеRow row) {
  3609. this.Rows.Remove(row);
  3610. }
  3611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3613. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3614. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3615. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3616. GushchinaDataSet1 ds = new GushchinaDataSet1();
  3617. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3618. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3619. any1.MinOccurs = new decimal(0);
  3620. any1.MaxOccurs = decimal.MaxValue;
  3621. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3622. sequence.Items.Add(any1);
  3623. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3624. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3625. any2.MinOccurs = new decimal(1);
  3626. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3627. sequence.Items.Add(any2);
  3628. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3629. attribute1.Name = "namespace";
  3630. attribute1.FixedValue = ds.Namespace;
  3631. type.Attributes.Add(attribute1);
  3632. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3633. attribute2.Name = "tableTypeName";
  3634. attribute2.FixedValue = "Отображение_по_ценеDataTable";
  3635. type.Attributes.Add(attribute2);
  3636. type.Particle = sequence;
  3637. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3638. if (xs.Contains(dsSchema.TargetNamespace)) {
  3639. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3640. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3641. try {
  3642. global::System.Xml.Schema.XmlSchema schema = null;
  3643. dsSchema.Write(s1);
  3644. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3645. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3646. s2.SetLength(0);
  3647. schema.Write(s2);
  3648. if ((s1.Length == s2.Length)) {
  3649. s1.Position = 0;
  3650. s2.Position = 0;
  3651. for (; ((s1.Position != s1.Length)
  3652. && (s1.ReadByte() == s2.ReadByte())); ) {
  3653. ;
  3654. }
  3655. if ((s1.Position == s1.Length)) {
  3656. return type;
  3657. }
  3658. }
  3659. }
  3660. }
  3661. finally {
  3662. if ((s1 != null)) {
  3663. s1.Close();
  3664. }
  3665. if ((s2 != null)) {
  3666. s2.Close();
  3667. }
  3668. }
  3669. }
  3670. xs.Add(dsSchema);
  3671. return type;
  3672. }
  3673. }
  3674. /// <summary>
  3675. ///Represents strongly named DataRow class.
  3676. ///</summary>
  3677. public partial class Consumables_soldRow : global::System.Data.DataRow {
  3678. private Consumables_soldDataTable tableConsumables_sold;
  3679. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3680. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3681. internal Consumables_soldRow(global::System.Data.DataRowBuilder rb) :
  3682. base(rb) {
  3683. this.tableConsumables_sold = ((Consumables_soldDataTable)(this.Table));
  3684. }
  3685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3687. public string Артикул {
  3688. get {
  3689. return ((string)(this[this.tableConsumables_sold.АртикулColumn]));
  3690. }
  3691. set {
  3692. this[this.tableConsumables_sold.АртикулColumn] = value;
  3693. }
  3694. }
  3695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3697. public string Наименование {
  3698. get {
  3699. try {
  3700. return ((string)(this[this.tableConsumables_sold.НаименованиеColumn]));
  3701. }
  3702. catch (global::System.InvalidCastException e) {
  3703. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Consumables_sold\' равно DBNull.", e);
  3704. }
  3705. }
  3706. set {
  3707. this[this.tableConsumables_sold.НаименованиеColumn] = value;
  3708. }
  3709. }
  3710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3712. public decimal Цена {
  3713. get {
  3714. try {
  3715. return ((decimal)(this[this.tableConsumables_sold.ЦенаColumn]));
  3716. }
  3717. catch (global::System.InvalidCastException e) {
  3718. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Consumables_sold\' равно DBNull.", e);
  3719. }
  3720. }
  3721. set {
  3722. this[this.tableConsumables_sold.ЦенаColumn] = value;
  3723. }
  3724. }
  3725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3726. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3727. public int Количество {
  3728. get {
  3729. try {
  3730. return ((int)(this[this.tableConsumables_sold.КоличествоColumn]));
  3731. }
  3732. catch (global::System.InvalidCastException e) {
  3733. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Consumables_sold\' равно DBNull.", e);
  3734. }
  3735. }
  3736. set {
  3737. this[this.tableConsumables_sold.КоличествоColumn] = value;
  3738. }
  3739. }
  3740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3742. public System.DateTime Дата {
  3743. get {
  3744. try {
  3745. return ((global::System.DateTime)(this[this.tableConsumables_sold.ДатаColumn]));
  3746. }
  3747. catch (global::System.InvalidCastException e) {
  3748. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'Consumables_sold\' равно DBNull.", e);
  3749. }
  3750. }
  3751. set {
  3752. this[this.tableConsumables_sold.ДатаColumn] = value;
  3753. }
  3754. }
  3755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3757. public string Сотрудник {
  3758. get {
  3759. try {
  3760. return ((string)(this[this.tableConsumables_sold.СотрудникColumn]));
  3761. }
  3762. catch (global::System.InvalidCastException e) {
  3763. throw new global::System.Data.StrongTypingException("Значение для столбца \'Сотрудник\' в таблице \'Consumables_sold\' равно DBNull.", e);
  3764. }
  3765. }
  3766. set {
  3767. this[this.tableConsumables_sold.СотрудникColumn] = value;
  3768. }
  3769. }
  3770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3772. public WarehouseRow WarehouseRow {
  3773. get {
  3774. return ((WarehouseRow)(this.GetParentRow(this.Table.ParentRelations["FK_Consumables_sold_Warehouse"])));
  3775. }
  3776. set {
  3777. this.SetParentRow(value, this.Table.ParentRelations["FK_Consumables_sold_Warehouse"]);
  3778. }
  3779. }
  3780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3782. public bool IsНаименованиеNull() {
  3783. return this.IsNull(this.tableConsumables_sold.НаименованиеColumn);
  3784. }
  3785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3787. public void SetНаименованиеNull() {
  3788. this[this.tableConsumables_sold.НаименованиеColumn] = global::System.Convert.DBNull;
  3789. }
  3790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3792. public bool IsЦенаNull() {
  3793. return this.IsNull(this.tableConsumables_sold.ЦенаColumn);
  3794. }
  3795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3797. public void SetЦенаNull() {
  3798. this[this.tableConsumables_sold.ЦенаColumn] = global::System.Convert.DBNull;
  3799. }
  3800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3802. public bool IsКоличествоNull() {
  3803. return this.IsNull(this.tableConsumables_sold.КоличествоColumn);
  3804. }
  3805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3807. public void SetКоличествоNull() {
  3808. this[this.tableConsumables_sold.КоличествоColumn] = global::System.Convert.DBNull;
  3809. }
  3810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3812. public bool IsДатаNull() {
  3813. return this.IsNull(this.tableConsumables_sold.ДатаColumn);
  3814. }
  3815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3817. public void SetДатаNull() {
  3818. this[this.tableConsumables_sold.ДатаColumn] = global::System.Convert.DBNull;
  3819. }
  3820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3822. public bool IsСотрудникNull() {
  3823. return this.IsNull(this.tableConsumables_sold.СотрудникColumn);
  3824. }
  3825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3827. public void SetСотрудникNull() {
  3828. this[this.tableConsumables_sold.СотрудникColumn] = global::System.Convert.DBNull;
  3829. }
  3830. }
  3831. /// <summary>
  3832. ///Represents strongly named DataRow class.
  3833. ///</summary>
  3834. public partial class DeliveriesRow : global::System.Data.DataRow {
  3835. private DeliveriesDataTable tableDeliveries;
  3836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3838. internal DeliveriesRow(global::System.Data.DataRowBuilder rb) :
  3839. base(rb) {
  3840. this.tableDeliveries = ((DeliveriesDataTable)(this.Table));
  3841. }
  3842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3844. public string Артикул {
  3845. get {
  3846. return ((string)(this[this.tableDeliveries.АртикулColumn]));
  3847. }
  3848. set {
  3849. this[this.tableDeliveries.АртикулColumn] = value;
  3850. }
  3851. }
  3852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3854. public string Наименование {
  3855. get {
  3856. try {
  3857. return ((string)(this[this.tableDeliveries.НаименованиеColumn]));
  3858. }
  3859. catch (global::System.InvalidCastException e) {
  3860. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Deliveries\' равно DBNull.", e);
  3861. }
  3862. }
  3863. set {
  3864. this[this.tableDeliveries.НаименованиеColumn] = value;
  3865. }
  3866. }
  3867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3869. public decimal Цена {
  3870. get {
  3871. try {
  3872. return ((decimal)(this[this.tableDeliveries.ЦенаColumn]));
  3873. }
  3874. catch (global::System.InvalidCastException e) {
  3875. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Deliveries\' равно DBNull.", e);
  3876. }
  3877. }
  3878. set {
  3879. this[this.tableDeliveries.ЦенаColumn] = value;
  3880. }
  3881. }
  3882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3884. public System.DateTime Дата {
  3885. get {
  3886. try {
  3887. return ((global::System.DateTime)(this[this.tableDeliveries.ДатаColumn]));
  3888. }
  3889. catch (global::System.InvalidCastException e) {
  3890. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'Deliveries\' равно DBNull.", e);
  3891. }
  3892. }
  3893. set {
  3894. this[this.tableDeliveries.ДатаColumn] = value;
  3895. }
  3896. }
  3897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3899. public ListRow ListRow {
  3900. get {
  3901. return ((ListRow)(this.GetParentRow(this.Table.ParentRelations["FK_Deliveries_List"])));
  3902. }
  3903. set {
  3904. this.SetParentRow(value, this.Table.ParentRelations["FK_Deliveries_List"]);
  3905. }
  3906. }
  3907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3909. public WarehouseRow WarehouseRow {
  3910. get {
  3911. return ((WarehouseRow)(this.GetParentRow(this.Table.ParentRelations["FK_Deliveries_Warehouse"])));
  3912. }
  3913. set {
  3914. this.SetParentRow(value, this.Table.ParentRelations["FK_Deliveries_Warehouse"]);
  3915. }
  3916. }
  3917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3919. public bool IsНаименованиеNull() {
  3920. return this.IsNull(this.tableDeliveries.НаименованиеColumn);
  3921. }
  3922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3924. public void SetНаименованиеNull() {
  3925. this[this.tableDeliveries.НаименованиеColumn] = global::System.Convert.DBNull;
  3926. }
  3927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3929. public bool IsЦенаNull() {
  3930. return this.IsNull(this.tableDeliveries.ЦенаColumn);
  3931. }
  3932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3934. public void SetЦенаNull() {
  3935. this[this.tableDeliveries.ЦенаColumn] = global::System.Convert.DBNull;
  3936. }
  3937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3939. public bool IsДатаNull() {
  3940. return this.IsNull(this.tableDeliveries.ДатаColumn);
  3941. }
  3942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3944. public void SetДатаNull() {
  3945. this[this.tableDeliveries.ДатаColumn] = global::System.Convert.DBNull;
  3946. }
  3947. }
  3948. /// <summary>
  3949. ///Represents strongly named DataRow class.
  3950. ///</summary>
  3951. public partial class ListRow : global::System.Data.DataRow {
  3952. private ListDataTable tableList;
  3953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3955. internal ListRow(global::System.Data.DataRowBuilder rb) :
  3956. base(rb) {
  3957. this.tableList = ((ListDataTable)(this.Table));
  3958. }
  3959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3961. public string Артикул {
  3962. get {
  3963. return ((string)(this[this.tableList.АртикулColumn]));
  3964. }
  3965. set {
  3966. this[this.tableList.АртикулColumn] = value;
  3967. }
  3968. }
  3969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3971. public string Наименование {
  3972. get {
  3973. try {
  3974. return ((string)(this[this.tableList.НаименованиеColumn]));
  3975. }
  3976. catch (global::System.InvalidCastException e) {
  3977. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'List\' равно DBNull.", e);
  3978. }
  3979. }
  3980. set {
  3981. this[this.tableList.НаименованиеColumn] = value;
  3982. }
  3983. }
  3984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3986. public decimal Цена {
  3987. get {
  3988. try {
  3989. return ((decimal)(this[this.tableList.ЦенаColumn]));
  3990. }
  3991. catch (global::System.InvalidCastException e) {
  3992. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'List\' равно DBNull.", e);
  3993. }
  3994. }
  3995. set {
  3996. this[this.tableList.ЦенаColumn] = value;
  3997. }
  3998. }
  3999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4001. public int Количество {
  4002. get {
  4003. try {
  4004. return ((int)(this[this.tableList.КоличествоColumn]));
  4005. }
  4006. catch (global::System.InvalidCastException e) {
  4007. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'List\' равно DBNull.", e);
  4008. }
  4009. }
  4010. set {
  4011. this[this.tableList.КоличествоColumn] = value;
  4012. }
  4013. }
  4014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4016. public string Место_хранения {
  4017. get {
  4018. try {
  4019. return ((string)(this[this.tableList.Место_храненияColumn]));
  4020. }
  4021. catch (global::System.InvalidCastException e) {
  4022. throw new global::System.Data.StrongTypingException("Значение для столбца \'Место_хранения\' в таблице \'List\' равно DBNull.", e);
  4023. }
  4024. }
  4025. set {
  4026. this[this.tableList.Место_храненияColumn] = value;
  4027. }
  4028. }
  4029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4031. public bool IsНаименованиеNull() {
  4032. return this.IsNull(this.tableList.НаименованиеColumn);
  4033. }
  4034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4036. public void SetНаименованиеNull() {
  4037. this[this.tableList.НаименованиеColumn] = global::System.Convert.DBNull;
  4038. }
  4039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4041. public bool IsЦенаNull() {
  4042. return this.IsNull(this.tableList.ЦенаColumn);
  4043. }
  4044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4046. public void SetЦенаNull() {
  4047. this[this.tableList.ЦенаColumn] = global::System.Convert.DBNull;
  4048. }
  4049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4051. public bool IsКоличествоNull() {
  4052. return this.IsNull(this.tableList.КоличествоColumn);
  4053. }
  4054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4056. public void SetКоличествоNull() {
  4057. this[this.tableList.КоличествоColumn] = global::System.Convert.DBNull;
  4058. }
  4059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4061. public bool IsМесто_храненияNull() {
  4062. return this.IsNull(this.tableList.Место_храненияColumn);
  4063. }
  4064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4066. public void SetМесто_храненияNull() {
  4067. this[this.tableList.Место_храненияColumn] = global::System.Convert.DBNull;
  4068. }
  4069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4071. public DeliveriesRow[] GetDeliveriesRows() {
  4072. if ((this.Table.ChildRelations["FK_Deliveries_List"] == null)) {
  4073. return new DeliveriesRow[0];
  4074. }
  4075. else {
  4076. return ((DeliveriesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Deliveries_List"])));
  4077. }
  4078. }
  4079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4081. public WarehouseRow[] GetWarehouseRows() {
  4082. if ((this.Table.ChildRelations["FK_Warehouse_List"] == null)) {
  4083. return new WarehouseRow[0];
  4084. }
  4085. else {
  4086. return ((WarehouseRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Warehouse_List"])));
  4087. }
  4088. }
  4089. }
  4090. /// <summary>
  4091. ///Represents strongly named DataRow class.
  4092. ///</summary>
  4093. public partial class PurchaseRow : global::System.Data.DataRow {
  4094. private PurchaseDataTable tablePurchase;
  4095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4097. internal PurchaseRow(global::System.Data.DataRowBuilder rb) :
  4098. base(rb) {
  4099. this.tablePurchase = ((PurchaseDataTable)(this.Table));
  4100. }
  4101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4103. public string Артикул {
  4104. get {
  4105. return ((string)(this[this.tablePurchase.АртикулColumn]));
  4106. }
  4107. set {
  4108. this[this.tablePurchase.АртикулColumn] = value;
  4109. }
  4110. }
  4111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4113. public string Наименование {
  4114. get {
  4115. try {
  4116. return ((string)(this[this.tablePurchase.НаименованиеColumn]));
  4117. }
  4118. catch (global::System.InvalidCastException e) {
  4119. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Purchase\' равно DBNull.", e);
  4120. }
  4121. }
  4122. set {
  4123. this[this.tablePurchase.НаименованиеColumn] = value;
  4124. }
  4125. }
  4126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4128. public decimal Цена {
  4129. get {
  4130. try {
  4131. return ((decimal)(this[this.tablePurchase.ЦенаColumn]));
  4132. }
  4133. catch (global::System.InvalidCastException e) {
  4134. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Purchase\' равно DBNull.", e);
  4135. }
  4136. }
  4137. set {
  4138. this[this.tablePurchase.ЦенаColumn] = value;
  4139. }
  4140. }
  4141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4143. public string _Принудительное_перемешение__Да_Нет_ {
  4144. get {
  4145. try {
  4146. return ((string)(this[this.tablePurchase._Принудительное_перемешение__Да_Нет_Column]));
  4147. }
  4148. catch (global::System.InvalidCastException e) {
  4149. throw new global::System.Data.StrongTypingException("Значение для столбца \'Принудительное перемешение (Да/Нет)\' в таблице \'Purchase\' р" +
  4150. "авно DBNull.", e);
  4151. }
  4152. }
  4153. set {
  4154. this[this.tablePurchase._Принудительное_перемешение__Да_Нет_Column] = value;
  4155. }
  4156. }
  4157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4159. public bool IsНаименованиеNull() {
  4160. return this.IsNull(this.tablePurchase.НаименованиеColumn);
  4161. }
  4162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4164. public void SetНаименованиеNull() {
  4165. this[this.tablePurchase.НаименованиеColumn] = global::System.Convert.DBNull;
  4166. }
  4167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4169. public bool IsЦенаNull() {
  4170. return this.IsNull(this.tablePurchase.ЦенаColumn);
  4171. }
  4172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4174. public void SetЦенаNull() {
  4175. this[this.tablePurchase.ЦенаColumn] = global::System.Convert.DBNull;
  4176. }
  4177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4179. public bool Is_Принудительное_перемешение__Да_Нет_Null() {
  4180. return this.IsNull(this.tablePurchase._Принудительное_перемешение__Да_Нет_Column);
  4181. }
  4182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4184. public void Set_Принудительное_перемешение__Да_Нет_Null() {
  4185. this[this.tablePurchase._Принудительное_перемешение__Да_Нет_Column] = global::System.Convert.DBNull;
  4186. }
  4187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4189. public WarehouseRow[] GetWarehouseRows() {
  4190. if ((this.Table.ChildRelations["FK_Warehouse_Purchase"] == null)) {
  4191. return new WarehouseRow[0];
  4192. }
  4193. else {
  4194. return ((WarehouseRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Warehouse_Purchase"])));
  4195. }
  4196. }
  4197. }
  4198. /// <summary>
  4199. ///Represents strongly named DataRow class.
  4200. ///</summary>
  4201. public partial class Used_consumablesRow : global::System.Data.DataRow {
  4202. private Used_consumablesDataTable tableUsed_consumables;
  4203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4205. internal Used_consumablesRow(global::System.Data.DataRowBuilder rb) :
  4206. base(rb) {
  4207. this.tableUsed_consumables = ((Used_consumablesDataTable)(this.Table));
  4208. }
  4209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4211. public string Артикул {
  4212. get {
  4213. return ((string)(this[this.tableUsed_consumables.АртикулColumn]));
  4214. }
  4215. set {
  4216. this[this.tableUsed_consumables.АртикулColumn] = value;
  4217. }
  4218. }
  4219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4221. public string Наименование {
  4222. get {
  4223. try {
  4224. return ((string)(this[this.tableUsed_consumables.НаименованиеColumn]));
  4225. }
  4226. catch (global::System.InvalidCastException e) {
  4227. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Used_consumables\' равно DBNull.", e);
  4228. }
  4229. }
  4230. set {
  4231. this[this.tableUsed_consumables.НаименованиеColumn] = value;
  4232. }
  4233. }
  4234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4236. public decimal Цена {
  4237. get {
  4238. try {
  4239. return ((decimal)(this[this.tableUsed_consumables.ЦенаColumn]));
  4240. }
  4241. catch (global::System.InvalidCastException e) {
  4242. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Used_consumables\' равно DBNull.", e);
  4243. }
  4244. }
  4245. set {
  4246. this[this.tableUsed_consumables.ЦенаColumn] = value;
  4247. }
  4248. }
  4249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4251. public int Количество {
  4252. get {
  4253. try {
  4254. return ((int)(this[this.tableUsed_consumables.КоличествоColumn]));
  4255. }
  4256. catch (global::System.InvalidCastException e) {
  4257. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Used_consumables\' равно DBNull.", e);
  4258. }
  4259. }
  4260. set {
  4261. this[this.tableUsed_consumables.КоличествоColumn] = value;
  4262. }
  4263. }
  4264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4266. public System.DateTime Дата {
  4267. get {
  4268. try {
  4269. return ((global::System.DateTime)(this[this.tableUsed_consumables.ДатаColumn]));
  4270. }
  4271. catch (global::System.InvalidCastException e) {
  4272. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата\' в таблице \'Used_consumables\' равно DBNull.", e);
  4273. }
  4274. }
  4275. set {
  4276. this[this.tableUsed_consumables.ДатаColumn] = value;
  4277. }
  4278. }
  4279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4281. public string Сотрудник {
  4282. get {
  4283. try {
  4284. return ((string)(this[this.tableUsed_consumables.СотрудникColumn]));
  4285. }
  4286. catch (global::System.InvalidCastException e) {
  4287. throw new global::System.Data.StrongTypingException("Значение для столбца \'Сотрудник\' в таблице \'Used_consumables\' равно DBNull.", e);
  4288. }
  4289. }
  4290. set {
  4291. this[this.tableUsed_consumables.СотрудникColumn] = value;
  4292. }
  4293. }
  4294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4296. public WarehouseRow WarehouseRow {
  4297. get {
  4298. return ((WarehouseRow)(this.GetParentRow(this.Table.ParentRelations["FK_Used_consumables_Warehouse"])));
  4299. }
  4300. set {
  4301. this.SetParentRow(value, this.Table.ParentRelations["FK_Used_consumables_Warehouse"]);
  4302. }
  4303. }
  4304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4306. public bool IsНаименованиеNull() {
  4307. return this.IsNull(this.tableUsed_consumables.НаименованиеColumn);
  4308. }
  4309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4311. public void SetНаименованиеNull() {
  4312. this[this.tableUsed_consumables.НаименованиеColumn] = global::System.Convert.DBNull;
  4313. }
  4314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4316. public bool IsЦенаNull() {
  4317. return this.IsNull(this.tableUsed_consumables.ЦенаColumn);
  4318. }
  4319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4321. public void SetЦенаNull() {
  4322. this[this.tableUsed_consumables.ЦенаColumn] = global::System.Convert.DBNull;
  4323. }
  4324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4326. public bool IsКоличествоNull() {
  4327. return this.IsNull(this.tableUsed_consumables.КоличествоColumn);
  4328. }
  4329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4331. public void SetКоличествоNull() {
  4332. this[this.tableUsed_consumables.КоличествоColumn] = global::System.Convert.DBNull;
  4333. }
  4334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4336. public bool IsДатаNull() {
  4337. return this.IsNull(this.tableUsed_consumables.ДатаColumn);
  4338. }
  4339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4341. public void SetДатаNull() {
  4342. this[this.tableUsed_consumables.ДатаColumn] = global::System.Convert.DBNull;
  4343. }
  4344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4346. public bool IsСотрудникNull() {
  4347. return this.IsNull(this.tableUsed_consumables.СотрудникColumn);
  4348. }
  4349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4351. public void SetСотрудникNull() {
  4352. this[this.tableUsed_consumables.СотрудникColumn] = global::System.Convert.DBNull;
  4353. }
  4354. }
  4355. /// <summary>
  4356. ///Represents strongly named DataRow class.
  4357. ///</summary>
  4358. public partial class WarehouseRow : global::System.Data.DataRow {
  4359. private WarehouseDataTable tableWarehouse;
  4360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4362. internal WarehouseRow(global::System.Data.DataRowBuilder rb) :
  4363. base(rb) {
  4364. this.tableWarehouse = ((WarehouseDataTable)(this.Table));
  4365. }
  4366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4368. public string Артикул {
  4369. get {
  4370. return ((string)(this[this.tableWarehouse.АртикулColumn]));
  4371. }
  4372. set {
  4373. this[this.tableWarehouse.АртикулColumn] = value;
  4374. }
  4375. }
  4376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4378. public string Наименование {
  4379. get {
  4380. try {
  4381. return ((string)(this[this.tableWarehouse.НаименованиеColumn]));
  4382. }
  4383. catch (global::System.InvalidCastException e) {
  4384. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Warehouse\' равно DBNull.", e);
  4385. }
  4386. }
  4387. set {
  4388. this[this.tableWarehouse.НаименованиеColumn] = value;
  4389. }
  4390. }
  4391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4393. public decimal Цена {
  4394. get {
  4395. try {
  4396. return ((decimal)(this[this.tableWarehouse.ЦенаColumn]));
  4397. }
  4398. catch (global::System.InvalidCastException e) {
  4399. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Warehouse\' равно DBNull.", e);
  4400. }
  4401. }
  4402. set {
  4403. this[this.tableWarehouse.ЦенаColumn] = value;
  4404. }
  4405. }
  4406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4408. public int Количество {
  4409. get {
  4410. try {
  4411. return ((int)(this[this.tableWarehouse.КоличествоColumn]));
  4412. }
  4413. catch (global::System.InvalidCastException e) {
  4414. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Warehouse\' равно DBNull.", e);
  4415. }
  4416. }
  4417. set {
  4418. this[this.tableWarehouse.КоличествоColumn] = value;
  4419. }
  4420. }
  4421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4423. public string _Место_хранения__Склад_Витрина_ {
  4424. get {
  4425. try {
  4426. return ((string)(this[this.tableWarehouse._Место_хранения__Склад_Витрина_Column]));
  4427. }
  4428. catch (global::System.InvalidCastException e) {
  4429. throw new global::System.Data.StrongTypingException("Значение для столбца \'Место хранения (Склад/Витрина)\' в таблице \'Warehouse\' равно" +
  4430. " DBNull.", e);
  4431. }
  4432. }
  4433. set {
  4434. this[this.tableWarehouse._Место_хранения__Склад_Витрина_Column] = value;
  4435. }
  4436. }
  4437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4439. public ListRow ListRow {
  4440. get {
  4441. return ((ListRow)(this.GetParentRow(this.Table.ParentRelations["FK_Warehouse_List"])));
  4442. }
  4443. set {
  4444. this.SetParentRow(value, this.Table.ParentRelations["FK_Warehouse_List"]);
  4445. }
  4446. }
  4447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4449. public PurchaseRow PurchaseRow {
  4450. get {
  4451. return ((PurchaseRow)(this.GetParentRow(this.Table.ParentRelations["FK_Warehouse_Purchase"])));
  4452. }
  4453. set {
  4454. this.SetParentRow(value, this.Table.ParentRelations["FK_Warehouse_Purchase"]);
  4455. }
  4456. }
  4457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4459. public bool IsНаименованиеNull() {
  4460. return this.IsNull(this.tableWarehouse.НаименованиеColumn);
  4461. }
  4462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4464. public void SetНаименованиеNull() {
  4465. this[this.tableWarehouse.НаименованиеColumn] = global::System.Convert.DBNull;
  4466. }
  4467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4469. public bool IsЦенаNull() {
  4470. return this.IsNull(this.tableWarehouse.ЦенаColumn);
  4471. }
  4472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4474. public void SetЦенаNull() {
  4475. this[this.tableWarehouse.ЦенаColumn] = global::System.Convert.DBNull;
  4476. }
  4477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4479. public bool IsКоличествоNull() {
  4480. return this.IsNull(this.tableWarehouse.КоличествоColumn);
  4481. }
  4482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4484. public void SetКоличествоNull() {
  4485. this[this.tableWarehouse.КоличествоColumn] = global::System.Convert.DBNull;
  4486. }
  4487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4489. public bool Is_Место_хранения__Склад_Витрина_Null() {
  4490. return this.IsNull(this.tableWarehouse._Место_хранения__Склад_Витрина_Column);
  4491. }
  4492. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4493. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4494. public void Set_Место_хранения__Склад_Витрина_Null() {
  4495. this[this.tableWarehouse._Место_хранения__Склад_Витрина_Column] = global::System.Convert.DBNull;
  4496. }
  4497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4499. public Consumables_soldRow[] GetConsumables_soldRows() {
  4500. if ((this.Table.ChildRelations["FK_Consumables_sold_Warehouse"] == null)) {
  4501. return new Consumables_soldRow[0];
  4502. }
  4503. else {
  4504. return ((Consumables_soldRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Consumables_sold_Warehouse"])));
  4505. }
  4506. }
  4507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4509. public DeliveriesRow[] GetDeliveriesRows() {
  4510. if ((this.Table.ChildRelations["FK_Deliveries_Warehouse"] == null)) {
  4511. return new DeliveriesRow[0];
  4512. }
  4513. else {
  4514. return ((DeliveriesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Deliveries_Warehouse"])));
  4515. }
  4516. }
  4517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4519. public Used_consumablesRow[] GetUsed_consumablesRows() {
  4520. if ((this.Table.ChildRelations["FK_Used_consumables_Warehouse"] == null)) {
  4521. return new Used_consumablesRow[0];
  4522. }
  4523. else {
  4524. return ((Used_consumablesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Used_consumables_Warehouse"])));
  4525. }
  4526. }
  4527. }
  4528. /// <summary>
  4529. ///Represents strongly named DataRow class.
  4530. ///</summary>
  4531. public partial class Отображение_по_артиклуRow : global::System.Data.DataRow {
  4532. private Отображение_по_артиклуDataTable tableОтображение_по_артиклу;
  4533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4535. internal Отображение_по_артиклуRow(global::System.Data.DataRowBuilder rb) :
  4536. base(rb) {
  4537. this.tableОтображение_по_артиклу = ((Отображение_по_артиклуDataTable)(this.Table));
  4538. }
  4539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4541. public string Артикул {
  4542. get {
  4543. return ((string)(this[this.tableОтображение_по_артиклу.АртикулColumn]));
  4544. }
  4545. set {
  4546. this[this.tableОтображение_по_артиклу.АртикулColumn] = value;
  4547. }
  4548. }
  4549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4551. public string Наименование {
  4552. get {
  4553. try {
  4554. return ((string)(this[this.tableОтображение_по_артиклу.НаименованиеColumn]));
  4555. }
  4556. catch (global::System.InvalidCastException e) {
  4557. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Отображение по артиклу\' равно DBNu" +
  4558. "ll.", e);
  4559. }
  4560. }
  4561. set {
  4562. this[this.tableОтображение_по_артиклу.НаименованиеColumn] = value;
  4563. }
  4564. }
  4565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4567. public decimal Цена {
  4568. get {
  4569. try {
  4570. return ((decimal)(this[this.tableОтображение_по_артиклу.ЦенаColumn]));
  4571. }
  4572. catch (global::System.InvalidCastException e) {
  4573. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Отображение по артиклу\' равно DBNull.", e);
  4574. }
  4575. }
  4576. set {
  4577. this[this.tableОтображение_по_артиклу.ЦенаColumn] = value;
  4578. }
  4579. }
  4580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4582. public int Количество {
  4583. get {
  4584. try {
  4585. return ((int)(this[this.tableОтображение_по_артиклу.КоличествоColumn]));
  4586. }
  4587. catch (global::System.InvalidCastException e) {
  4588. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Отображение по артиклу\' равно DBNull" +
  4589. ".", e);
  4590. }
  4591. }
  4592. set {
  4593. this[this.tableОтображение_по_артиклу.КоличествоColumn] = value;
  4594. }
  4595. }
  4596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4598. public string Место_хранения {
  4599. get {
  4600. try {
  4601. return ((string)(this[this.tableОтображение_по_артиклу.Место_храненияColumn]));
  4602. }
  4603. catch (global::System.InvalidCastException e) {
  4604. throw new global::System.Data.StrongTypingException("Значение для столбца \'Место_хранения\' в таблице \'Отображение по артиклу\' равно DB" +
  4605. "Null.", e);
  4606. }
  4607. }
  4608. set {
  4609. this[this.tableОтображение_по_артиклу.Место_храненияColumn] = value;
  4610. }
  4611. }
  4612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4614. public bool IsНаименованиеNull() {
  4615. return this.IsNull(this.tableОтображение_по_артиклу.НаименованиеColumn);
  4616. }
  4617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4619. public void SetНаименованиеNull() {
  4620. this[this.tableОтображение_по_артиклу.НаименованиеColumn] = global::System.Convert.DBNull;
  4621. }
  4622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4624. public bool IsЦенаNull() {
  4625. return this.IsNull(this.tableОтображение_по_артиклу.ЦенаColumn);
  4626. }
  4627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4629. public void SetЦенаNull() {
  4630. this[this.tableОтображение_по_артиклу.ЦенаColumn] = global::System.Convert.DBNull;
  4631. }
  4632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4634. public bool IsКоличествоNull() {
  4635. return this.IsNull(this.tableОтображение_по_артиклу.КоличествоColumn);
  4636. }
  4637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4639. public void SetКоличествоNull() {
  4640. this[this.tableОтображение_по_артиклу.КоличествоColumn] = global::System.Convert.DBNull;
  4641. }
  4642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4644. public bool IsМесто_храненияNull() {
  4645. return this.IsNull(this.tableОтображение_по_артиклу.Место_храненияColumn);
  4646. }
  4647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4649. public void SetМесто_храненияNull() {
  4650. this[this.tableОтображение_по_артиклу.Место_храненияColumn] = global::System.Convert.DBNull;
  4651. }
  4652. }
  4653. /// <summary>
  4654. ///Represents strongly named DataRow class.
  4655. ///</summary>
  4656. public partial class Отображение_по_количествуRow : global::System.Data.DataRow {
  4657. private Отображение_по_количествуDataTable tableОтображение_по_количеству;
  4658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4660. internal Отображение_по_количествуRow(global::System.Data.DataRowBuilder rb) :
  4661. base(rb) {
  4662. this.tableОтображение_по_количеству = ((Отображение_по_количествуDataTable)(this.Table));
  4663. }
  4664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4666. public string Артикул {
  4667. get {
  4668. return ((string)(this[this.tableОтображение_по_количеству.АртикулColumn]));
  4669. }
  4670. set {
  4671. this[this.tableОтображение_по_количеству.АртикулColumn] = value;
  4672. }
  4673. }
  4674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4676. public string Наименование {
  4677. get {
  4678. try {
  4679. return ((string)(this[this.tableОтображение_по_количеству.НаименованиеColumn]));
  4680. }
  4681. catch (global::System.InvalidCastException e) {
  4682. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Отображение по количеству\' равно D" +
  4683. "BNull.", e);
  4684. }
  4685. }
  4686. set {
  4687. this[this.tableОтображение_по_количеству.НаименованиеColumn] = value;
  4688. }
  4689. }
  4690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4692. public decimal Цена {
  4693. get {
  4694. try {
  4695. return ((decimal)(this[this.tableОтображение_по_количеству.ЦенаColumn]));
  4696. }
  4697. catch (global::System.InvalidCastException e) {
  4698. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Отображение по количеству\' равно DBNull.", e);
  4699. }
  4700. }
  4701. set {
  4702. this[this.tableОтображение_по_количеству.ЦенаColumn] = value;
  4703. }
  4704. }
  4705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4707. public int Количество {
  4708. get {
  4709. try {
  4710. return ((int)(this[this.tableОтображение_по_количеству.КоличествоColumn]));
  4711. }
  4712. catch (global::System.InvalidCastException e) {
  4713. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Отображение по количеству\' равно DBN" +
  4714. "ull.", e);
  4715. }
  4716. }
  4717. set {
  4718. this[this.tableОтображение_по_количеству.КоличествоColumn] = value;
  4719. }
  4720. }
  4721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4723. public string Место_хранения {
  4724. get {
  4725. try {
  4726. return ((string)(this[this.tableОтображение_по_количеству.Место_храненияColumn]));
  4727. }
  4728. catch (global::System.InvalidCastException e) {
  4729. throw new global::System.Data.StrongTypingException("Значение для столбца \'Место_хранения\' в таблице \'Отображение по количеству\' равно" +
  4730. " DBNull.", e);
  4731. }
  4732. }
  4733. set {
  4734. this[this.tableОтображение_по_количеству.Место_храненияColumn] = value;
  4735. }
  4736. }
  4737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4739. public bool IsНаименованиеNull() {
  4740. return this.IsNull(this.tableОтображение_по_количеству.НаименованиеColumn);
  4741. }
  4742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4744. public void SetНаименованиеNull() {
  4745. this[this.tableОтображение_по_количеству.НаименованиеColumn] = global::System.Convert.DBNull;
  4746. }
  4747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4749. public bool IsЦенаNull() {
  4750. return this.IsNull(this.tableОтображение_по_количеству.ЦенаColumn);
  4751. }
  4752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4754. public void SetЦенаNull() {
  4755. this[this.tableОтображение_по_количеству.ЦенаColumn] = global::System.Convert.DBNull;
  4756. }
  4757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4759. public bool IsКоличествоNull() {
  4760. return this.IsNull(this.tableОтображение_по_количеству.КоличествоColumn);
  4761. }
  4762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4764. public void SetКоличествоNull() {
  4765. this[this.tableОтображение_по_количеству.КоличествоColumn] = global::System.Convert.DBNull;
  4766. }
  4767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4769. public bool IsМесто_храненияNull() {
  4770. return this.IsNull(this.tableОтображение_по_количеству.Место_храненияColumn);
  4771. }
  4772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4774. public void SetМесто_храненияNull() {
  4775. this[this.tableОтображение_по_количеству.Место_храненияColumn] = global::System.Convert.DBNull;
  4776. }
  4777. }
  4778. /// <summary>
  4779. ///Represents strongly named DataRow class.
  4780. ///</summary>
  4781. public partial class Отображение_по_месту_храненияRow : global::System.Data.DataRow {
  4782. private Отображение_по_месту_храненияDataTable tableОтображение_по_месту_хранения;
  4783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4785. internal Отображение_по_месту_храненияRow(global::System.Data.DataRowBuilder rb) :
  4786. base(rb) {
  4787. this.tableОтображение_по_месту_хранения = ((Отображение_по_месту_храненияDataTable)(this.Table));
  4788. }
  4789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4791. public string Артикул {
  4792. get {
  4793. return ((string)(this[this.tableОтображение_по_месту_хранения.АртикулColumn]));
  4794. }
  4795. set {
  4796. this[this.tableОтображение_по_месту_хранения.АртикулColumn] = value;
  4797. }
  4798. }
  4799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4801. public string Наименование {
  4802. get {
  4803. try {
  4804. return ((string)(this[this.tableОтображение_по_месту_хранения.НаименованиеColumn]));
  4805. }
  4806. catch (global::System.InvalidCastException e) {
  4807. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Отображение по месту хранения\' рав" +
  4808. "но DBNull.", e);
  4809. }
  4810. }
  4811. set {
  4812. this[this.tableОтображение_по_месту_хранения.НаименованиеColumn] = value;
  4813. }
  4814. }
  4815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4817. public decimal Цена {
  4818. get {
  4819. try {
  4820. return ((decimal)(this[this.tableОтображение_по_месту_хранения.ЦенаColumn]));
  4821. }
  4822. catch (global::System.InvalidCastException e) {
  4823. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Отображение по месту хранения\' равно DBNul" +
  4824. "l.", e);
  4825. }
  4826. }
  4827. set {
  4828. this[this.tableОтображение_по_месту_хранения.ЦенаColumn] = value;
  4829. }
  4830. }
  4831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4833. public int Количество {
  4834. get {
  4835. try {
  4836. return ((int)(this[this.tableОтображение_по_месту_хранения.КоличествоColumn]));
  4837. }
  4838. catch (global::System.InvalidCastException e) {
  4839. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Отображение по месту хранения\' равно" +
  4840. " DBNull.", e);
  4841. }
  4842. }
  4843. set {
  4844. this[this.tableОтображение_по_месту_хранения.КоличествоColumn] = value;
  4845. }
  4846. }
  4847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4849. public string Место_хранения {
  4850. get {
  4851. try {
  4852. return ((string)(this[this.tableОтображение_по_месту_хранения.Место_храненияColumn]));
  4853. }
  4854. catch (global::System.InvalidCastException e) {
  4855. throw new global::System.Data.StrongTypingException("Значение для столбца \'Место_хранения\' в таблице \'Отображение по месту хранения\' р" +
  4856. "авно DBNull.", e);
  4857. }
  4858. }
  4859. set {
  4860. this[this.tableОтображение_по_месту_хранения.Место_храненияColumn] = value;
  4861. }
  4862. }
  4863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4865. public bool IsНаименованиеNull() {
  4866. return this.IsNull(this.tableОтображение_по_месту_хранения.НаименованиеColumn);
  4867. }
  4868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4870. public void SetНаименованиеNull() {
  4871. this[this.tableОтображение_по_месту_хранения.НаименованиеColumn] = global::System.Convert.DBNull;
  4872. }
  4873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4875. public bool IsЦенаNull() {
  4876. return this.IsNull(this.tableОтображение_по_месту_хранения.ЦенаColumn);
  4877. }
  4878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4880. public void SetЦенаNull() {
  4881. this[this.tableОтображение_по_месту_хранения.ЦенаColumn] = global::System.Convert.DBNull;
  4882. }
  4883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4885. public bool IsКоличествоNull() {
  4886. return this.IsNull(this.tableОтображение_по_месту_хранения.КоличествоColumn);
  4887. }
  4888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4890. public void SetКоличествоNull() {
  4891. this[this.tableОтображение_по_месту_хранения.КоличествоColumn] = global::System.Convert.DBNull;
  4892. }
  4893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4895. public bool IsМесто_храненияNull() {
  4896. return this.IsNull(this.tableОтображение_по_месту_хранения.Место_храненияColumn);
  4897. }
  4898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4900. public void SetМесто_храненияNull() {
  4901. this[this.tableОтображение_по_месту_хранения.Место_храненияColumn] = global::System.Convert.DBNull;
  4902. }
  4903. }
  4904. /// <summary>
  4905. ///Represents strongly named DataRow class.
  4906. ///</summary>
  4907. public partial class Отображение_по_наименованиюRow : global::System.Data.DataRow {
  4908. private Отображение_по_наименованиюDataTable tableОтображение_по_наименованию;
  4909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4911. internal Отображение_по_наименованиюRow(global::System.Data.DataRowBuilder rb) :
  4912. base(rb) {
  4913. this.tableОтображение_по_наименованию = ((Отображение_по_наименованиюDataTable)(this.Table));
  4914. }
  4915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4917. public string Артикул {
  4918. get {
  4919. return ((string)(this[this.tableОтображение_по_наименованию.АртикулColumn]));
  4920. }
  4921. set {
  4922. this[this.tableОтображение_по_наименованию.АртикулColumn] = value;
  4923. }
  4924. }
  4925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4927. public string Наименование {
  4928. get {
  4929. try {
  4930. return ((string)(this[this.tableОтображение_по_наименованию.НаименованиеColumn]));
  4931. }
  4932. catch (global::System.InvalidCastException e) {
  4933. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Отображение по наименованию\' равно" +
  4934. " DBNull.", e);
  4935. }
  4936. }
  4937. set {
  4938. this[this.tableОтображение_по_наименованию.НаименованиеColumn] = value;
  4939. }
  4940. }
  4941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4943. public decimal Цена {
  4944. get {
  4945. try {
  4946. return ((decimal)(this[this.tableОтображение_по_наименованию.ЦенаColumn]));
  4947. }
  4948. catch (global::System.InvalidCastException e) {
  4949. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Отображение по наименованию\' равно DBNull." +
  4950. "", e);
  4951. }
  4952. }
  4953. set {
  4954. this[this.tableОтображение_по_наименованию.ЦенаColumn] = value;
  4955. }
  4956. }
  4957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4959. public int Количество {
  4960. get {
  4961. try {
  4962. return ((int)(this[this.tableОтображение_по_наименованию.КоличествоColumn]));
  4963. }
  4964. catch (global::System.InvalidCastException e) {
  4965. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Отображение по наименованию\' равно D" +
  4966. "BNull.", e);
  4967. }
  4968. }
  4969. set {
  4970. this[this.tableОтображение_по_наименованию.КоличествоColumn] = value;
  4971. }
  4972. }
  4973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4975. public string Место_хранения {
  4976. get {
  4977. try {
  4978. return ((string)(this[this.tableОтображение_по_наименованию.Место_храненияColumn]));
  4979. }
  4980. catch (global::System.InvalidCastException e) {
  4981. throw new global::System.Data.StrongTypingException("Значение для столбца \'Место_хранения\' в таблице \'Отображение по наименованию\' рав" +
  4982. "но DBNull.", e);
  4983. }
  4984. }
  4985. set {
  4986. this[this.tableОтображение_по_наименованию.Место_храненияColumn] = value;
  4987. }
  4988. }
  4989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4991. public bool IsНаименованиеNull() {
  4992. return this.IsNull(this.tableОтображение_по_наименованию.НаименованиеColumn);
  4993. }
  4994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4996. public void SetНаименованиеNull() {
  4997. this[this.tableОтображение_по_наименованию.НаименованиеColumn] = global::System.Convert.DBNull;
  4998. }
  4999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5001. public bool IsЦенаNull() {
  5002. return this.IsNull(this.tableОтображение_по_наименованию.ЦенаColumn);
  5003. }
  5004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5006. public void SetЦенаNull() {
  5007. this[this.tableОтображение_по_наименованию.ЦенаColumn] = global::System.Convert.DBNull;
  5008. }
  5009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5011. public bool IsКоличествоNull() {
  5012. return this.IsNull(this.tableОтображение_по_наименованию.КоличествоColumn);
  5013. }
  5014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5016. public void SetКоличествоNull() {
  5017. this[this.tableОтображение_по_наименованию.КоличествоColumn] = global::System.Convert.DBNull;
  5018. }
  5019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5021. public bool IsМесто_храненияNull() {
  5022. return this.IsNull(this.tableОтображение_по_наименованию.Место_храненияColumn);
  5023. }
  5024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5026. public void SetМесто_храненияNull() {
  5027. this[this.tableОтображение_по_наименованию.Место_храненияColumn] = global::System.Convert.DBNull;
  5028. }
  5029. }
  5030. /// <summary>
  5031. ///Represents strongly named DataRow class.
  5032. ///</summary>
  5033. public partial class Отображение_по_ценеRow : global::System.Data.DataRow {
  5034. private Отображение_по_ценеDataTable tableОтображение_по_цене;
  5035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5037. internal Отображение_по_ценеRow(global::System.Data.DataRowBuilder rb) :
  5038. base(rb) {
  5039. this.tableОтображение_по_цене = ((Отображение_по_ценеDataTable)(this.Table));
  5040. }
  5041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5043. public string Артикул {
  5044. get {
  5045. return ((string)(this[this.tableОтображение_по_цене.АртикулColumn]));
  5046. }
  5047. set {
  5048. this[this.tableОтображение_по_цене.АртикулColumn] = value;
  5049. }
  5050. }
  5051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5053. public string Наименование {
  5054. get {
  5055. try {
  5056. return ((string)(this[this.tableОтображение_по_цене.НаименованиеColumn]));
  5057. }
  5058. catch (global::System.InvalidCastException e) {
  5059. throw new global::System.Data.StrongTypingException("Значение для столбца \'Наименование\' в таблице \'Отображение по цене\' равно DBNull." +
  5060. "", e);
  5061. }
  5062. }
  5063. set {
  5064. this[this.tableОтображение_по_цене.НаименованиеColumn] = value;
  5065. }
  5066. }
  5067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5069. public decimal Цена {
  5070. get {
  5071. try {
  5072. return ((decimal)(this[this.tableОтображение_по_цене.ЦенаColumn]));
  5073. }
  5074. catch (global::System.InvalidCastException e) {
  5075. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена\' в таблице \'Отображение по цене\' равно DBNull.", e);
  5076. }
  5077. }
  5078. set {
  5079. this[this.tableОтображение_по_цене.ЦенаColumn] = value;
  5080. }
  5081. }
  5082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5084. public int Количество {
  5085. get {
  5086. try {
  5087. return ((int)(this[this.tableОтображение_по_цене.КоличествоColumn]));
  5088. }
  5089. catch (global::System.InvalidCastException e) {
  5090. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Отображение по цене\' равно DBNull.", e);
  5091. }
  5092. }
  5093. set {
  5094. this[this.tableОтображение_по_цене.КоличествоColumn] = value;
  5095. }
  5096. }
  5097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5099. public string Место_хранения {
  5100. get {
  5101. try {
  5102. return ((string)(this[this.tableОтображение_по_цене.Место_храненияColumn]));
  5103. }
  5104. catch (global::System.InvalidCastException e) {
  5105. throw new global::System.Data.StrongTypingException("Значение для столбца \'Место_хранения\' в таблице \'Отображение по цене\' равно DBNul" +
  5106. "l.", e);
  5107. }
  5108. }
  5109. set {
  5110. this[this.tableОтображение_по_цене.Место_храненияColumn] = value;
  5111. }
  5112. }
  5113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5115. public bool IsНаименованиеNull() {
  5116. return this.IsNull(this.tableОтображение_по_цене.НаименованиеColumn);
  5117. }
  5118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5120. public void SetНаименованиеNull() {
  5121. this[this.tableОтображение_по_цене.НаименованиеColumn] = global::System.Convert.DBNull;
  5122. }
  5123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5125. public bool IsЦенаNull() {
  5126. return this.IsNull(this.tableОтображение_по_цене.ЦенаColumn);
  5127. }
  5128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5130. public void SetЦенаNull() {
  5131. this[this.tableОтображение_по_цене.ЦенаColumn] = global::System.Convert.DBNull;
  5132. }
  5133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5135. public bool IsКоличествоNull() {
  5136. return this.IsNull(this.tableОтображение_по_цене.КоличествоColumn);
  5137. }
  5138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5140. public void SetКоличествоNull() {
  5141. this[this.tableОтображение_по_цене.КоличествоColumn] = global::System.Convert.DBNull;
  5142. }
  5143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5145. public bool IsМесто_храненияNull() {
  5146. return this.IsNull(this.tableОтображение_по_цене.Место_храненияColumn);
  5147. }
  5148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5150. public void SetМесто_храненияNull() {
  5151. this[this.tableОтображение_по_цене.Место_храненияColumn] = global::System.Convert.DBNull;
  5152. }
  5153. }
  5154. /// <summary>
  5155. ///Row event argument class
  5156. ///</summary>
  5157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5158. public class Consumables_soldRowChangeEvent : global::System.EventArgs {
  5159. private Consumables_soldRow eventRow;
  5160. private global::System.Data.DataRowAction eventAction;
  5161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5163. public Consumables_soldRowChangeEvent(Consumables_soldRow row, global::System.Data.DataRowAction action) {
  5164. this.eventRow = row;
  5165. this.eventAction = action;
  5166. }
  5167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5169. public Consumables_soldRow Row {
  5170. get {
  5171. return this.eventRow;
  5172. }
  5173. }
  5174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5176. public global::System.Data.DataRowAction Action {
  5177. get {
  5178. return this.eventAction;
  5179. }
  5180. }
  5181. }
  5182. /// <summary>
  5183. ///Row event argument class
  5184. ///</summary>
  5185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5186. public class DeliveriesRowChangeEvent : global::System.EventArgs {
  5187. private DeliveriesRow eventRow;
  5188. private global::System.Data.DataRowAction eventAction;
  5189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5191. public DeliveriesRowChangeEvent(DeliveriesRow row, global::System.Data.DataRowAction action) {
  5192. this.eventRow = row;
  5193. this.eventAction = action;
  5194. }
  5195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5197. public DeliveriesRow Row {
  5198. get {
  5199. return this.eventRow;
  5200. }
  5201. }
  5202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5204. public global::System.Data.DataRowAction Action {
  5205. get {
  5206. return this.eventAction;
  5207. }
  5208. }
  5209. }
  5210. /// <summary>
  5211. ///Row event argument class
  5212. ///</summary>
  5213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5214. public class ListRowChangeEvent : global::System.EventArgs {
  5215. private ListRow eventRow;
  5216. private global::System.Data.DataRowAction eventAction;
  5217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5219. public ListRowChangeEvent(ListRow row, global::System.Data.DataRowAction action) {
  5220. this.eventRow = row;
  5221. this.eventAction = action;
  5222. }
  5223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5225. public ListRow Row {
  5226. get {
  5227. return this.eventRow;
  5228. }
  5229. }
  5230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5232. public global::System.Data.DataRowAction Action {
  5233. get {
  5234. return this.eventAction;
  5235. }
  5236. }
  5237. }
  5238. /// <summary>
  5239. ///Row event argument class
  5240. ///</summary>
  5241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5242. public class PurchaseRowChangeEvent : global::System.EventArgs {
  5243. private PurchaseRow eventRow;
  5244. private global::System.Data.DataRowAction eventAction;
  5245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5247. public PurchaseRowChangeEvent(PurchaseRow row, global::System.Data.DataRowAction action) {
  5248. this.eventRow = row;
  5249. this.eventAction = action;
  5250. }
  5251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5253. public PurchaseRow Row {
  5254. get {
  5255. return this.eventRow;
  5256. }
  5257. }
  5258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5260. public global::System.Data.DataRowAction Action {
  5261. get {
  5262. return this.eventAction;
  5263. }
  5264. }
  5265. }
  5266. /// <summary>
  5267. ///Row event argument class
  5268. ///</summary>
  5269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5270. public class Used_consumablesRowChangeEvent : global::System.EventArgs {
  5271. private Used_consumablesRow eventRow;
  5272. private global::System.Data.DataRowAction eventAction;
  5273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5275. public Used_consumablesRowChangeEvent(Used_consumablesRow row, global::System.Data.DataRowAction action) {
  5276. this.eventRow = row;
  5277. this.eventAction = action;
  5278. }
  5279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5281. public Used_consumablesRow Row {
  5282. get {
  5283. return this.eventRow;
  5284. }
  5285. }
  5286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5288. public global::System.Data.DataRowAction Action {
  5289. get {
  5290. return this.eventAction;
  5291. }
  5292. }
  5293. }
  5294. /// <summary>
  5295. ///Row event argument class
  5296. ///</summary>
  5297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5298. public class WarehouseRowChangeEvent : global::System.EventArgs {
  5299. private WarehouseRow eventRow;
  5300. private global::System.Data.DataRowAction eventAction;
  5301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5303. public WarehouseRowChangeEvent(WarehouseRow row, global::System.Data.DataRowAction action) {
  5304. this.eventRow = row;
  5305. this.eventAction = action;
  5306. }
  5307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5309. public WarehouseRow Row {
  5310. get {
  5311. return this.eventRow;
  5312. }
  5313. }
  5314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5316. public global::System.Data.DataRowAction Action {
  5317. get {
  5318. return this.eventAction;
  5319. }
  5320. }
  5321. }
  5322. /// <summary>
  5323. ///Row event argument class
  5324. ///</summary>
  5325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5326. public class Отображение_по_артиклуRowChangeEvent : global::System.EventArgs {
  5327. private Отображение_по_артиклуRow eventRow;
  5328. private global::System.Data.DataRowAction eventAction;
  5329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5331. public Отображение_по_артиклуRowChangeEvent(Отображение_по_артиклуRow row, global::System.Data.DataRowAction action) {
  5332. this.eventRow = row;
  5333. this.eventAction = action;
  5334. }
  5335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5337. public Отображение_по_артиклуRow Row {
  5338. get {
  5339. return this.eventRow;
  5340. }
  5341. }
  5342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5344. public global::System.Data.DataRowAction Action {
  5345. get {
  5346. return this.eventAction;
  5347. }
  5348. }
  5349. }
  5350. /// <summary>
  5351. ///Row event argument class
  5352. ///</summary>
  5353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5354. public class Отображение_по_количествуRowChangeEvent : global::System.EventArgs {
  5355. private Отображение_по_количествуRow eventRow;
  5356. private global::System.Data.DataRowAction eventAction;
  5357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5359. public Отображение_по_количествуRowChangeEvent(Отображение_по_количествуRow row, global::System.Data.DataRowAction action) {
  5360. this.eventRow = row;
  5361. this.eventAction = action;
  5362. }
  5363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5365. public Отображение_по_количествуRow Row {
  5366. get {
  5367. return this.eventRow;
  5368. }
  5369. }
  5370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5372. public global::System.Data.DataRowAction Action {
  5373. get {
  5374. return this.eventAction;
  5375. }
  5376. }
  5377. }
  5378. /// <summary>
  5379. ///Row event argument class
  5380. ///</summary>
  5381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5382. public class Отображение_по_месту_храненияRowChangeEvent : global::System.EventArgs {
  5383. private Отображение_по_месту_храненияRow eventRow;
  5384. private global::System.Data.DataRowAction eventAction;
  5385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5387. public Отображение_по_месту_храненияRowChangeEvent(Отображение_по_месту_храненияRow row, global::System.Data.DataRowAction action) {
  5388. this.eventRow = row;
  5389. this.eventAction = action;
  5390. }
  5391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5393. public Отображение_по_месту_храненияRow Row {
  5394. get {
  5395. return this.eventRow;
  5396. }
  5397. }
  5398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5400. public global::System.Data.DataRowAction Action {
  5401. get {
  5402. return this.eventAction;
  5403. }
  5404. }
  5405. }
  5406. /// <summary>
  5407. ///Row event argument class
  5408. ///</summary>
  5409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5410. public class Отображение_по_наименованиюRowChangeEvent : global::System.EventArgs {
  5411. private Отображение_по_наименованиюRow eventRow;
  5412. private global::System.Data.DataRowAction eventAction;
  5413. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5415. public Отображение_по_наименованиюRowChangeEvent(Отображение_по_наименованиюRow row, global::System.Data.DataRowAction action) {
  5416. this.eventRow = row;
  5417. this.eventAction = action;
  5418. }
  5419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5421. public Отображение_по_наименованиюRow Row {
  5422. get {
  5423. return this.eventRow;
  5424. }
  5425. }
  5426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5428. public global::System.Data.DataRowAction Action {
  5429. get {
  5430. return this.eventAction;
  5431. }
  5432. }
  5433. }
  5434. /// <summary>
  5435. ///Row event argument class
  5436. ///</summary>
  5437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5438. public class Отображение_по_ценеRowChangeEvent : global::System.EventArgs {
  5439. private Отображение_по_ценеRow eventRow;
  5440. private global::System.Data.DataRowAction eventAction;
  5441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5443. public Отображение_по_ценеRowChangeEvent(Отображение_по_ценеRow row, global::System.Data.DataRowAction action) {
  5444. this.eventRow = row;
  5445. this.eventAction = action;
  5446. }
  5447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5449. public Отображение_по_ценеRow Row {
  5450. get {
  5451. return this.eventRow;
  5452. }
  5453. }
  5454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5456. public global::System.Data.DataRowAction Action {
  5457. get {
  5458. return this.eventAction;
  5459. }
  5460. }
  5461. }
  5462. }
  5463. }
  5464. namespace IS_hairdresser.GushchinaDataSet1TableAdapters {
  5465. /// <summary>
  5466. ///Represents the connection and commands used to retrieve and save data.
  5467. ///</summary>
  5468. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5469. [global::System.ComponentModel.ToolboxItem(true)]
  5470. [global::System.ComponentModel.DataObjectAttribute(true)]
  5471. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5472. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5473. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5474. public partial class Consumables_soldTableAdapter : global::System.ComponentModel.Component {
  5475. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5476. private global::System.Data.SqlClient.SqlConnection _connection;
  5477. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5478. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5479. private bool _clearBeforeFill;
  5480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5482. public Consumables_soldTableAdapter() {
  5483. this.ClearBeforeFill = true;
  5484. }
  5485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5487. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5488. get {
  5489. if ((this._adapter == null)) {
  5490. this.InitAdapter();
  5491. }
  5492. return this._adapter;
  5493. }
  5494. }
  5495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5497. internal global::System.Data.SqlClient.SqlConnection Connection {
  5498. get {
  5499. if ((this._connection == null)) {
  5500. this.InitConnection();
  5501. }
  5502. return this._connection;
  5503. }
  5504. set {
  5505. this._connection = value;
  5506. if ((this.Adapter.InsertCommand != null)) {
  5507. this.Adapter.InsertCommand.Connection = value;
  5508. }
  5509. if ((this.Adapter.DeleteCommand != null)) {
  5510. this.Adapter.DeleteCommand.Connection = value;
  5511. }
  5512. if ((this.Adapter.UpdateCommand != null)) {
  5513. this.Adapter.UpdateCommand.Connection = value;
  5514. }
  5515. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5516. if ((this.CommandCollection[i] != null)) {
  5517. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5518. }
  5519. }
  5520. }
  5521. }
  5522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5524. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5525. get {
  5526. return this._transaction;
  5527. }
  5528. set {
  5529. this._transaction = value;
  5530. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5531. this.CommandCollection[i].Transaction = this._transaction;
  5532. }
  5533. if (((this.Adapter != null)
  5534. && (this.Adapter.DeleteCommand != null))) {
  5535. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5536. }
  5537. if (((this.Adapter != null)
  5538. && (this.Adapter.InsertCommand != null))) {
  5539. this.Adapter.InsertCommand.Transaction = this._transaction;
  5540. }
  5541. if (((this.Adapter != null)
  5542. && (this.Adapter.UpdateCommand != null))) {
  5543. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5544. }
  5545. }
  5546. }
  5547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5549. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5550. get {
  5551. if ((this._commandCollection == null)) {
  5552. this.InitCommandCollection();
  5553. }
  5554. return this._commandCollection;
  5555. }
  5556. }
  5557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5559. public bool ClearBeforeFill {
  5560. get {
  5561. return this._clearBeforeFill;
  5562. }
  5563. set {
  5564. this._clearBeforeFill = value;
  5565. }
  5566. }
  5567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5569. private void InitAdapter() {
  5570. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5571. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5572. tableMapping.SourceTable = "Table";
  5573. tableMapping.DataSetTable = "Consumables_sold";
  5574. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  5575. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  5576. tableMapping.ColumnMappings.Add("Цена", "Цена");
  5577. tableMapping.ColumnMappings.Add("Количество", "Количество");
  5578. tableMapping.ColumnMappings.Add("Дата", "Дата");
  5579. tableMapping.ColumnMappings.Add("Сотрудник", "Сотрудник");
  5580. this._adapter.TableMappings.Add(tableMapping);
  5581. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5582. this._adapter.InsertCommand.Connection = this.Connection;
  5583. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Consumables_sold] ([Артикул], [Наименование], [Цена], [Количес" +
  5584. "тво], [Дата], [Сотрудник]) VALUES (@Артикул, @Наименование, @Цена, @Количество, " +
  5585. "@Дата, @Сотрудник)";
  5586. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5587. 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, "", "", ""));
  5588. 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, "", "", ""));
  5589. 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, "", "", ""));
  5590. 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, "", "", ""));
  5591. 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, "", "", ""));
  5592. 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, "", "", ""));
  5593. }
  5594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5596. private void InitConnection() {
  5597. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5598. this._connection.ConnectionString = global::IS_hairdresser.Properties.Settings.Default.GushchinaConnectionString;
  5599. }
  5600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5602. private void InitCommandCollection() {
  5603. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5604. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5605. this._commandCollection[0].Connection = this.Connection;
  5606. this._commandCollection[0].CommandText = "SELECT Артикул, Наименование, Цена, Количество, Дата, Сотрудник FROM dbo.Consumab" +
  5607. "les_sold";
  5608. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5609. }
  5610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5612. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5613. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5614. public virtual int Fill(GushchinaDataSet1.Consumables_soldDataTable dataTable) {
  5615. this.Adapter.SelectCommand = this.CommandCollection[0];
  5616. if ((this.ClearBeforeFill == true)) {
  5617. dataTable.Clear();
  5618. }
  5619. int returnValue = this.Adapter.Fill(dataTable);
  5620. return returnValue;
  5621. }
  5622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5624. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5625. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5626. public virtual GushchinaDataSet1.Consumables_soldDataTable GetData() {
  5627. this.Adapter.SelectCommand = this.CommandCollection[0];
  5628. GushchinaDataSet1.Consumables_soldDataTable dataTable = new GushchinaDataSet1.Consumables_soldDataTable();
  5629. this.Adapter.Fill(dataTable);
  5630. return dataTable;
  5631. }
  5632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5634. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5635. public virtual int Update(GushchinaDataSet1.Consumables_soldDataTable dataTable) {
  5636. return this.Adapter.Update(dataTable);
  5637. }
  5638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5640. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5641. public virtual int Update(GushchinaDataSet1 dataSet) {
  5642. return this.Adapter.Update(dataSet, "Consumables_sold");
  5643. }
  5644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5646. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5647. public virtual int Update(global::System.Data.DataRow dataRow) {
  5648. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5649. dataRow});
  5650. }
  5651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5653. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5654. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5655. return this.Adapter.Update(dataRows);
  5656. }
  5657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5659. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5660. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5661. public virtual int Insert(string Артикул, string Наименование, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, global::System.Nullable<global::System.DateTime> Дата, string Сотрудник) {
  5662. if ((Артикул == null)) {
  5663. throw new global::System.ArgumentNullException("Артикул");
  5664. }
  5665. else {
  5666. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Артикул));
  5667. }
  5668. if ((Наименование == null)) {
  5669. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5670. }
  5671. else {
  5672. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  5673. }
  5674. if ((Цена.HasValue == true)) {
  5675. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  5676. }
  5677. else {
  5678. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5679. }
  5680. if ((Количество.HasValue == true)) {
  5681. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Количество.Value));
  5682. }
  5683. else {
  5684. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5685. }
  5686. if ((Дата.HasValue == true)) {
  5687. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(Дата.Value));
  5688. }
  5689. else {
  5690. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  5691. }
  5692. if ((Сотрудник == null)) {
  5693. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  5694. }
  5695. else {
  5696. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Сотрудник));
  5697. }
  5698. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5699. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5700. != global::System.Data.ConnectionState.Open)) {
  5701. this.Adapter.InsertCommand.Connection.Open();
  5702. }
  5703. try {
  5704. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5705. return returnValue;
  5706. }
  5707. finally {
  5708. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5709. this.Adapter.InsertCommand.Connection.Close();
  5710. }
  5711. }
  5712. }
  5713. }
  5714. /// <summary>
  5715. ///Represents the connection and commands used to retrieve and save data.
  5716. ///</summary>
  5717. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5718. [global::System.ComponentModel.ToolboxItem(true)]
  5719. [global::System.ComponentModel.DataObjectAttribute(true)]
  5720. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5721. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5722. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5723. public partial class DeliveriesTableAdapter : global::System.ComponentModel.Component {
  5724. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5725. private global::System.Data.SqlClient.SqlConnection _connection;
  5726. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5727. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5728. private bool _clearBeforeFill;
  5729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5731. public DeliveriesTableAdapter() {
  5732. this.ClearBeforeFill = true;
  5733. }
  5734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5736. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5737. get {
  5738. if ((this._adapter == null)) {
  5739. this.InitAdapter();
  5740. }
  5741. return this._adapter;
  5742. }
  5743. }
  5744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5746. internal global::System.Data.SqlClient.SqlConnection Connection {
  5747. get {
  5748. if ((this._connection == null)) {
  5749. this.InitConnection();
  5750. }
  5751. return this._connection;
  5752. }
  5753. set {
  5754. this._connection = value;
  5755. if ((this.Adapter.InsertCommand != null)) {
  5756. this.Adapter.InsertCommand.Connection = value;
  5757. }
  5758. if ((this.Adapter.DeleteCommand != null)) {
  5759. this.Adapter.DeleteCommand.Connection = value;
  5760. }
  5761. if ((this.Adapter.UpdateCommand != null)) {
  5762. this.Adapter.UpdateCommand.Connection = value;
  5763. }
  5764. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5765. if ((this.CommandCollection[i] != null)) {
  5766. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5767. }
  5768. }
  5769. }
  5770. }
  5771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5773. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5774. get {
  5775. return this._transaction;
  5776. }
  5777. set {
  5778. this._transaction = value;
  5779. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5780. this.CommandCollection[i].Transaction = this._transaction;
  5781. }
  5782. if (((this.Adapter != null)
  5783. && (this.Adapter.DeleteCommand != null))) {
  5784. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5785. }
  5786. if (((this.Adapter != null)
  5787. && (this.Adapter.InsertCommand != null))) {
  5788. this.Adapter.InsertCommand.Transaction = this._transaction;
  5789. }
  5790. if (((this.Adapter != null)
  5791. && (this.Adapter.UpdateCommand != null))) {
  5792. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5793. }
  5794. }
  5795. }
  5796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5798. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5799. get {
  5800. if ((this._commandCollection == null)) {
  5801. this.InitCommandCollection();
  5802. }
  5803. return this._commandCollection;
  5804. }
  5805. }
  5806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5808. public bool ClearBeforeFill {
  5809. get {
  5810. return this._clearBeforeFill;
  5811. }
  5812. set {
  5813. this._clearBeforeFill = value;
  5814. }
  5815. }
  5816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5818. private void InitAdapter() {
  5819. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5820. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5821. tableMapping.SourceTable = "Table";
  5822. tableMapping.DataSetTable = "Deliveries";
  5823. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  5824. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  5825. tableMapping.ColumnMappings.Add("Цена", "Цена");
  5826. tableMapping.ColumnMappings.Add("Дата", "Дата");
  5827. this._adapter.TableMappings.Add(tableMapping);
  5828. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5829. this._adapter.InsertCommand.Connection = this.Connection;
  5830. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Deliveries] ([Артикул], [Наименование], [Цена], [Дата]) VALUES" +
  5831. " (@Артикул, @Наименование, @Цена, @Дата)";
  5832. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5833. 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, "", "", ""));
  5834. 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, "", "", ""));
  5835. 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, "", "", ""));
  5836. 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, "", "", ""));
  5837. }
  5838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5840. private void InitConnection() {
  5841. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5842. this._connection.ConnectionString = global::IS_hairdresser.Properties.Settings.Default.GushchinaConnectionString;
  5843. }
  5844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5846. private void InitCommandCollection() {
  5847. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5848. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5849. this._commandCollection[0].Connection = this.Connection;
  5850. this._commandCollection[0].CommandText = "SELECT Артикул, Наименование, Цена, Дата FROM dbo.Deliveries";
  5851. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5852. }
  5853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5855. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5856. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5857. public virtual int Fill(GushchinaDataSet1.DeliveriesDataTable dataTable) {
  5858. this.Adapter.SelectCommand = this.CommandCollection[0];
  5859. if ((this.ClearBeforeFill == true)) {
  5860. dataTable.Clear();
  5861. }
  5862. int returnValue = this.Adapter.Fill(dataTable);
  5863. return returnValue;
  5864. }
  5865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5867. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5868. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5869. public virtual GushchinaDataSet1.DeliveriesDataTable GetData() {
  5870. this.Adapter.SelectCommand = this.CommandCollection[0];
  5871. GushchinaDataSet1.DeliveriesDataTable dataTable = new GushchinaDataSet1.DeliveriesDataTable();
  5872. this.Adapter.Fill(dataTable);
  5873. return dataTable;
  5874. }
  5875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5877. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5878. public virtual int Update(GushchinaDataSet1.DeliveriesDataTable dataTable) {
  5879. return this.Adapter.Update(dataTable);
  5880. }
  5881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5883. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5884. public virtual int Update(GushchinaDataSet1 dataSet) {
  5885. return this.Adapter.Update(dataSet, "Deliveries");
  5886. }
  5887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5889. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5890. public virtual int Update(global::System.Data.DataRow dataRow) {
  5891. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5892. dataRow});
  5893. }
  5894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5896. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5897. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5898. return this.Adapter.Update(dataRows);
  5899. }
  5900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5902. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5903. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5904. public virtual int Insert(string Артикул, string Наименование, global::System.Nullable<decimal> Цена, global::System.Nullable<global::System.DateTime> Дата) {
  5905. if ((Артикул == null)) {
  5906. throw new global::System.ArgumentNullException("Артикул");
  5907. }
  5908. else {
  5909. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Артикул));
  5910. }
  5911. if ((Наименование == null)) {
  5912. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  5913. }
  5914. else {
  5915. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  5916. }
  5917. if ((Цена.HasValue == true)) {
  5918. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  5919. }
  5920. else {
  5921. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  5922. }
  5923. if ((Дата.HasValue == true)) {
  5924. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(Дата.Value));
  5925. }
  5926. else {
  5927. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  5928. }
  5929. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5930. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5931. != global::System.Data.ConnectionState.Open)) {
  5932. this.Adapter.InsertCommand.Connection.Open();
  5933. }
  5934. try {
  5935. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5936. return returnValue;
  5937. }
  5938. finally {
  5939. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5940. this.Adapter.InsertCommand.Connection.Close();
  5941. }
  5942. }
  5943. }
  5944. }
  5945. /// <summary>
  5946. ///Represents the connection and commands used to retrieve and save data.
  5947. ///</summary>
  5948. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5949. [global::System.ComponentModel.ToolboxItem(true)]
  5950. [global::System.ComponentModel.DataObjectAttribute(true)]
  5951. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5952. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5953. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5954. public partial class ListTableAdapter : global::System.ComponentModel.Component {
  5955. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5956. private global::System.Data.SqlClient.SqlConnection _connection;
  5957. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5958. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5959. private bool _clearBeforeFill;
  5960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5962. public ListTableAdapter() {
  5963. this.ClearBeforeFill = true;
  5964. }
  5965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5967. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5968. get {
  5969. if ((this._adapter == null)) {
  5970. this.InitAdapter();
  5971. }
  5972. return this._adapter;
  5973. }
  5974. }
  5975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5977. internal global::System.Data.SqlClient.SqlConnection Connection {
  5978. get {
  5979. if ((this._connection == null)) {
  5980. this.InitConnection();
  5981. }
  5982. return this._connection;
  5983. }
  5984. set {
  5985. this._connection = value;
  5986. if ((this.Adapter.InsertCommand != null)) {
  5987. this.Adapter.InsertCommand.Connection = value;
  5988. }
  5989. if ((this.Adapter.DeleteCommand != null)) {
  5990. this.Adapter.DeleteCommand.Connection = value;
  5991. }
  5992. if ((this.Adapter.UpdateCommand != null)) {
  5993. this.Adapter.UpdateCommand.Connection = value;
  5994. }
  5995. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5996. if ((this.CommandCollection[i] != null)) {
  5997. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5998. }
  5999. }
  6000. }
  6001. }
  6002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6004. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6005. get {
  6006. return this._transaction;
  6007. }
  6008. set {
  6009. this._transaction = value;
  6010. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6011. this.CommandCollection[i].Transaction = this._transaction;
  6012. }
  6013. if (((this.Adapter != null)
  6014. && (this.Adapter.DeleteCommand != null))) {
  6015. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6016. }
  6017. if (((this.Adapter != null)
  6018. && (this.Adapter.InsertCommand != null))) {
  6019. this.Adapter.InsertCommand.Transaction = this._transaction;
  6020. }
  6021. if (((this.Adapter != null)
  6022. && (this.Adapter.UpdateCommand != null))) {
  6023. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6024. }
  6025. }
  6026. }
  6027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6029. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6030. get {
  6031. if ((this._commandCollection == null)) {
  6032. this.InitCommandCollection();
  6033. }
  6034. return this._commandCollection;
  6035. }
  6036. }
  6037. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6039. public bool ClearBeforeFill {
  6040. get {
  6041. return this._clearBeforeFill;
  6042. }
  6043. set {
  6044. this._clearBeforeFill = value;
  6045. }
  6046. }
  6047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6049. private void InitAdapter() {
  6050. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6051. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6052. tableMapping.SourceTable = "Table";
  6053. tableMapping.DataSetTable = "List";
  6054. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  6055. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  6056. tableMapping.ColumnMappings.Add("Цена", "Цена");
  6057. tableMapping.ColumnMappings.Add("Количество", "Количество");
  6058. tableMapping.ColumnMappings.Add("Место_хранения", "Место_хранения");
  6059. this._adapter.TableMappings.Add(tableMapping);
  6060. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6061. this._adapter.DeleteCommand.Connection = this.Connection;
  6062. 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_Место_хранения)))";
  6063. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6064. 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, "", "", ""));
  6065. 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, "", "", ""));
  6066. 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, "", "", ""));
  6067. 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, "", "", ""));
  6068. 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, "", "", ""));
  6069. 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, "", "", ""));
  6070. 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, "", "", ""));
  6071. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6072. this._adapter.InsertCommand.Connection = this.Connection;
  6073. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[List] ([Артикул], [Наименование], [Цена], [Количество], [Место_хранения]) VALUES (@Артикул, @Наименование, @Цена, @Количество, @Место_хранения);
  6074. SELECT Артикул, Наименование, Цена, Количество, Место_хранения FROM List WHERE (Артикул = @Артикул)";
  6075. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6076. 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, "", "", ""));
  6077. 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, "", "", ""));
  6078. 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, "", "", ""));
  6079. 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, "", "", ""));
  6080. 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, "", "", ""));
  6081. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6082. this._adapter.UpdateCommand.Connection = this.Connection;
  6083. 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_Место_хранения)));
  6084. SELECT Артикул, Наименование, Цена, Количество, Место_хранения FROM List WHERE (Артикул = @Артикул)";
  6085. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6086. 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, "", "", ""));
  6087. 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, "", "", ""));
  6088. 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, "", "", ""));
  6089. 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, "", "", ""));
  6090. 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, "", "", ""));
  6091. 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, "", "", ""));
  6092. 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, "", "", ""));
  6093. 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, "", "", ""));
  6094. 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, "", "", ""));
  6095. 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, "", "", ""));
  6096. 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, "", "", ""));
  6097. 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, "", "", ""));
  6098. }
  6099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6101. private void InitConnection() {
  6102. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6103. this._connection.ConnectionString = global::IS_hairdresser.Properties.Settings.Default.GushchinaConnectionString;
  6104. }
  6105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6107. private void InitCommandCollection() {
  6108. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6109. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6110. this._commandCollection[0].Connection = this.Connection;
  6111. this._commandCollection[0].CommandText = "SELECT Артикул, Наименование, Цена, Количество, Место_хранения FROM dbo.List";
  6112. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6113. }
  6114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6116. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6117. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6118. public virtual int Fill(GushchinaDataSet1.ListDataTable dataTable) {
  6119. this.Adapter.SelectCommand = this.CommandCollection[0];
  6120. if ((this.ClearBeforeFill == true)) {
  6121. dataTable.Clear();
  6122. }
  6123. int returnValue = this.Adapter.Fill(dataTable);
  6124. return returnValue;
  6125. }
  6126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6128. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6129. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6130. public virtual GushchinaDataSet1.ListDataTable GetData() {
  6131. this.Adapter.SelectCommand = this.CommandCollection[0];
  6132. GushchinaDataSet1.ListDataTable dataTable = new GushchinaDataSet1.ListDataTable();
  6133. this.Adapter.Fill(dataTable);
  6134. return dataTable;
  6135. }
  6136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6138. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6139. public virtual int Update(GushchinaDataSet1.ListDataTable dataTable) {
  6140. return this.Adapter.Update(dataTable);
  6141. }
  6142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6143. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6144. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6145. public virtual int Update(GushchinaDataSet1 dataSet) {
  6146. return this.Adapter.Update(dataSet, "List");
  6147. }
  6148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6150. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6151. public virtual int Update(global::System.Data.DataRow dataRow) {
  6152. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6153. dataRow});
  6154. }
  6155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6157. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6158. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6159. return this.Adapter.Update(dataRows);
  6160. }
  6161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6163. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6164. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6165. public virtual int Delete(string Original_Артикул, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, string Original_Место_хранения) {
  6166. if ((Original_Артикул == null)) {
  6167. throw new global::System.ArgumentNullException("Original_Артикул");
  6168. }
  6169. else {
  6170. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Артикул));
  6171. }
  6172. if ((Original_Цена.HasValue == true)) {
  6173. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6174. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Цена.Value));
  6175. }
  6176. else {
  6177. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6178. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6179. }
  6180. if ((Original_Количество.HasValue == true)) {
  6181. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6182. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Количество.Value));
  6183. }
  6184. else {
  6185. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6186. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6187. }
  6188. if ((Original_Место_хранения == null)) {
  6189. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6190. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6191. }
  6192. else {
  6193. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6194. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Место_хранения));
  6195. }
  6196. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6197. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6198. != global::System.Data.ConnectionState.Open)) {
  6199. this.Adapter.DeleteCommand.Connection.Open();
  6200. }
  6201. try {
  6202. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6203. return returnValue;
  6204. }
  6205. finally {
  6206. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6207. this.Adapter.DeleteCommand.Connection.Close();
  6208. }
  6209. }
  6210. }
  6211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6213. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6214. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6215. public virtual int Insert(string Артикул, string Наименование, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, string Место_хранения) {
  6216. if ((Артикул == null)) {
  6217. throw new global::System.ArgumentNullException("Артикул");
  6218. }
  6219. else {
  6220. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Артикул));
  6221. }
  6222. if ((Наименование == null)) {
  6223. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6224. }
  6225. else {
  6226. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  6227. }
  6228. if ((Цена.HasValue == true)) {
  6229. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  6230. }
  6231. else {
  6232. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6233. }
  6234. if ((Количество.HasValue == true)) {
  6235. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Количество.Value));
  6236. }
  6237. else {
  6238. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6239. }
  6240. if ((Место_хранения == null)) {
  6241. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6242. }
  6243. else {
  6244. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Место_хранения));
  6245. }
  6246. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6247. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6248. != global::System.Data.ConnectionState.Open)) {
  6249. this.Adapter.InsertCommand.Connection.Open();
  6250. }
  6251. try {
  6252. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6253. return returnValue;
  6254. }
  6255. finally {
  6256. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6257. this.Adapter.InsertCommand.Connection.Close();
  6258. }
  6259. }
  6260. }
  6261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6263. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6264. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6265. 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_Место_хранения) {
  6266. if ((Артикул == null)) {
  6267. throw new global::System.ArgumentNullException("Артикул");
  6268. }
  6269. else {
  6270. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Артикул));
  6271. }
  6272. if ((Наименование == null)) {
  6273. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6274. }
  6275. else {
  6276. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование));
  6277. }
  6278. if ((Цена.HasValue == true)) {
  6279. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  6280. }
  6281. else {
  6282. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6283. }
  6284. if ((Количество.HasValue == true)) {
  6285. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Количество.Value));
  6286. }
  6287. else {
  6288. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6289. }
  6290. if ((Место_хранения == null)) {
  6291. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6292. }
  6293. else {
  6294. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Место_хранения));
  6295. }
  6296. if ((Original_Артикул == null)) {
  6297. throw new global::System.ArgumentNullException("Original_Артикул");
  6298. }
  6299. else {
  6300. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Артикул));
  6301. }
  6302. if ((Original_Цена.HasValue == true)) {
  6303. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  6304. this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(Original_Цена.Value));
  6305. }
  6306. else {
  6307. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  6308. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  6309. }
  6310. if ((Original_Количество.HasValue == true)) {
  6311. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  6312. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Количество.Value));
  6313. }
  6314. else {
  6315. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  6316. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  6317. }
  6318. if ((Original_Место_хранения == null)) {
  6319. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  6320. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  6321. }
  6322. else {
  6323. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  6324. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Место_хранения));
  6325. }
  6326. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6327. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6328. != global::System.Data.ConnectionState.Open)) {
  6329. this.Adapter.UpdateCommand.Connection.Open();
  6330. }
  6331. try {
  6332. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6333. return returnValue;
  6334. }
  6335. finally {
  6336. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6337. this.Adapter.UpdateCommand.Connection.Close();
  6338. }
  6339. }
  6340. }
  6341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6343. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6344. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6345. 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_Место_хранения) {
  6346. return this.Update(Original_Артикул, Наименование, Цена, Количество, Место_хранения, Original_Артикул, Original_Цена, Original_Количество, Original_Место_хранения);
  6347. }
  6348. }
  6349. /// <summary>
  6350. ///Represents the connection and commands used to retrieve and save data.
  6351. ///</summary>
  6352. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6353. [global::System.ComponentModel.ToolboxItem(true)]
  6354. [global::System.ComponentModel.DataObjectAttribute(true)]
  6355. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6356. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6357. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6358. public partial class PurchaseTableAdapter : global::System.ComponentModel.Component {
  6359. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6360. private global::System.Data.SqlClient.SqlConnection _connection;
  6361. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6362. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6363. private bool _clearBeforeFill;
  6364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6366. public PurchaseTableAdapter() {
  6367. this.ClearBeforeFill = true;
  6368. }
  6369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6371. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6372. get {
  6373. if ((this._adapter == null)) {
  6374. this.InitAdapter();
  6375. }
  6376. return this._adapter;
  6377. }
  6378. }
  6379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6381. internal global::System.Data.SqlClient.SqlConnection Connection {
  6382. get {
  6383. if ((this._connection == null)) {
  6384. this.InitConnection();
  6385. }
  6386. return this._connection;
  6387. }
  6388. set {
  6389. this._connection = value;
  6390. if ((this.Adapter.InsertCommand != null)) {
  6391. this.Adapter.InsertCommand.Connection = value;
  6392. }
  6393. if ((this.Adapter.DeleteCommand != null)) {
  6394. this.Adapter.DeleteCommand.Connection = value;
  6395. }
  6396. if ((this.Adapter.UpdateCommand != null)) {
  6397. this.Adapter.UpdateCommand.Connection = value;
  6398. }
  6399. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6400. if ((this.CommandCollection[i] != null)) {
  6401. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6402. }
  6403. }
  6404. }
  6405. }
  6406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6408. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6409. get {
  6410. return this._transaction;
  6411. }
  6412. set {
  6413. this._transaction = value;
  6414. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6415. this.CommandCollection[i].Transaction = this._transaction;
  6416. }
  6417. if (((this.Adapter != null)
  6418. && (this.Adapter.DeleteCommand != null))) {
  6419. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6420. }
  6421. if (((this.Adapter != null)
  6422. && (this.Adapter.InsertCommand != null))) {
  6423. this.Adapter.InsertCommand.Transaction = this._transaction;
  6424. }
  6425. if (((this.Adapter != null)
  6426. && (this.Adapter.UpdateCommand != null))) {
  6427. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6428. }
  6429. }
  6430. }
  6431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6433. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6434. get {
  6435. if ((this._commandCollection == null)) {
  6436. this.InitCommandCollection();
  6437. }
  6438. return this._commandCollection;
  6439. }
  6440. }
  6441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6443. public bool ClearBeforeFill {
  6444. get {
  6445. return this._clearBeforeFill;
  6446. }
  6447. set {
  6448. this._clearBeforeFill = value;
  6449. }
  6450. }
  6451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6453. private void InitAdapter() {
  6454. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6455. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6456. tableMapping.SourceTable = "Table";
  6457. tableMapping.DataSetTable = "Purchase";
  6458. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  6459. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  6460. tableMapping.ColumnMappings.Add("Цена", "Цена");
  6461. tableMapping.ColumnMappings.Add("Принудительное перемешение (Да/Нет)", "Принудительное перемешение (Да/Нет)");
  6462. this._adapter.TableMappings.Add(tableMapping);
  6463. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6464. this._adapter.DeleteCommand.Connection = this.Connection;
  6465. 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)))";
  6466. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6467. 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, "", "", ""));
  6468. 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, "", "", ""));
  6469. 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, "", "", ""));
  6470. 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, "", "", ""));
  6471. 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, "", "", ""));
  6472. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6473. this._adapter.InsertCommand.Connection = this.Connection;
  6474. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Purchase] ([Артикул], [Наименование], [Цена], [Принудительное перемешение (Да/Нет)]) VALUES (@Артикул, @Наименование, @Цена, @p1);
  6475. SELECT Артикул, Наименование, Цена, [Принудительное перемешение (Да/Нет)] FROM Purchase WHERE (Артикул = @Артикул)";
  6476. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6477. 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, "", "", ""));
  6478. 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, "", "", ""));
  6479. 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, "", "", ""));
  6480. 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, "", "", ""));
  6481. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6482. this._adapter.UpdateCommand.Connection = this.Connection;
  6483. 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)));
  6484. SELECT Артикул, Наименование, Цена, [Принудительное перемешение (Да/Нет)] FROM Purchase WHERE (Артикул = @Артикул)";
  6485. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6486. 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, "", "", ""));
  6487. 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, "", "", ""));
  6488. 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, "", "", ""));
  6489. 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, "", "", ""));
  6490. 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, "", "", ""));
  6491. 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, "", "", ""));
  6492. 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, "", "", ""));
  6493. 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, "", "", ""));
  6494. 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, "", "", ""));
  6495. }
  6496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6498. private void InitConnection() {
  6499. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6500. this._connection.ConnectionString = global::IS_hairdresser.Properties.Settings.Default.GushchinaConnectionString;
  6501. }
  6502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6504. private void InitCommandCollection() {
  6505. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6506. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6507. this._commandCollection[0].Connection = this.Connection;
  6508. this._commandCollection[0].CommandText = "SELECT Артикул, Наименование, Цена, [Принудительное перемешение (Да/Нет)] FROM db" +
  6509. "o.Purchase";
  6510. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6511. }
  6512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6514. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6515. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6516. public virtual int Fill(GushchinaDataSet1.PurchaseDataTable dataTable) {
  6517. this.Adapter.SelectCommand = this.CommandCollection[0];
  6518. if ((this.ClearBeforeFill == true)) {
  6519. dataTable.Clear();
  6520. }
  6521. int returnValue = this.Adapter.Fill(dataTable);
  6522. return returnValue;
  6523. }
  6524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6526. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6527. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6528. public virtual GushchinaDataSet1.PurchaseDataTable GetData() {
  6529. this.Adapter.SelectCommand = this.CommandCollection[0];
  6530. GushchinaDataSet1.PurchaseDataTable dataTable = new GushchinaDataSet1.PurchaseDataTable();
  6531. this.Adapter.Fill(dataTable);
  6532. return dataTable;
  6533. }
  6534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6536. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6537. public virtual int Update(GushchinaDataSet1.PurchaseDataTable dataTable) {
  6538. return this.Adapter.Update(dataTable);
  6539. }
  6540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6542. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6543. public virtual int Update(GushchinaDataSet1 dataSet) {
  6544. return this.Adapter.Update(dataSet, "Purchase");
  6545. }
  6546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6548. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6549. public virtual int Update(global::System.Data.DataRow dataRow) {
  6550. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6551. dataRow});
  6552. }
  6553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6556. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6557. return this.Adapter.Update(dataRows);
  6558. }
  6559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6561. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6562. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6563. public virtual int Delete(string Original_Артикул, global::System.Nullable<decimal> Original_Цена, string p2) {
  6564. if ((Original_Артикул == null)) {
  6565. throw new global::System.ArgumentNullException("Original_Артикул");
  6566. }
  6567. else {
  6568. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Артикул));
  6569. }
  6570. if ((Original_Цена.HasValue == true)) {
  6571. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6572. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Цена.Value));
  6573. }
  6574. else {
  6575. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6576. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6577. }
  6578. if ((p2 == null)) {
  6579. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6580. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6581. }
  6582. else {
  6583. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6584. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(p2));
  6585. }
  6586. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6587. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6588. != global::System.Data.ConnectionState.Open)) {
  6589. this.Adapter.DeleteCommand.Connection.Open();
  6590. }
  6591. try {
  6592. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6593. return returnValue;
  6594. }
  6595. finally {
  6596. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6597. this.Adapter.DeleteCommand.Connection.Close();
  6598. }
  6599. }
  6600. }
  6601. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6603. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6604. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6605. public virtual int Insert(string Артикул, string Наименование, global::System.Nullable<decimal> Цена, string p1) {
  6606. if ((Артикул == null)) {
  6607. throw new global::System.ArgumentNullException("Артикул");
  6608. }
  6609. else {
  6610. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Артикул));
  6611. }
  6612. if ((Наименование == null)) {
  6613. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6614. }
  6615. else {
  6616. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  6617. }
  6618. if ((Цена.HasValue == true)) {
  6619. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  6620. }
  6621. else {
  6622. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6623. }
  6624. if ((p1 == null)) {
  6625. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6626. }
  6627. else {
  6628. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(p1));
  6629. }
  6630. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6631. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6632. != global::System.Data.ConnectionState.Open)) {
  6633. this.Adapter.InsertCommand.Connection.Open();
  6634. }
  6635. try {
  6636. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6637. return returnValue;
  6638. }
  6639. finally {
  6640. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6641. this.Adapter.InsertCommand.Connection.Close();
  6642. }
  6643. }
  6644. }
  6645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6647. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6648. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6649. public virtual int Update(string Артикул, string Наименование, global::System.Nullable<decimal> Цена, string p1, string Original_Артикул, global::System.Nullable<decimal> Original_Цена, string p2) {
  6650. if ((Артикул == null)) {
  6651. throw new global::System.ArgumentNullException("Артикул");
  6652. }
  6653. else {
  6654. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Артикул));
  6655. }
  6656. if ((Наименование == null)) {
  6657. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6658. }
  6659. else {
  6660. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование));
  6661. }
  6662. if ((Цена.HasValue == true)) {
  6663. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  6664. }
  6665. else {
  6666. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6667. }
  6668. if ((p1 == null)) {
  6669. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6670. }
  6671. else {
  6672. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(p1));
  6673. }
  6674. if ((Original_Артикул == null)) {
  6675. throw new global::System.ArgumentNullException("Original_Артикул");
  6676. }
  6677. else {
  6678. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Артикул));
  6679. }
  6680. if ((Original_Цена.HasValue == true)) {
  6681. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  6682. this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(Original_Цена.Value));
  6683. }
  6684. else {
  6685. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  6686. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  6687. }
  6688. if ((p2 == null)) {
  6689. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  6690. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6691. }
  6692. else {
  6693. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  6694. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(p2));
  6695. }
  6696. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6697. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6698. != global::System.Data.ConnectionState.Open)) {
  6699. this.Adapter.UpdateCommand.Connection.Open();
  6700. }
  6701. try {
  6702. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6703. return returnValue;
  6704. }
  6705. finally {
  6706. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6707. this.Adapter.UpdateCommand.Connection.Close();
  6708. }
  6709. }
  6710. }
  6711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6713. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6714. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6715. public virtual int Update(string Наименование, global::System.Nullable<decimal> Цена, string p1, string Original_Артикул, global::System.Nullable<decimal> Original_Цена, string p2) {
  6716. return this.Update(Original_Артикул, Наименование, Цена, p1, Original_Артикул, Original_Цена, p2);
  6717. }
  6718. }
  6719. /// <summary>
  6720. ///Represents the connection and commands used to retrieve and save data.
  6721. ///</summary>
  6722. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6723. [global::System.ComponentModel.ToolboxItem(true)]
  6724. [global::System.ComponentModel.DataObjectAttribute(true)]
  6725. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6726. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6727. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6728. public partial class Used_consumablesTableAdapter : global::System.ComponentModel.Component {
  6729. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6730. private global::System.Data.SqlClient.SqlConnection _connection;
  6731. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6732. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6733. private bool _clearBeforeFill;
  6734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6736. public Used_consumablesTableAdapter() {
  6737. this.ClearBeforeFill = true;
  6738. }
  6739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6741. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6742. get {
  6743. if ((this._adapter == null)) {
  6744. this.InitAdapter();
  6745. }
  6746. return this._adapter;
  6747. }
  6748. }
  6749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6751. internal global::System.Data.SqlClient.SqlConnection Connection {
  6752. get {
  6753. if ((this._connection == null)) {
  6754. this.InitConnection();
  6755. }
  6756. return this._connection;
  6757. }
  6758. set {
  6759. this._connection = value;
  6760. if ((this.Adapter.InsertCommand != null)) {
  6761. this.Adapter.InsertCommand.Connection = value;
  6762. }
  6763. if ((this.Adapter.DeleteCommand != null)) {
  6764. this.Adapter.DeleteCommand.Connection = value;
  6765. }
  6766. if ((this.Adapter.UpdateCommand != null)) {
  6767. this.Adapter.UpdateCommand.Connection = value;
  6768. }
  6769. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6770. if ((this.CommandCollection[i] != null)) {
  6771. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6772. }
  6773. }
  6774. }
  6775. }
  6776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6778. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6779. get {
  6780. return this._transaction;
  6781. }
  6782. set {
  6783. this._transaction = value;
  6784. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6785. this.CommandCollection[i].Transaction = this._transaction;
  6786. }
  6787. if (((this.Adapter != null)
  6788. && (this.Adapter.DeleteCommand != null))) {
  6789. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6790. }
  6791. if (((this.Adapter != null)
  6792. && (this.Adapter.InsertCommand != null))) {
  6793. this.Adapter.InsertCommand.Transaction = this._transaction;
  6794. }
  6795. if (((this.Adapter != null)
  6796. && (this.Adapter.UpdateCommand != null))) {
  6797. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6798. }
  6799. }
  6800. }
  6801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6803. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6804. get {
  6805. if ((this._commandCollection == null)) {
  6806. this.InitCommandCollection();
  6807. }
  6808. return this._commandCollection;
  6809. }
  6810. }
  6811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6813. public bool ClearBeforeFill {
  6814. get {
  6815. return this._clearBeforeFill;
  6816. }
  6817. set {
  6818. this._clearBeforeFill = value;
  6819. }
  6820. }
  6821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6823. private void InitAdapter() {
  6824. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6825. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6826. tableMapping.SourceTable = "Table";
  6827. tableMapping.DataSetTable = "Used_consumables";
  6828. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  6829. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  6830. tableMapping.ColumnMappings.Add("Цена", "Цена");
  6831. tableMapping.ColumnMappings.Add("Количество", "Количество");
  6832. tableMapping.ColumnMappings.Add("Дата", "Дата");
  6833. tableMapping.ColumnMappings.Add("Сотрудник", "Сотрудник");
  6834. this._adapter.TableMappings.Add(tableMapping);
  6835. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6836. this._adapter.InsertCommand.Connection = this.Connection;
  6837. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Used_consumables] ([Артикул], [Наименование], [Цена], [Количес" +
  6838. "тво], [Дата], [Сотрудник]) VALUES (@Артикул, @Наименование, @Цена, @Количество, " +
  6839. "@Дата, @Сотрудник)";
  6840. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6841. 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, "", "", ""));
  6842. 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, "", "", ""));
  6843. 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, "", "", ""));
  6844. 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, "", "", ""));
  6845. 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, "", "", ""));
  6846. 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, "", "", ""));
  6847. }
  6848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6850. private void InitConnection() {
  6851. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6852. this._connection.ConnectionString = global::IS_hairdresser.Properties.Settings.Default.GushchinaConnectionString;
  6853. }
  6854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6856. private void InitCommandCollection() {
  6857. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6858. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6859. this._commandCollection[0].Connection = this.Connection;
  6860. this._commandCollection[0].CommandText = "SELECT Артикул, Наименование, Цена, Количество, Дата, Сотрудник FROM dbo.Used_con" +
  6861. "sumables";
  6862. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6863. }
  6864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6866. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6867. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6868. public virtual int Fill(GushchinaDataSet1.Used_consumablesDataTable dataTable) {
  6869. this.Adapter.SelectCommand = this.CommandCollection[0];
  6870. if ((this.ClearBeforeFill == true)) {
  6871. dataTable.Clear();
  6872. }
  6873. int returnValue = this.Adapter.Fill(dataTable);
  6874. return returnValue;
  6875. }
  6876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6878. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6879. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6880. public virtual GushchinaDataSet1.Used_consumablesDataTable GetData() {
  6881. this.Adapter.SelectCommand = this.CommandCollection[0];
  6882. GushchinaDataSet1.Used_consumablesDataTable dataTable = new GushchinaDataSet1.Used_consumablesDataTable();
  6883. this.Adapter.Fill(dataTable);
  6884. return dataTable;
  6885. }
  6886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6888. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6889. public virtual int Update(GushchinaDataSet1.Used_consumablesDataTable dataTable) {
  6890. return this.Adapter.Update(dataTable);
  6891. }
  6892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6894. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6895. public virtual int Update(GushchinaDataSet1 dataSet) {
  6896. return this.Adapter.Update(dataSet, "Used_consumables");
  6897. }
  6898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6900. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6901. public virtual int Update(global::System.Data.DataRow dataRow) {
  6902. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6903. dataRow});
  6904. }
  6905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6907. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6908. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6909. return this.Adapter.Update(dataRows);
  6910. }
  6911. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6912. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6913. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6914. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6915. public virtual int Insert(string Артикул, string Наименование, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, global::System.Nullable<global::System.DateTime> Дата, string Сотрудник) {
  6916. if ((Артикул == null)) {
  6917. throw new global::System.ArgumentNullException("Артикул");
  6918. }
  6919. else {
  6920. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Артикул));
  6921. }
  6922. if ((Наименование == null)) {
  6923. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6924. }
  6925. else {
  6926. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  6927. }
  6928. if ((Цена.HasValue == true)) {
  6929. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  6930. }
  6931. else {
  6932. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6933. }
  6934. if ((Количество.HasValue == true)) {
  6935. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Количество.Value));
  6936. }
  6937. else {
  6938. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6939. }
  6940. if ((Дата.HasValue == true)) {
  6941. this.Adapter.InsertCommand.Parameters[4].Value = ((System.DateTime)(Дата.Value));
  6942. }
  6943. else {
  6944. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6945. }
  6946. if ((Сотрудник == null)) {
  6947. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6948. }
  6949. else {
  6950. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Сотрудник));
  6951. }
  6952. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6953. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6954. != global::System.Data.ConnectionState.Open)) {
  6955. this.Adapter.InsertCommand.Connection.Open();
  6956. }
  6957. try {
  6958. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6959. return returnValue;
  6960. }
  6961. finally {
  6962. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6963. this.Adapter.InsertCommand.Connection.Close();
  6964. }
  6965. }
  6966. }
  6967. }
  6968. /// <summary>
  6969. ///Represents the connection and commands used to retrieve and save data.
  6970. ///</summary>
  6971. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6972. [global::System.ComponentModel.ToolboxItem(true)]
  6973. [global::System.ComponentModel.DataObjectAttribute(true)]
  6974. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6975. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6976. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6977. public partial class WarehouseTableAdapter : global::System.ComponentModel.Component {
  6978. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6979. private global::System.Data.SqlClient.SqlConnection _connection;
  6980. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6981. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6982. private bool _clearBeforeFill;
  6983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6985. public WarehouseTableAdapter() {
  6986. this.ClearBeforeFill = true;
  6987. }
  6988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6990. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6991. get {
  6992. if ((this._adapter == null)) {
  6993. this.InitAdapter();
  6994. }
  6995. return this._adapter;
  6996. }
  6997. }
  6998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7000. internal global::System.Data.SqlClient.SqlConnection Connection {
  7001. get {
  7002. if ((this._connection == null)) {
  7003. this.InitConnection();
  7004. }
  7005. return this._connection;
  7006. }
  7007. set {
  7008. this._connection = value;
  7009. if ((this.Adapter.InsertCommand != null)) {
  7010. this.Adapter.InsertCommand.Connection = value;
  7011. }
  7012. if ((this.Adapter.DeleteCommand != null)) {
  7013. this.Adapter.DeleteCommand.Connection = value;
  7014. }
  7015. if ((this.Adapter.UpdateCommand != null)) {
  7016. this.Adapter.UpdateCommand.Connection = value;
  7017. }
  7018. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7019. if ((this.CommandCollection[i] != null)) {
  7020. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7021. }
  7022. }
  7023. }
  7024. }
  7025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7027. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7028. get {
  7029. return this._transaction;
  7030. }
  7031. set {
  7032. this._transaction = value;
  7033. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7034. this.CommandCollection[i].Transaction = this._transaction;
  7035. }
  7036. if (((this.Adapter != null)
  7037. && (this.Adapter.DeleteCommand != null))) {
  7038. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7039. }
  7040. if (((this.Adapter != null)
  7041. && (this.Adapter.InsertCommand != null))) {
  7042. this.Adapter.InsertCommand.Transaction = this._transaction;
  7043. }
  7044. if (((this.Adapter != null)
  7045. && (this.Adapter.UpdateCommand != null))) {
  7046. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7047. }
  7048. }
  7049. }
  7050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7052. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7053. get {
  7054. if ((this._commandCollection == null)) {
  7055. this.InitCommandCollection();
  7056. }
  7057. return this._commandCollection;
  7058. }
  7059. }
  7060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7062. public bool ClearBeforeFill {
  7063. get {
  7064. return this._clearBeforeFill;
  7065. }
  7066. set {
  7067. this._clearBeforeFill = value;
  7068. }
  7069. }
  7070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7072. private void InitAdapter() {
  7073. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7074. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7075. tableMapping.SourceTable = "Table";
  7076. tableMapping.DataSetTable = "Warehouse";
  7077. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  7078. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  7079. tableMapping.ColumnMappings.Add("Цена", "Цена");
  7080. tableMapping.ColumnMappings.Add("Количество", "Количество");
  7081. tableMapping.ColumnMappings.Add("Место хранения (Склад/Витрина)", "Место хранения (Склад/Витрина)");
  7082. this._adapter.TableMappings.Add(tableMapping);
  7083. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7084. this._adapter.DeleteCommand.Connection = this.Connection;
  7085. 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)))";
  7086. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7087. 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, "", "", ""));
  7088. 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, "", "", ""));
  7089. 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, "", "", ""));
  7090. 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, "", "", ""));
  7091. 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, "", "", ""));
  7092. 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, "", "", ""));
  7093. 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, "", "", ""));
  7094. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7095. this._adapter.InsertCommand.Connection = this.Connection;
  7096. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Warehouse] ([Артикул], [Наименование], [Цена], [Количество], [Место хранения (Склад/Витрина)]) VALUES (@Артикул, @Наименование, @Цена, @Количество, @p1);
  7097. SELECT Артикул, Наименование, Цена, Количество, [Место хранения (Склад/Витрина)] FROM Warehouse WHERE (Артикул = @Артикул)";
  7098. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7099. 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, "", "", ""));
  7100. 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, "", "", ""));
  7101. 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, "", "", ""));
  7102. 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, "", "", ""));
  7103. 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, "", "", ""));
  7104. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7105. this._adapter.UpdateCommand.Connection = this.Connection;
  7106. 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)));
  7107. SELECT Артикул, Наименование, Цена, Количество, [Место хранения (Склад/Витрина)] FROM Warehouse WHERE (Артикул = @Артикул)";
  7108. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7109. 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, "", "", ""));
  7110. 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, "", "", ""));
  7111. 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, "", "", ""));
  7112. 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, "", "", ""));
  7113. 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, "", "", ""));
  7114. 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, "", "", ""));
  7115. 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, "", "", ""));
  7116. 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, "", "", ""));
  7117. 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, "", "", ""));
  7118. 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, "", "", ""));
  7119. 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, "", "", ""));
  7120. 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, "", "", ""));
  7121. }
  7122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7124. private void InitConnection() {
  7125. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7126. this._connection.ConnectionString = global::IS_hairdresser.Properties.Settings.Default.GushchinaConnectionString;
  7127. }
  7128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7130. private void InitCommandCollection() {
  7131. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7132. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7133. this._commandCollection[0].Connection = this.Connection;
  7134. this._commandCollection[0].CommandText = "SELECT Артикул, Наименование, Цена, Количество, [Место хранения (Склад/Витрина)] " +
  7135. "FROM dbo.Warehouse";
  7136. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7137. }
  7138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7140. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7141. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7142. public virtual int Fill(GushchinaDataSet1.WarehouseDataTable dataTable) {
  7143. this.Adapter.SelectCommand = this.CommandCollection[0];
  7144. if ((this.ClearBeforeFill == true)) {
  7145. dataTable.Clear();
  7146. }
  7147. int returnValue = this.Adapter.Fill(dataTable);
  7148. return returnValue;
  7149. }
  7150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7152. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7153. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7154. public virtual GushchinaDataSet1.WarehouseDataTable GetData() {
  7155. this.Adapter.SelectCommand = this.CommandCollection[0];
  7156. GushchinaDataSet1.WarehouseDataTable dataTable = new GushchinaDataSet1.WarehouseDataTable();
  7157. this.Adapter.Fill(dataTable);
  7158. return dataTable;
  7159. }
  7160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7162. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7163. public virtual int Update(GushchinaDataSet1.WarehouseDataTable dataTable) {
  7164. return this.Adapter.Update(dataTable);
  7165. }
  7166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7168. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7169. public virtual int Update(GushchinaDataSet1 dataSet) {
  7170. return this.Adapter.Update(dataSet, "Warehouse");
  7171. }
  7172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7174. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7175. public virtual int Update(global::System.Data.DataRow dataRow) {
  7176. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7177. dataRow});
  7178. }
  7179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7181. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7182. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7183. return this.Adapter.Update(dataRows);
  7184. }
  7185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7187. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7188. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7189. public virtual int Delete(string Original_Артикул, global::System.Nullable<decimal> Original_Цена, global::System.Nullable<int> Original_Количество, string p2) {
  7190. if ((Original_Артикул == null)) {
  7191. throw new global::System.ArgumentNullException("Original_Артикул");
  7192. }
  7193. else {
  7194. this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_Артикул));
  7195. }
  7196. if ((Original_Цена.HasValue == true)) {
  7197. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7198. this.Adapter.DeleteCommand.Parameters[2].Value = ((decimal)(Original_Цена.Value));
  7199. }
  7200. else {
  7201. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7202. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7203. }
  7204. if ((Original_Количество.HasValue == true)) {
  7205. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7206. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Количество.Value));
  7207. }
  7208. else {
  7209. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7210. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7211. }
  7212. if ((p2 == null)) {
  7213. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7214. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7215. }
  7216. else {
  7217. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7218. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(p2));
  7219. }
  7220. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7221. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7222. != global::System.Data.ConnectionState.Open)) {
  7223. this.Adapter.DeleteCommand.Connection.Open();
  7224. }
  7225. try {
  7226. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7227. return returnValue;
  7228. }
  7229. finally {
  7230. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7231. this.Adapter.DeleteCommand.Connection.Close();
  7232. }
  7233. }
  7234. }
  7235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7237. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7238. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7239. public virtual int Insert(string Артикул, string Наименование, global::System.Nullable<decimal> Цена, global::System.Nullable<int> Количество, string p1) {
  7240. if ((Артикул == null)) {
  7241. throw new global::System.ArgumentNullException("Артикул");
  7242. }
  7243. else {
  7244. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Артикул));
  7245. }
  7246. if ((Наименование == null)) {
  7247. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7248. }
  7249. else {
  7250. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Наименование));
  7251. }
  7252. if ((Цена.HasValue == true)) {
  7253. this.Adapter.InsertCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  7254. }
  7255. else {
  7256. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7257. }
  7258. if ((Количество.HasValue == true)) {
  7259. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Количество.Value));
  7260. }
  7261. else {
  7262. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7263. }
  7264. if ((p1 == null)) {
  7265. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  7266. }
  7267. else {
  7268. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(p1));
  7269. }
  7270. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7271. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7272. != global::System.Data.ConnectionState.Open)) {
  7273. this.Adapter.InsertCommand.Connection.Open();
  7274. }
  7275. try {
  7276. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7277. return returnValue;
  7278. }
  7279. finally {
  7280. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7281. this.Adapter.InsertCommand.Connection.Close();
  7282. }
  7283. }
  7284. }
  7285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7287. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7288. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7289. 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) {
  7290. if ((Артикул == null)) {
  7291. throw new global::System.ArgumentNullException("Артикул");
  7292. }
  7293. else {
  7294. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Артикул));
  7295. }
  7296. if ((Наименование == null)) {
  7297. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7298. }
  7299. else {
  7300. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Наименование));
  7301. }
  7302. if ((Цена.HasValue == true)) {
  7303. this.Adapter.UpdateCommand.Parameters[2].Value = ((decimal)(Цена.Value));
  7304. }
  7305. else {
  7306. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7307. }
  7308. if ((Количество.HasValue == true)) {
  7309. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Количество.Value));
  7310. }
  7311. else {
  7312. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7313. }
  7314. if ((p1 == null)) {
  7315. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7316. }
  7317. else {
  7318. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(p1));
  7319. }
  7320. if ((Original_Артикул == null)) {
  7321. throw new global::System.ArgumentNullException("Original_Артикул");
  7322. }
  7323. else {
  7324. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_Артикул));
  7325. }
  7326. if ((Original_Цена.HasValue == true)) {
  7327. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  7328. this.Adapter.UpdateCommand.Parameters[7].Value = ((decimal)(Original_Цена.Value));
  7329. }
  7330. else {
  7331. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  7332. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  7333. }
  7334. if ((Original_Количество.HasValue == true)) {
  7335. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  7336. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Количество.Value));
  7337. }
  7338. else {
  7339. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  7340. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  7341. }
  7342. if ((p2 == null)) {
  7343. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  7344. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  7345. }
  7346. else {
  7347. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  7348. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(p2));
  7349. }
  7350. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7351. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7352. != global::System.Data.ConnectionState.Open)) {
  7353. this.Adapter.UpdateCommand.Connection.Open();
  7354. }
  7355. try {
  7356. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7357. return returnValue;
  7358. }
  7359. finally {
  7360. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7361. this.Adapter.UpdateCommand.Connection.Close();
  7362. }
  7363. }
  7364. }
  7365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7367. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7368. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7369. 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) {
  7370. return this.Update(Original_Артикул, Наименование, Цена, Количество, p1, Original_Артикул, Original_Цена, Original_Количество, p2);
  7371. }
  7372. }
  7373. /// <summary>
  7374. ///Represents the connection and commands used to retrieve and save data.
  7375. ///</summary>
  7376. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7377. [global::System.ComponentModel.ToolboxItem(true)]
  7378. [global::System.ComponentModel.DataObjectAttribute(true)]
  7379. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7380. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7381. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7382. public partial class Отображение_по_артиклуTableAdapter : global::System.ComponentModel.Component {
  7383. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7384. private global::System.Data.SqlClient.SqlConnection _connection;
  7385. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7386. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7387. private bool _clearBeforeFill;
  7388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7390. public Отображение_по_артиклуTableAdapter() {
  7391. this.ClearBeforeFill = true;
  7392. }
  7393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7395. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7396. get {
  7397. if ((this._adapter == null)) {
  7398. this.InitAdapter();
  7399. }
  7400. return this._adapter;
  7401. }
  7402. }
  7403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7405. internal global::System.Data.SqlClient.SqlConnection Connection {
  7406. get {
  7407. if ((this._connection == null)) {
  7408. this.InitConnection();
  7409. }
  7410. return this._connection;
  7411. }
  7412. set {
  7413. this._connection = value;
  7414. if ((this.Adapter.InsertCommand != null)) {
  7415. this.Adapter.InsertCommand.Connection = value;
  7416. }
  7417. if ((this.Adapter.DeleteCommand != null)) {
  7418. this.Adapter.DeleteCommand.Connection = value;
  7419. }
  7420. if ((this.Adapter.UpdateCommand != null)) {
  7421. this.Adapter.UpdateCommand.Connection = value;
  7422. }
  7423. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7424. if ((this.CommandCollection[i] != null)) {
  7425. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7426. }
  7427. }
  7428. }
  7429. }
  7430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7432. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7433. get {
  7434. return this._transaction;
  7435. }
  7436. set {
  7437. this._transaction = value;
  7438. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7439. this.CommandCollection[i].Transaction = this._transaction;
  7440. }
  7441. if (((this.Adapter != null)
  7442. && (this.Adapter.DeleteCommand != null))) {
  7443. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7444. }
  7445. if (((this.Adapter != null)
  7446. && (this.Adapter.InsertCommand != null))) {
  7447. this.Adapter.InsertCommand.Transaction = this._transaction;
  7448. }
  7449. if (((this.Adapter != null)
  7450. && (this.Adapter.UpdateCommand != null))) {
  7451. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7452. }
  7453. }
  7454. }
  7455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7457. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7458. get {
  7459. if ((this._commandCollection == null)) {
  7460. this.InitCommandCollection();
  7461. }
  7462. return this._commandCollection;
  7463. }
  7464. }
  7465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7467. public bool ClearBeforeFill {
  7468. get {
  7469. return this._clearBeforeFill;
  7470. }
  7471. set {
  7472. this._clearBeforeFill = value;
  7473. }
  7474. }
  7475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7477. private void InitAdapter() {
  7478. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7479. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7480. tableMapping.SourceTable = "Table";
  7481. tableMapping.DataSetTable = "Отображение по артиклу";
  7482. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  7483. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  7484. tableMapping.ColumnMappings.Add("Цена", "Цена");
  7485. tableMapping.ColumnMappings.Add("Количество", "Количество");
  7486. tableMapping.ColumnMappings.Add("Место_хранения", "Место_хранения");
  7487. this._adapter.TableMappings.Add(tableMapping);
  7488. }
  7489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7491. private void InitConnection() {
  7492. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7493. this._connection.ConnectionString = global::IS_hairdresser.Properties.Settings.Default.GushchinaConnectionString;
  7494. }
  7495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7497. private void InitCommandCollection() {
  7498. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7499. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7500. this._commandCollection[0].Connection = this.Connection;
  7501. this._commandCollection[0].CommandText = "dbo.[Отображение по артиклу]";
  7502. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  7503. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7504. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Артикул", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7505. }
  7506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7508. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7509. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7510. public virtual int Fill(GushchinaDataSet1.Отображение_по_артиклуDataTable dataTable, string Артикул) {
  7511. this.Adapter.SelectCommand = this.CommandCollection[0];
  7512. if ((Артикул == null)) {
  7513. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  7514. }
  7515. else {
  7516. this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Артикул));
  7517. }
  7518. if ((this.ClearBeforeFill == true)) {
  7519. dataTable.Clear();
  7520. }
  7521. int returnValue = this.Adapter.Fill(dataTable);
  7522. return returnValue;
  7523. }
  7524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7526. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7527. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7528. public virtual GushchinaDataSet1.Отображение_по_артиклуDataTable GetData(string Артикул) {
  7529. this.Adapter.SelectCommand = this.CommandCollection[0];
  7530. if ((Артикул == null)) {
  7531. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  7532. }
  7533. else {
  7534. this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Артикул));
  7535. }
  7536. GushchinaDataSet1.Отображение_по_артиклуDataTable dataTable = new GushchinaDataSet1.Отображение_по_артиклуDataTable();
  7537. this.Adapter.Fill(dataTable);
  7538. return dataTable;
  7539. }
  7540. }
  7541. /// <summary>
  7542. ///Represents the connection and commands used to retrieve and save data.
  7543. ///</summary>
  7544. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7545. [global::System.ComponentModel.ToolboxItem(true)]
  7546. [global::System.ComponentModel.DataObjectAttribute(true)]
  7547. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7548. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7549. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7550. public partial class Отображение_по_количествуTableAdapter : global::System.ComponentModel.Component {
  7551. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7552. private global::System.Data.SqlClient.SqlConnection _connection;
  7553. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7554. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7555. private bool _clearBeforeFill;
  7556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7558. public Отображение_по_количествуTableAdapter() {
  7559. this.ClearBeforeFill = true;
  7560. }
  7561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7563. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7564. get {
  7565. if ((this._adapter == null)) {
  7566. this.InitAdapter();
  7567. }
  7568. return this._adapter;
  7569. }
  7570. }
  7571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7573. internal global::System.Data.SqlClient.SqlConnection Connection {
  7574. get {
  7575. if ((this._connection == null)) {
  7576. this.InitConnection();
  7577. }
  7578. return this._connection;
  7579. }
  7580. set {
  7581. this._connection = value;
  7582. if ((this.Adapter.InsertCommand != null)) {
  7583. this.Adapter.InsertCommand.Connection = value;
  7584. }
  7585. if ((this.Adapter.DeleteCommand != null)) {
  7586. this.Adapter.DeleteCommand.Connection = value;
  7587. }
  7588. if ((this.Adapter.UpdateCommand != null)) {
  7589. this.Adapter.UpdateCommand.Connection = value;
  7590. }
  7591. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7592. if ((this.CommandCollection[i] != null)) {
  7593. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7594. }
  7595. }
  7596. }
  7597. }
  7598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7600. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7601. get {
  7602. return this._transaction;
  7603. }
  7604. set {
  7605. this._transaction = value;
  7606. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7607. this.CommandCollection[i].Transaction = this._transaction;
  7608. }
  7609. if (((this.Adapter != null)
  7610. && (this.Adapter.DeleteCommand != null))) {
  7611. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7612. }
  7613. if (((this.Adapter != null)
  7614. && (this.Adapter.InsertCommand != null))) {
  7615. this.Adapter.InsertCommand.Transaction = this._transaction;
  7616. }
  7617. if (((this.Adapter != null)
  7618. && (this.Adapter.UpdateCommand != null))) {
  7619. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7620. }
  7621. }
  7622. }
  7623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7625. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7626. get {
  7627. if ((this._commandCollection == null)) {
  7628. this.InitCommandCollection();
  7629. }
  7630. return this._commandCollection;
  7631. }
  7632. }
  7633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7635. public bool ClearBeforeFill {
  7636. get {
  7637. return this._clearBeforeFill;
  7638. }
  7639. set {
  7640. this._clearBeforeFill = value;
  7641. }
  7642. }
  7643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7645. private void InitAdapter() {
  7646. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7647. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7648. tableMapping.SourceTable = "Table";
  7649. tableMapping.DataSetTable = "Отображение по количеству";
  7650. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  7651. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  7652. tableMapping.ColumnMappings.Add("Цена", "Цена");
  7653. tableMapping.ColumnMappings.Add("Количество", "Количество");
  7654. tableMapping.ColumnMappings.Add("Место_хранения", "Место_хранения");
  7655. this._adapter.TableMappings.Add(tableMapping);
  7656. }
  7657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7659. private void InitConnection() {
  7660. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7661. this._connection.ConnectionString = global::IS_hairdresser.Properties.Settings.Default.GushchinaConnectionString;
  7662. }
  7663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7665. private void InitCommandCollection() {
  7666. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7667. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7668. this._commandCollection[0].Connection = this.Connection;
  7669. this._commandCollection[0].CommandText = "dbo.[Отображение по количеству]";
  7670. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  7671. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7672. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7673. }
  7674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7676. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7677. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7678. public virtual int Fill(GushchinaDataSet1.Отображение_по_количествуDataTable dataTable, string Количество) {
  7679. this.Adapter.SelectCommand = this.CommandCollection[0];
  7680. if ((Количество == null)) {
  7681. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  7682. }
  7683. else {
  7684. this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Количество));
  7685. }
  7686. if ((this.ClearBeforeFill == true)) {
  7687. dataTable.Clear();
  7688. }
  7689. int returnValue = this.Adapter.Fill(dataTable);
  7690. return returnValue;
  7691. }
  7692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7694. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7695. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7696. public virtual GushchinaDataSet1.Отображение_по_количествуDataTable GetData(string Количество) {
  7697. this.Adapter.SelectCommand = this.CommandCollection[0];
  7698. if ((Количество == null)) {
  7699. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  7700. }
  7701. else {
  7702. this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Количество));
  7703. }
  7704. GushchinaDataSet1.Отображение_по_количествуDataTable dataTable = new GushchinaDataSet1.Отображение_по_количествуDataTable();
  7705. this.Adapter.Fill(dataTable);
  7706. return dataTable;
  7707. }
  7708. }
  7709. /// <summary>
  7710. ///Represents the connection and commands used to retrieve and save data.
  7711. ///</summary>
  7712. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7713. [global::System.ComponentModel.ToolboxItem(true)]
  7714. [global::System.ComponentModel.DataObjectAttribute(true)]
  7715. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7716. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7717. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7718. public partial class Отображение_по_месту_храненияTableAdapter : global::System.ComponentModel.Component {
  7719. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7720. private global::System.Data.SqlClient.SqlConnection _connection;
  7721. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7722. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7723. private bool _clearBeforeFill;
  7724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7726. public Отображение_по_месту_храненияTableAdapter() {
  7727. this.ClearBeforeFill = true;
  7728. }
  7729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7731. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7732. get {
  7733. if ((this._adapter == null)) {
  7734. this.InitAdapter();
  7735. }
  7736. return this._adapter;
  7737. }
  7738. }
  7739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7741. internal global::System.Data.SqlClient.SqlConnection Connection {
  7742. get {
  7743. if ((this._connection == null)) {
  7744. this.InitConnection();
  7745. }
  7746. return this._connection;
  7747. }
  7748. set {
  7749. this._connection = value;
  7750. if ((this.Adapter.InsertCommand != null)) {
  7751. this.Adapter.InsertCommand.Connection = value;
  7752. }
  7753. if ((this.Adapter.DeleteCommand != null)) {
  7754. this.Adapter.DeleteCommand.Connection = value;
  7755. }
  7756. if ((this.Adapter.UpdateCommand != null)) {
  7757. this.Adapter.UpdateCommand.Connection = value;
  7758. }
  7759. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7760. if ((this.CommandCollection[i] != null)) {
  7761. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7762. }
  7763. }
  7764. }
  7765. }
  7766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7768. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7769. get {
  7770. return this._transaction;
  7771. }
  7772. set {
  7773. this._transaction = value;
  7774. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7775. this.CommandCollection[i].Transaction = this._transaction;
  7776. }
  7777. if (((this.Adapter != null)
  7778. && (this.Adapter.DeleteCommand != null))) {
  7779. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7780. }
  7781. if (((this.Adapter != null)
  7782. && (this.Adapter.InsertCommand != null))) {
  7783. this.Adapter.InsertCommand.Transaction = this._transaction;
  7784. }
  7785. if (((this.Adapter != null)
  7786. && (this.Adapter.UpdateCommand != null))) {
  7787. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7788. }
  7789. }
  7790. }
  7791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7793. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7794. get {
  7795. if ((this._commandCollection == null)) {
  7796. this.InitCommandCollection();
  7797. }
  7798. return this._commandCollection;
  7799. }
  7800. }
  7801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7803. public bool ClearBeforeFill {
  7804. get {
  7805. return this._clearBeforeFill;
  7806. }
  7807. set {
  7808. this._clearBeforeFill = value;
  7809. }
  7810. }
  7811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7813. private void InitAdapter() {
  7814. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7815. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7816. tableMapping.SourceTable = "Table";
  7817. tableMapping.DataSetTable = "Отображение по месту хранения";
  7818. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  7819. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  7820. tableMapping.ColumnMappings.Add("Цена", "Цена");
  7821. tableMapping.ColumnMappings.Add("Количество", "Количество");
  7822. tableMapping.ColumnMappings.Add("Место_хранения", "Место_хранения");
  7823. this._adapter.TableMappings.Add(tableMapping);
  7824. }
  7825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7827. private void InitConnection() {
  7828. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7829. this._connection.ConnectionString = global::IS_hairdresser.Properties.Settings.Default.GushchinaConnectionString;
  7830. }
  7831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7833. private void InitCommandCollection() {
  7834. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7835. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7836. this._commandCollection[0].Connection = this.Connection;
  7837. this._commandCollection[0].CommandText = "dbo.[Отображение по месту хранения]";
  7838. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  7839. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7840. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Место_хранения", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7841. }
  7842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7844. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7845. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7846. public virtual int Fill(GushchinaDataSet1.Отображение_по_месту_храненияDataTable dataTable, string Место_хранения) {
  7847. this.Adapter.SelectCommand = this.CommandCollection[0];
  7848. if ((Место_хранения == null)) {
  7849. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  7850. }
  7851. else {
  7852. this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Место_хранения));
  7853. }
  7854. if ((this.ClearBeforeFill == true)) {
  7855. dataTable.Clear();
  7856. }
  7857. int returnValue = this.Adapter.Fill(dataTable);
  7858. return returnValue;
  7859. }
  7860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7862. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7863. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7864. public virtual GushchinaDataSet1.Отображение_по_месту_храненияDataTable GetData(string Место_хранения) {
  7865. this.Adapter.SelectCommand = this.CommandCollection[0];
  7866. if ((Место_хранения == null)) {
  7867. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  7868. }
  7869. else {
  7870. this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Место_хранения));
  7871. }
  7872. GushchinaDataSet1.Отображение_по_месту_храненияDataTable dataTable = new GushchinaDataSet1.Отображение_по_месту_храненияDataTable();
  7873. this.Adapter.Fill(dataTable);
  7874. return dataTable;
  7875. }
  7876. }
  7877. /// <summary>
  7878. ///Represents the connection and commands used to retrieve and save data.
  7879. ///</summary>
  7880. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7881. [global::System.ComponentModel.ToolboxItem(true)]
  7882. [global::System.ComponentModel.DataObjectAttribute(true)]
  7883. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7884. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7885. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7886. public partial class Отображение_по_наименованиюTableAdapter : global::System.ComponentModel.Component {
  7887. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7888. private global::System.Data.SqlClient.SqlConnection _connection;
  7889. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7890. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7891. private bool _clearBeforeFill;
  7892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7894. public Отображение_по_наименованиюTableAdapter() {
  7895. this.ClearBeforeFill = true;
  7896. }
  7897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7899. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7900. get {
  7901. if ((this._adapter == null)) {
  7902. this.InitAdapter();
  7903. }
  7904. return this._adapter;
  7905. }
  7906. }
  7907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7909. internal global::System.Data.SqlClient.SqlConnection Connection {
  7910. get {
  7911. if ((this._connection == null)) {
  7912. this.InitConnection();
  7913. }
  7914. return this._connection;
  7915. }
  7916. set {
  7917. this._connection = value;
  7918. if ((this.Adapter.InsertCommand != null)) {
  7919. this.Adapter.InsertCommand.Connection = value;
  7920. }
  7921. if ((this.Adapter.DeleteCommand != null)) {
  7922. this.Adapter.DeleteCommand.Connection = value;
  7923. }
  7924. if ((this.Adapter.UpdateCommand != null)) {
  7925. this.Adapter.UpdateCommand.Connection = value;
  7926. }
  7927. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7928. if ((this.CommandCollection[i] != null)) {
  7929. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7930. }
  7931. }
  7932. }
  7933. }
  7934. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7935. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7936. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7937. get {
  7938. return this._transaction;
  7939. }
  7940. set {
  7941. this._transaction = value;
  7942. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7943. this.CommandCollection[i].Transaction = this._transaction;
  7944. }
  7945. if (((this.Adapter != null)
  7946. && (this.Adapter.DeleteCommand != null))) {
  7947. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7948. }
  7949. if (((this.Adapter != null)
  7950. && (this.Adapter.InsertCommand != null))) {
  7951. this.Adapter.InsertCommand.Transaction = this._transaction;
  7952. }
  7953. if (((this.Adapter != null)
  7954. && (this.Adapter.UpdateCommand != null))) {
  7955. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7956. }
  7957. }
  7958. }
  7959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7961. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7962. get {
  7963. if ((this._commandCollection == null)) {
  7964. this.InitCommandCollection();
  7965. }
  7966. return this._commandCollection;
  7967. }
  7968. }
  7969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7971. public bool ClearBeforeFill {
  7972. get {
  7973. return this._clearBeforeFill;
  7974. }
  7975. set {
  7976. this._clearBeforeFill = value;
  7977. }
  7978. }
  7979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7981. private void InitAdapter() {
  7982. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7983. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7984. tableMapping.SourceTable = "Table";
  7985. tableMapping.DataSetTable = "Отображение по наименованию";
  7986. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  7987. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  7988. tableMapping.ColumnMappings.Add("Цена", "Цена");
  7989. tableMapping.ColumnMappings.Add("Количество", "Количество");
  7990. tableMapping.ColumnMappings.Add("Место_хранения", "Место_хранения");
  7991. this._adapter.TableMappings.Add(tableMapping);
  7992. }
  7993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7995. private void InitConnection() {
  7996. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7997. this._connection.ConnectionString = global::IS_hairdresser.Properties.Settings.Default.GushchinaConnectionString;
  7998. }
  7999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8001. private void InitCommandCollection() {
  8002. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8003. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8004. this._commandCollection[0].Connection = this.Connection;
  8005. this._commandCollection[0].CommandText = "dbo.[Отображение по наименованию]";
  8006. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  8007. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8008. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Наименование", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8009. }
  8010. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8011. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8012. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8013. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8014. public virtual int Fill(GushchinaDataSet1.Отображение_по_наименованиюDataTable dataTable, string Наименование) {
  8015. this.Adapter.SelectCommand = this.CommandCollection[0];
  8016. if ((Наименование == null)) {
  8017. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  8018. }
  8019. else {
  8020. this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Наименование));
  8021. }
  8022. if ((this.ClearBeforeFill == true)) {
  8023. dataTable.Clear();
  8024. }
  8025. int returnValue = this.Adapter.Fill(dataTable);
  8026. return returnValue;
  8027. }
  8028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8030. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8031. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8032. public virtual GushchinaDataSet1.Отображение_по_наименованиюDataTable GetData(string Наименование) {
  8033. this.Adapter.SelectCommand = this.CommandCollection[0];
  8034. if ((Наименование == null)) {
  8035. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  8036. }
  8037. else {
  8038. this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Наименование));
  8039. }
  8040. GushchinaDataSet1.Отображение_по_наименованиюDataTable dataTable = new GushchinaDataSet1.Отображение_по_наименованиюDataTable();
  8041. this.Adapter.Fill(dataTable);
  8042. return dataTable;
  8043. }
  8044. }
  8045. /// <summary>
  8046. ///Represents the connection and commands used to retrieve and save data.
  8047. ///</summary>
  8048. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8049. [global::System.ComponentModel.ToolboxItem(true)]
  8050. [global::System.ComponentModel.DataObjectAttribute(true)]
  8051. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8052. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8053. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8054. public partial class Отображение_по_ценеTableAdapter : global::System.ComponentModel.Component {
  8055. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8056. private global::System.Data.SqlClient.SqlConnection _connection;
  8057. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8058. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8059. private bool _clearBeforeFill;
  8060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8062. public Отображение_по_ценеTableAdapter() {
  8063. this.ClearBeforeFill = true;
  8064. }
  8065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8067. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8068. get {
  8069. if ((this._adapter == null)) {
  8070. this.InitAdapter();
  8071. }
  8072. return this._adapter;
  8073. }
  8074. }
  8075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8077. internal global::System.Data.SqlClient.SqlConnection Connection {
  8078. get {
  8079. if ((this._connection == null)) {
  8080. this.InitConnection();
  8081. }
  8082. return this._connection;
  8083. }
  8084. set {
  8085. this._connection = value;
  8086. if ((this.Adapter.InsertCommand != null)) {
  8087. this.Adapter.InsertCommand.Connection = value;
  8088. }
  8089. if ((this.Adapter.DeleteCommand != null)) {
  8090. this.Adapter.DeleteCommand.Connection = value;
  8091. }
  8092. if ((this.Adapter.UpdateCommand != null)) {
  8093. this.Adapter.UpdateCommand.Connection = value;
  8094. }
  8095. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8096. if ((this.CommandCollection[i] != null)) {
  8097. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8098. }
  8099. }
  8100. }
  8101. }
  8102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8104. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8105. get {
  8106. return this._transaction;
  8107. }
  8108. set {
  8109. this._transaction = value;
  8110. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8111. this.CommandCollection[i].Transaction = this._transaction;
  8112. }
  8113. if (((this.Adapter != null)
  8114. && (this.Adapter.DeleteCommand != null))) {
  8115. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8116. }
  8117. if (((this.Adapter != null)
  8118. && (this.Adapter.InsertCommand != null))) {
  8119. this.Adapter.InsertCommand.Transaction = this._transaction;
  8120. }
  8121. if (((this.Adapter != null)
  8122. && (this.Adapter.UpdateCommand != null))) {
  8123. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8124. }
  8125. }
  8126. }
  8127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8129. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8130. get {
  8131. if ((this._commandCollection == null)) {
  8132. this.InitCommandCollection();
  8133. }
  8134. return this._commandCollection;
  8135. }
  8136. }
  8137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8139. public bool ClearBeforeFill {
  8140. get {
  8141. return this._clearBeforeFill;
  8142. }
  8143. set {
  8144. this._clearBeforeFill = value;
  8145. }
  8146. }
  8147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8149. private void InitAdapter() {
  8150. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8151. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8152. tableMapping.SourceTable = "Table";
  8153. tableMapping.DataSetTable = "Отображение по цене";
  8154. tableMapping.ColumnMappings.Add("Артикул", "Артикул");
  8155. tableMapping.ColumnMappings.Add("Наименование", "Наименование");
  8156. tableMapping.ColumnMappings.Add("Цена", "Цена");
  8157. tableMapping.ColumnMappings.Add("Количество", "Количество");
  8158. tableMapping.ColumnMappings.Add("Место_хранения", "Место_хранения");
  8159. this._adapter.TableMappings.Add(tableMapping);
  8160. }
  8161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8163. private void InitConnection() {
  8164. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8165. this._connection.ConnectionString = global::IS_hairdresser.Properties.Settings.Default.GushchinaConnectionString;
  8166. }
  8167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8169. private void InitCommandCollection() {
  8170. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8171. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8172. this._commandCollection[0].Connection = this.Connection;
  8173. this._commandCollection[0].CommandText = "dbo.[Отображение по цене]";
  8174. this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
  8175. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8176. this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Цена", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8177. }
  8178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8180. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8181. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8182. public virtual int Fill(GushchinaDataSet1.Отображение_по_ценеDataTable dataTable, string Цена) {
  8183. this.Adapter.SelectCommand = this.CommandCollection[0];
  8184. if ((Цена == null)) {
  8185. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  8186. }
  8187. else {
  8188. this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Цена));
  8189. }
  8190. if ((this.ClearBeforeFill == true)) {
  8191. dataTable.Clear();
  8192. }
  8193. int returnValue = this.Adapter.Fill(dataTable);
  8194. return returnValue;
  8195. }
  8196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8198. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8199. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8200. public virtual GushchinaDataSet1.Отображение_по_ценеDataTable GetData(string Цена) {
  8201. this.Adapter.SelectCommand = this.CommandCollection[0];
  8202. if ((Цена == null)) {
  8203. this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
  8204. }
  8205. else {
  8206. this.Adapter.SelectCommand.Parameters[1].Value = ((string)(Цена));
  8207. }
  8208. GushchinaDataSet1.Отображение_по_ценеDataTable dataTable = new GushchinaDataSet1.Отображение_по_ценеDataTable();
  8209. this.Adapter.Fill(dataTable);
  8210. return dataTable;
  8211. }
  8212. }
  8213. /// <summary>
  8214. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  8215. ///</summary>
  8216. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8217. [global::System.ComponentModel.ToolboxItem(true)]
  8218. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  8219. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8220. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  8221. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  8222. private UpdateOrderOption _updateOrder;
  8223. private Consumables_soldTableAdapter _consumables_soldTableAdapter;
  8224. private DeliveriesTableAdapter _deliveriesTableAdapter;
  8225. private ListTableAdapter _listTableAdapter;
  8226. private PurchaseTableAdapter _purchaseTableAdapter;
  8227. private Used_consumablesTableAdapter _used_consumablesTableAdapter;
  8228. private WarehouseTableAdapter _warehouseTableAdapter;
  8229. private bool _backupDataSetBeforeUpdate;
  8230. private global::System.Data.IDbConnection _connection;
  8231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8233. public UpdateOrderOption UpdateOrder {
  8234. get {
  8235. return this._updateOrder;
  8236. }
  8237. set {
  8238. this._updateOrder = value;
  8239. }
  8240. }
  8241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8243. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8244. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8245. "a", "System.Drawing.Design.UITypeEditor")]
  8246. public Consumables_soldTableAdapter Consumables_soldTableAdapter {
  8247. get {
  8248. return this._consumables_soldTableAdapter;
  8249. }
  8250. set {
  8251. this._consumables_soldTableAdapter = value;
  8252. }
  8253. }
  8254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8256. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8257. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8258. "a", "System.Drawing.Design.UITypeEditor")]
  8259. public DeliveriesTableAdapter DeliveriesTableAdapter {
  8260. get {
  8261. return this._deliveriesTableAdapter;
  8262. }
  8263. set {
  8264. this._deliveriesTableAdapter = value;
  8265. }
  8266. }
  8267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8269. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8270. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8271. "a", "System.Drawing.Design.UITypeEditor")]
  8272. public ListTableAdapter ListTableAdapter {
  8273. get {
  8274. return this._listTableAdapter;
  8275. }
  8276. set {
  8277. this._listTableAdapter = value;
  8278. }
  8279. }
  8280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8282. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8283. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8284. "a", "System.Drawing.Design.UITypeEditor")]
  8285. public PurchaseTableAdapter PurchaseTableAdapter {
  8286. get {
  8287. return this._purchaseTableAdapter;
  8288. }
  8289. set {
  8290. this._purchaseTableAdapter = value;
  8291. }
  8292. }
  8293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8295. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8296. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8297. "a", "System.Drawing.Design.UITypeEditor")]
  8298. public Used_consumablesTableAdapter Used_consumablesTableAdapter {
  8299. get {
  8300. return this._used_consumablesTableAdapter;
  8301. }
  8302. set {
  8303. this._used_consumablesTableAdapter = value;
  8304. }
  8305. }
  8306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8308. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8309. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8310. "a", "System.Drawing.Design.UITypeEditor")]
  8311. public WarehouseTableAdapter WarehouseTableAdapter {
  8312. get {
  8313. return this._warehouseTableAdapter;
  8314. }
  8315. set {
  8316. this._warehouseTableAdapter = value;
  8317. }
  8318. }
  8319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8321. public bool BackupDataSetBeforeUpdate {
  8322. get {
  8323. return this._backupDataSetBeforeUpdate;
  8324. }
  8325. set {
  8326. this._backupDataSetBeforeUpdate = value;
  8327. }
  8328. }
  8329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8331. [global::System.ComponentModel.Browsable(false)]
  8332. public global::System.Data.IDbConnection Connection {
  8333. get {
  8334. if ((this._connection != null)) {
  8335. return this._connection;
  8336. }
  8337. if (((this._consumables_soldTableAdapter != null)
  8338. && (this._consumables_soldTableAdapter.Connection != null))) {
  8339. return this._consumables_soldTableAdapter.Connection;
  8340. }
  8341. if (((this._deliveriesTableAdapter != null)
  8342. && (this._deliveriesTableAdapter.Connection != null))) {
  8343. return this._deliveriesTableAdapter.Connection;
  8344. }
  8345. if (((this._listTableAdapter != null)
  8346. && (this._listTableAdapter.Connection != null))) {
  8347. return this._listTableAdapter.Connection;
  8348. }
  8349. if (((this._purchaseTableAdapter != null)
  8350. && (this._purchaseTableAdapter.Connection != null))) {
  8351. return this._purchaseTableAdapter.Connection;
  8352. }
  8353. if (((this._used_consumablesTableAdapter != null)
  8354. && (this._used_consumablesTableAdapter.Connection != null))) {
  8355. return this._used_consumablesTableAdapter.Connection;
  8356. }
  8357. if (((this._warehouseTableAdapter != null)
  8358. && (this._warehouseTableAdapter.Connection != null))) {
  8359. return this._warehouseTableAdapter.Connection;
  8360. }
  8361. return null;
  8362. }
  8363. set {
  8364. this._connection = value;
  8365. }
  8366. }
  8367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8369. [global::System.ComponentModel.Browsable(false)]
  8370. public int TableAdapterInstanceCount {
  8371. get {
  8372. int count = 0;
  8373. if ((this._consumables_soldTableAdapter != null)) {
  8374. count = (count + 1);
  8375. }
  8376. if ((this._deliveriesTableAdapter != null)) {
  8377. count = (count + 1);
  8378. }
  8379. if ((this._listTableAdapter != null)) {
  8380. count = (count + 1);
  8381. }
  8382. if ((this._purchaseTableAdapter != null)) {
  8383. count = (count + 1);
  8384. }
  8385. if ((this._used_consumablesTableAdapter != null)) {
  8386. count = (count + 1);
  8387. }
  8388. if ((this._warehouseTableAdapter != null)) {
  8389. count = (count + 1);
  8390. }
  8391. return count;
  8392. }
  8393. }
  8394. /// <summary>
  8395. ///Update rows in top-down order.
  8396. ///</summary>
  8397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8399. private int UpdateUpdatedRows(GushchinaDataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  8400. int result = 0;
  8401. if ((this._listTableAdapter != null)) {
  8402. global::System.Data.DataRow[] updatedRows = dataSet.List.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8403. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8404. if (((updatedRows != null)
  8405. && (0 < updatedRows.Length))) {
  8406. result = (result + this._listTableAdapter.Update(updatedRows));
  8407. allChangedRows.AddRange(updatedRows);
  8408. }
  8409. }
  8410. if ((this._purchaseTableAdapter != null)) {
  8411. global::System.Data.DataRow[] updatedRows = dataSet.Purchase.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8412. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8413. if (((updatedRows != null)
  8414. && (0 < updatedRows.Length))) {
  8415. result = (result + this._purchaseTableAdapter.Update(updatedRows));
  8416. allChangedRows.AddRange(updatedRows);
  8417. }
  8418. }
  8419. if ((this._warehouseTableAdapter != null)) {
  8420. global::System.Data.DataRow[] updatedRows = dataSet.Warehouse.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8421. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8422. if (((updatedRows != null)
  8423. && (0 < updatedRows.Length))) {
  8424. result = (result + this._warehouseTableAdapter.Update(updatedRows));
  8425. allChangedRows.AddRange(updatedRows);
  8426. }
  8427. }
  8428. if ((this._consumables_soldTableAdapter != null)) {
  8429. global::System.Data.DataRow[] updatedRows = dataSet.Consumables_sold.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8430. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8431. if (((updatedRows != null)
  8432. && (0 < updatedRows.Length))) {
  8433. result = (result + this._consumables_soldTableAdapter.Update(updatedRows));
  8434. allChangedRows.AddRange(updatedRows);
  8435. }
  8436. }
  8437. if ((this._deliveriesTableAdapter != null)) {
  8438. global::System.Data.DataRow[] updatedRows = dataSet.Deliveries.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8439. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8440. if (((updatedRows != null)
  8441. && (0 < updatedRows.Length))) {
  8442. result = (result + this._deliveriesTableAdapter.Update(updatedRows));
  8443. allChangedRows.AddRange(updatedRows);
  8444. }
  8445. }
  8446. if ((this._used_consumablesTableAdapter != null)) {
  8447. global::System.Data.DataRow[] updatedRows = dataSet.Used_consumables.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8448. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8449. if (((updatedRows != null)
  8450. && (0 < updatedRows.Length))) {
  8451. result = (result + this._used_consumablesTableAdapter.Update(updatedRows));
  8452. allChangedRows.AddRange(updatedRows);
  8453. }
  8454. }
  8455. return result;
  8456. }
  8457. /// <summary>
  8458. ///Insert rows in top-down order.
  8459. ///</summary>
  8460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8462. private int UpdateInsertedRows(GushchinaDataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  8463. int result = 0;
  8464. if ((this._listTableAdapter != null)) {
  8465. global::System.Data.DataRow[] addedRows = dataSet.List.Select(null, null, global::System.Data.DataViewRowState.Added);
  8466. if (((addedRows != null)
  8467. && (0 < addedRows.Length))) {
  8468. result = (result + this._listTableAdapter.Update(addedRows));
  8469. allAddedRows.AddRange(addedRows);
  8470. }
  8471. }
  8472. if ((this._purchaseTableAdapter != null)) {
  8473. global::System.Data.DataRow[] addedRows = dataSet.Purchase.Select(null, null, global::System.Data.DataViewRowState.Added);
  8474. if (((addedRows != null)
  8475. && (0 < addedRows.Length))) {
  8476. result = (result + this._purchaseTableAdapter.Update(addedRows));
  8477. allAddedRows.AddRange(addedRows);
  8478. }
  8479. }
  8480. if ((this._warehouseTableAdapter != null)) {
  8481. global::System.Data.DataRow[] addedRows = dataSet.Warehouse.Select(null, null, global::System.Data.DataViewRowState.Added);
  8482. if (((addedRows != null)
  8483. && (0 < addedRows.Length))) {
  8484. result = (result + this._warehouseTableAdapter.Update(addedRows));
  8485. allAddedRows.AddRange(addedRows);
  8486. }
  8487. }
  8488. if ((this._consumables_soldTableAdapter != null)) {
  8489. global::System.Data.DataRow[] addedRows = dataSet.Consumables_sold.Select(null, null, global::System.Data.DataViewRowState.Added);
  8490. if (((addedRows != null)
  8491. && (0 < addedRows.Length))) {
  8492. result = (result + this._consumables_soldTableAdapter.Update(addedRows));
  8493. allAddedRows.AddRange(addedRows);
  8494. }
  8495. }
  8496. if ((this._deliveriesTableAdapter != null)) {
  8497. global::System.Data.DataRow[] addedRows = dataSet.Deliveries.Select(null, null, global::System.Data.DataViewRowState.Added);
  8498. if (((addedRows != null)
  8499. && (0 < addedRows.Length))) {
  8500. result = (result + this._deliveriesTableAdapter.Update(addedRows));
  8501. allAddedRows.AddRange(addedRows);
  8502. }
  8503. }
  8504. if ((this._used_consumablesTableAdapter != null)) {
  8505. global::System.Data.DataRow[] addedRows = dataSet.Used_consumables.Select(null, null, global::System.Data.DataViewRowState.Added);
  8506. if (((addedRows != null)
  8507. && (0 < addedRows.Length))) {
  8508. result = (result + this._used_consumablesTableAdapter.Update(addedRows));
  8509. allAddedRows.AddRange(addedRows);
  8510. }
  8511. }
  8512. return result;
  8513. }
  8514. /// <summary>
  8515. ///Delete rows in bottom-up order.
  8516. ///</summary>
  8517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8519. private int UpdateDeletedRows(GushchinaDataSet1 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  8520. int result = 0;
  8521. if ((this._used_consumablesTableAdapter != null)) {
  8522. global::System.Data.DataRow[] deletedRows = dataSet.Used_consumables.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8523. if (((deletedRows != null)
  8524. && (0 < deletedRows.Length))) {
  8525. result = (result + this._used_consumablesTableAdapter.Update(deletedRows));
  8526. allChangedRows.AddRange(deletedRows);
  8527. }
  8528. }
  8529. if ((this._deliveriesTableAdapter != null)) {
  8530. global::System.Data.DataRow[] deletedRows = dataSet.Deliveries.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8531. if (((deletedRows != null)
  8532. && (0 < deletedRows.Length))) {
  8533. result = (result + this._deliveriesTableAdapter.Update(deletedRows));
  8534. allChangedRows.AddRange(deletedRows);
  8535. }
  8536. }
  8537. if ((this._consumables_soldTableAdapter != null)) {
  8538. global::System.Data.DataRow[] deletedRows = dataSet.Consumables_sold.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8539. if (((deletedRows != null)
  8540. && (0 < deletedRows.Length))) {
  8541. result = (result + this._consumables_soldTableAdapter.Update(deletedRows));
  8542. allChangedRows.AddRange(deletedRows);
  8543. }
  8544. }
  8545. if ((this._warehouseTableAdapter != null)) {
  8546. global::System.Data.DataRow[] deletedRows = dataSet.Warehouse.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8547. if (((deletedRows != null)
  8548. && (0 < deletedRows.Length))) {
  8549. result = (result + this._warehouseTableAdapter.Update(deletedRows));
  8550. allChangedRows.AddRange(deletedRows);
  8551. }
  8552. }
  8553. if ((this._purchaseTableAdapter != null)) {
  8554. global::System.Data.DataRow[] deletedRows = dataSet.Purchase.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8555. if (((deletedRows != null)
  8556. && (0 < deletedRows.Length))) {
  8557. result = (result + this._purchaseTableAdapter.Update(deletedRows));
  8558. allChangedRows.AddRange(deletedRows);
  8559. }
  8560. }
  8561. if ((this._listTableAdapter != null)) {
  8562. global::System.Data.DataRow[] deletedRows = dataSet.List.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8563. if (((deletedRows != null)
  8564. && (0 < deletedRows.Length))) {
  8565. result = (result + this._listTableAdapter.Update(deletedRows));
  8566. allChangedRows.AddRange(deletedRows);
  8567. }
  8568. }
  8569. return result;
  8570. }
  8571. /// <summary>
  8572. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  8573. ///</summary>
  8574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8576. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  8577. if (((updatedRows == null)
  8578. || (updatedRows.Length < 1))) {
  8579. return updatedRows;
  8580. }
  8581. if (((allAddedRows == null)
  8582. || (allAddedRows.Count < 1))) {
  8583. return updatedRows;
  8584. }
  8585. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  8586. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  8587. global::System.Data.DataRow row = updatedRows[i];
  8588. if ((allAddedRows.Contains(row) == false)) {
  8589. realUpdatedRows.Add(row);
  8590. }
  8591. }
  8592. return realUpdatedRows.ToArray();
  8593. }
  8594. /// <summary>
  8595. ///Update all changes to the dataset.
  8596. ///</summary>
  8597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8599. public virtual int UpdateAll(GushchinaDataSet1 dataSet) {
  8600. if ((dataSet == null)) {
  8601. throw new global::System.ArgumentNullException("dataSet");
  8602. }
  8603. if ((dataSet.HasChanges() == false)) {
  8604. return 0;
  8605. }
  8606. if (((this._consumables_soldTableAdapter != null)
  8607. && (this.MatchTableAdapterConnection(this._consumables_soldTableAdapter.Connection) == false))) {
  8608. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8609. "r, должны использовать одинаковую строку подключения.");
  8610. }
  8611. if (((this._deliveriesTableAdapter != null)
  8612. && (this.MatchTableAdapterConnection(this._deliveriesTableAdapter.Connection) == false))) {
  8613. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8614. "r, должны использовать одинаковую строку подключения.");
  8615. }
  8616. if (((this._listTableAdapter != null)
  8617. && (this.MatchTableAdapterConnection(this._listTableAdapter.Connection) == false))) {
  8618. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8619. "r, должны использовать одинаковую строку подключения.");
  8620. }
  8621. if (((this._purchaseTableAdapter != null)
  8622. && (this.MatchTableAdapterConnection(this._purchaseTableAdapter.Connection) == false))) {
  8623. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8624. "r, должны использовать одинаковую строку подключения.");
  8625. }
  8626. if (((this._used_consumablesTableAdapter != null)
  8627. && (this.MatchTableAdapterConnection(this._used_consumablesTableAdapter.Connection) == false))) {
  8628. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8629. "r, должны использовать одинаковую строку подключения.");
  8630. }
  8631. if (((this._warehouseTableAdapter != null)
  8632. && (this.MatchTableAdapterConnection(this._warehouseTableAdapter.Connection) == false))) {
  8633. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8634. "r, должны использовать одинаковую строку подключения.");
  8635. }
  8636. global::System.Data.IDbConnection workConnection = this.Connection;
  8637. if ((workConnection == null)) {
  8638. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  8639. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  8640. }
  8641. bool workConnOpened = false;
  8642. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  8643. == global::System.Data.ConnectionState.Broken)) {
  8644. workConnection.Close();
  8645. }
  8646. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  8647. workConnection.Open();
  8648. workConnOpened = true;
  8649. }
  8650. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  8651. if ((workTransaction == null)) {
  8652. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  8653. "и или текущее состояние не позволяет начать транзакцию.");
  8654. }
  8655. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  8656. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  8657. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  8658. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  8659. int result = 0;
  8660. global::System.Data.DataSet backupDataSet = null;
  8661. if (this.BackupDataSetBeforeUpdate) {
  8662. backupDataSet = new global::System.Data.DataSet();
  8663. backupDataSet.Merge(dataSet);
  8664. }
  8665. try {
  8666. // ---- Prepare for update -----------
  8667. //
  8668. if ((this._consumables_soldTableAdapter != null)) {
  8669. revertConnections.Add(this._consumables_soldTableAdapter, this._consumables_soldTableAdapter.Connection);
  8670. this._consumables_soldTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8671. this._consumables_soldTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8672. if (this._consumables_soldTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8673. this._consumables_soldTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8674. adaptersWithAcceptChangesDuringUpdate.Add(this._consumables_soldTableAdapter.Adapter);
  8675. }
  8676. }
  8677. if ((this._deliveriesTableAdapter != null)) {
  8678. revertConnections.Add(this._deliveriesTableAdapter, this._deliveriesTableAdapter.Connection);
  8679. this._deliveriesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8680. this._deliveriesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8681. if (this._deliveriesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8682. this._deliveriesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8683. adaptersWithAcceptChangesDuringUpdate.Add(this._deliveriesTableAdapter.Adapter);
  8684. }
  8685. }
  8686. if ((this._listTableAdapter != null)) {
  8687. revertConnections.Add(this._listTableAdapter, this._listTableAdapter.Connection);
  8688. this._listTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8689. this._listTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8690. if (this._listTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8691. this._listTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8692. adaptersWithAcceptChangesDuringUpdate.Add(this._listTableAdapter.Adapter);
  8693. }
  8694. }
  8695. if ((this._purchaseTableAdapter != null)) {
  8696. revertConnections.Add(this._purchaseTableAdapter, this._purchaseTableAdapter.Connection);
  8697. this._purchaseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8698. this._purchaseTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8699. if (this._purchaseTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8700. this._purchaseTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8701. adaptersWithAcceptChangesDuringUpdate.Add(this._purchaseTableAdapter.Adapter);
  8702. }
  8703. }
  8704. if ((this._used_consumablesTableAdapter != null)) {
  8705. revertConnections.Add(this._used_consumablesTableAdapter, this._used_consumablesTableAdapter.Connection);
  8706. this._used_consumablesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8707. this._used_consumablesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8708. if (this._used_consumablesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8709. this._used_consumablesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8710. adaptersWithAcceptChangesDuringUpdate.Add(this._used_consumablesTableAdapter.Adapter);
  8711. }
  8712. }
  8713. if ((this._warehouseTableAdapter != null)) {
  8714. revertConnections.Add(this._warehouseTableAdapter, this._warehouseTableAdapter.Connection);
  8715. this._warehouseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  8716. this._warehouseTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  8717. if (this._warehouseTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  8718. this._warehouseTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  8719. adaptersWithAcceptChangesDuringUpdate.Add(this._warehouseTableAdapter.Adapter);
  8720. }
  8721. }
  8722. //
  8723. //---- Perform updates -----------
  8724. //
  8725. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  8726. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  8727. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  8728. }
  8729. else {
  8730. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  8731. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  8732. }
  8733. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  8734. //
  8735. //---- Commit updates -----------
  8736. //
  8737. workTransaction.Commit();
  8738. if ((0 < allAddedRows.Count)) {
  8739. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  8740. allAddedRows.CopyTo(rows);
  8741. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  8742. global::System.Data.DataRow row = rows[i];
  8743. row.AcceptChanges();
  8744. }
  8745. }
  8746. if ((0 < allChangedRows.Count)) {
  8747. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  8748. allChangedRows.CopyTo(rows);
  8749. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  8750. global::System.Data.DataRow row = rows[i];
  8751. row.AcceptChanges();
  8752. }
  8753. }
  8754. }
  8755. catch (global::System.Exception ex) {
  8756. workTransaction.Rollback();
  8757. // ---- Restore the dataset -----------
  8758. if (this.BackupDataSetBeforeUpdate) {
  8759. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  8760. dataSet.Clear();
  8761. dataSet.Merge(backupDataSet);
  8762. }
  8763. else {
  8764. if ((0 < allAddedRows.Count)) {
  8765. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  8766. allAddedRows.CopyTo(rows);
  8767. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  8768. global::System.Data.DataRow row = rows[i];
  8769. row.AcceptChanges();
  8770. row.SetAdded();
  8771. }
  8772. }
  8773. }
  8774. throw ex;
  8775. }
  8776. finally {
  8777. if (workConnOpened) {
  8778. workConnection.Close();
  8779. }
  8780. if ((this._consumables_soldTableAdapter != null)) {
  8781. this._consumables_soldTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._consumables_soldTableAdapter]));
  8782. this._consumables_soldTableAdapter.Transaction = null;
  8783. }
  8784. if ((this._deliveriesTableAdapter != null)) {
  8785. this._deliveriesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._deliveriesTableAdapter]));
  8786. this._deliveriesTableAdapter.Transaction = null;
  8787. }
  8788. if ((this._listTableAdapter != null)) {
  8789. this._listTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._listTableAdapter]));
  8790. this._listTableAdapter.Transaction = null;
  8791. }
  8792. if ((this._purchaseTableAdapter != null)) {
  8793. this._purchaseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._purchaseTableAdapter]));
  8794. this._purchaseTableAdapter.Transaction = null;
  8795. }
  8796. if ((this._used_consumablesTableAdapter != null)) {
  8797. this._used_consumablesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._used_consumablesTableAdapter]));
  8798. this._used_consumablesTableAdapter.Transaction = null;
  8799. }
  8800. if ((this._warehouseTableAdapter != null)) {
  8801. this._warehouseTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._warehouseTableAdapter]));
  8802. this._warehouseTableAdapter.Transaction = null;
  8803. }
  8804. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  8805. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  8806. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  8807. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  8808. global::System.Data.Common.DataAdapter adapter = adapters[i];
  8809. adapter.AcceptChangesDuringUpdate = true;
  8810. }
  8811. }
  8812. }
  8813. return result;
  8814. }
  8815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8817. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  8818. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  8819. }
  8820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8822. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  8823. if ((this._connection != null)) {
  8824. return true;
  8825. }
  8826. if (((this.Connection == null)
  8827. || (inputConnection == null))) {
  8828. return true;
  8829. }
  8830. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  8831. return true;
  8832. }
  8833. return false;
  8834. }
  8835. /// <summary>
  8836. ///Update Order Option
  8837. ///</summary>
  8838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8839. public enum UpdateOrderOption {
  8840. InsertUpdateDelete = 0,
  8841. UpdateInsertDelete = 1,
  8842. }
  8843. /// <summary>
  8844. ///Used to sort self-referenced table's rows
  8845. ///</summary>
  8846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8847. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  8848. private global::System.Data.DataRelation _relation;
  8849. private int _childFirst;
  8850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8852. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  8853. this._relation = relation;
  8854. if (childFirst) {
  8855. this._childFirst = -1;
  8856. }
  8857. else {
  8858. this._childFirst = 1;
  8859. }
  8860. }
  8861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8863. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  8864. global::System.Diagnostics.Debug.Assert((row != null));
  8865. global::System.Data.DataRow root = row;
  8866. distance = 0;
  8867. 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>();
  8868. traversedRows[row] = row;
  8869. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  8870. for (
  8871. ; ((parent != null)
  8872. && (traversedRows.ContainsKey(parent) == false));
  8873. ) {
  8874. distance = (distance + 1);
  8875. root = parent;
  8876. traversedRows[parent] = parent;
  8877. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  8878. }
  8879. if ((distance == 0)) {
  8880. traversedRows.Clear();
  8881. traversedRows[row] = row;
  8882. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  8883. for (
  8884. ; ((parent != null)
  8885. && (traversedRows.ContainsKey(parent) == false));
  8886. ) {
  8887. distance = (distance + 1);
  8888. root = parent;
  8889. traversedRows[parent] = parent;
  8890. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  8891. }
  8892. }
  8893. return root;
  8894. }
  8895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8897. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  8898. if (object.ReferenceEquals(row1, row2)) {
  8899. return 0;
  8900. }
  8901. if ((row1 == null)) {
  8902. return -1;
  8903. }
  8904. if ((row2 == null)) {
  8905. return 1;
  8906. }
  8907. int distance1 = 0;
  8908. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  8909. int distance2 = 0;
  8910. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  8911. if (object.ReferenceEquals(root1, root2)) {
  8912. return (this._childFirst * distance1.CompareTo(distance2));
  8913. }
  8914. else {
  8915. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  8916. && (root2.Table != null)));
  8917. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  8918. return -1;
  8919. }
  8920. else {
  8921. return 1;
  8922. }
  8923. }
  8924. }
  8925. }
  8926. }
  8927. }
  8928. #pragma warning restore 1591