Yurevich_INTERNET_PRODAZHIDataSet.Designer.cs 400 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Yurevich_InternetProdazhi {
  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("Yurevich_INTERNET_PRODAZHIDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class Yurevich_INTERNET_PRODAZHIDataSet : global::System.Data.DataSet {
  22. private ДоставкаDataTable tableДоставка;
  23. private ЗаказыDataTable tableЗаказы;
  24. private _Интернет_магазиныDataTable _tableИнтернет_магазины;
  25. private _Магазины_ТоварыDataTable _tableМагазины_Товары;
  26. private ТоварыDataTable tableТовары;
  27. private global::System.Data.DataRelation relationFK_Доставка_Заказы;
  28. private global::System.Data.DataRelation _relationFK_Заказы_Интернет_магазины;
  29. private global::System.Data.DataRelation relationFK_Заказы_Товары1;
  30. private global::System.Data.DataRelation _relationFK_Магазины_Товары_Интернет_магазины;
  31. private global::System.Data.DataRelation _relationFK_Магазины_Товары_Товары;
  32. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  33. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  34. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  35. public Yurevich_INTERNET_PRODAZHIDataSet() {
  36. this.BeginInit();
  37. this.InitClass();
  38. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  39. base.Tables.CollectionChanged += schemaChangedHandler;
  40. base.Relations.CollectionChanged += schemaChangedHandler;
  41. this.EndInit();
  42. }
  43. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  44. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  45. protected Yurevich_INTERNET_PRODAZHIDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  46. base(info, context, false) {
  47. if ((this.IsBinarySerialized(info, context) == true)) {
  48. this.InitVars(false);
  49. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  50. this.Tables.CollectionChanged += schemaChangedHandler1;
  51. this.Relations.CollectionChanged += schemaChangedHandler1;
  52. return;
  53. }
  54. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  55. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  56. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  57. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  58. if ((ds.Tables["Доставка"] != null)) {
  59. base.Tables.Add(new ДоставкаDataTable(ds.Tables["Доставка"]));
  60. }
  61. if ((ds.Tables["Заказы"] != null)) {
  62. base.Tables.Add(new ЗаказыDataTable(ds.Tables["Заказы"]));
  63. }
  64. if ((ds.Tables["Интернет-магазины"] != null)) {
  65. base.Tables.Add(new _Интернет_магазиныDataTable(ds.Tables["Интернет-магазины"]));
  66. }
  67. if ((ds.Tables["Магазины/Товары"] != null)) {
  68. base.Tables.Add(new _Магазины_ТоварыDataTable(ds.Tables["Магазины/Товары"]));
  69. }
  70. if ((ds.Tables["Товары"] != null)) {
  71. base.Tables.Add(new ТоварыDataTable(ds.Tables["Товары"]));
  72. }
  73. this.DataSetName = ds.DataSetName;
  74. this.Prefix = ds.Prefix;
  75. this.Namespace = ds.Namespace;
  76. this.Locale = ds.Locale;
  77. this.CaseSensitive = ds.CaseSensitive;
  78. this.EnforceConstraints = ds.EnforceConstraints;
  79. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  80. this.InitVars();
  81. }
  82. else {
  83. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  84. }
  85. this.GetSerializationData(info, context);
  86. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  87. base.Tables.CollectionChanged += schemaChangedHandler;
  88. this.Relations.CollectionChanged += schemaChangedHandler;
  89. }
  90. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  91. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  92. [global::System.ComponentModel.Browsable(false)]
  93. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  94. public ДоставкаDataTable Доставка {
  95. get {
  96. return this.tableДоставка;
  97. }
  98. }
  99. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  101. [global::System.ComponentModel.Browsable(false)]
  102. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  103. public ЗаказыDataTable Заказы {
  104. get {
  105. return this.tableЗаказы;
  106. }
  107. }
  108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  110. [global::System.ComponentModel.Browsable(false)]
  111. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  112. public _Интернет_магазиныDataTable _Интернет_магазины {
  113. get {
  114. return this._tableИнтернет_магазины;
  115. }
  116. }
  117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  119. [global::System.ComponentModel.Browsable(false)]
  120. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  121. public _Магазины_ТоварыDataTable _Магазины_Товары {
  122. get {
  123. return this._tableМагазины_Товары;
  124. }
  125. }
  126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  128. [global::System.ComponentModel.Browsable(false)]
  129. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  130. public ТоварыDataTable Товары {
  131. get {
  132. return this.tableТовары;
  133. }
  134. }
  135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  137. [global::System.ComponentModel.BrowsableAttribute(true)]
  138. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  139. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  140. get {
  141. return this._schemaSerializationMode;
  142. }
  143. set {
  144. this._schemaSerializationMode = value;
  145. }
  146. }
  147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  149. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  150. public new global::System.Data.DataTableCollection Tables {
  151. get {
  152. return base.Tables;
  153. }
  154. }
  155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  157. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  158. public new global::System.Data.DataRelationCollection Relations {
  159. get {
  160. return base.Relations;
  161. }
  162. }
  163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  165. protected override void InitializeDerivedDataSet() {
  166. this.BeginInit();
  167. this.InitClass();
  168. this.EndInit();
  169. }
  170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  172. public override global::System.Data.DataSet Clone() {
  173. Yurevich_INTERNET_PRODAZHIDataSet cln = ((Yurevich_INTERNET_PRODAZHIDataSet)(base.Clone()));
  174. cln.InitVars();
  175. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  176. return cln;
  177. }
  178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  180. protected override bool ShouldSerializeTables() {
  181. return false;
  182. }
  183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  185. protected override bool ShouldSerializeRelations() {
  186. return false;
  187. }
  188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  190. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  191. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  192. this.Reset();
  193. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  194. ds.ReadXml(reader);
  195. if ((ds.Tables["Доставка"] != null)) {
  196. base.Tables.Add(new ДоставкаDataTable(ds.Tables["Доставка"]));
  197. }
  198. if ((ds.Tables["Заказы"] != null)) {
  199. base.Tables.Add(new ЗаказыDataTable(ds.Tables["Заказы"]));
  200. }
  201. if ((ds.Tables["Интернет-магазины"] != null)) {
  202. base.Tables.Add(new _Интернет_магазиныDataTable(ds.Tables["Интернет-магазины"]));
  203. }
  204. if ((ds.Tables["Магазины/Товары"] != null)) {
  205. base.Tables.Add(new _Магазины_ТоварыDataTable(ds.Tables["Магазины/Товары"]));
  206. }
  207. if ((ds.Tables["Товары"] != null)) {
  208. base.Tables.Add(new ТоварыDataTable(ds.Tables["Товары"]));
  209. }
  210. this.DataSetName = ds.DataSetName;
  211. this.Prefix = ds.Prefix;
  212. this.Namespace = ds.Namespace;
  213. this.Locale = ds.Locale;
  214. this.CaseSensitive = ds.CaseSensitive;
  215. this.EnforceConstraints = ds.EnforceConstraints;
  216. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  217. this.InitVars();
  218. }
  219. else {
  220. this.ReadXml(reader);
  221. this.InitVars();
  222. }
  223. }
  224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  226. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  227. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  228. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  229. stream.Position = 0;
  230. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  231. }
  232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  234. internal void InitVars() {
  235. this.InitVars(true);
  236. }
  237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  239. internal void InitVars(bool initTable) {
  240. this.tableДоставка = ((ДоставкаDataTable)(base.Tables["Доставка"]));
  241. if ((initTable == true)) {
  242. if ((this.tableДоставка != null)) {
  243. this.tableДоставка.InitVars();
  244. }
  245. }
  246. this.tableЗаказы = ((ЗаказыDataTable)(base.Tables["Заказы"]));
  247. if ((initTable == true)) {
  248. if ((this.tableЗаказы != null)) {
  249. this.tableЗаказы.InitVars();
  250. }
  251. }
  252. this._tableИнтернет_магазины = ((_Интернет_магазиныDataTable)(base.Tables["Интернет-магазины"]));
  253. if ((initTable == true)) {
  254. if ((this._tableИнтернет_магазины != null)) {
  255. this._tableИнтернет_магазины.InitVars();
  256. }
  257. }
  258. this._tableМагазины_Товары = ((_Магазины_ТоварыDataTable)(base.Tables["Магазины/Товары"]));
  259. if ((initTable == true)) {
  260. if ((this._tableМагазины_Товары != null)) {
  261. this._tableМагазины_Товары.InitVars();
  262. }
  263. }
  264. this.tableТовары = ((ТоварыDataTable)(base.Tables["Товары"]));
  265. if ((initTable == true)) {
  266. if ((this.tableТовары != null)) {
  267. this.tableТовары.InitVars();
  268. }
  269. }
  270. this.relationFK_Доставка_Заказы = this.Relations["FK_Доставка_Заказы"];
  271. this._relationFK_Заказы_Интернет_магазины = this.Relations["FK_Заказы_Интернет-магазины"];
  272. this.relationFK_Заказы_Товары1 = this.Relations["FK_Заказы_Товары1"];
  273. this._relationFK_Магазины_Товары_Интернет_магазины = this.Relations["FK_Магазины/Товары_Интернет-магазины"];
  274. this._relationFK_Магазины_Товары_Товары = this.Relations["FK_Магазины/Товары_Товары"];
  275. }
  276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  278. private void InitClass() {
  279. this.DataSetName = "Yurevich_INTERNET_PRODAZHIDataSet";
  280. this.Prefix = "";
  281. this.Namespace = "http://tempuri.org/Yurevich_INTERNET_PRODAZHIDataSet.xsd";
  282. this.EnforceConstraints = true;
  283. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  284. this.tableДоставка = new ДоставкаDataTable();
  285. base.Tables.Add(this.tableДоставка);
  286. this.tableЗаказы = new ЗаказыDataTable();
  287. base.Tables.Add(this.tableЗаказы);
  288. this._tableИнтернет_магазины = new _Интернет_магазиныDataTable();
  289. base.Tables.Add(this._tableИнтернет_магазины);
  290. this._tableМагазины_Товары = new _Магазины_ТоварыDataTable();
  291. base.Tables.Add(this._tableМагазины_Товары);
  292. this.tableТовары = new ТоварыDataTable();
  293. base.Tables.Add(this.tableТовары);
  294. this.relationFK_Доставка_Заказы = new global::System.Data.DataRelation("FK_Доставка_Заказы", new global::System.Data.DataColumn[] {
  295. this.tableЗаказы.Код_заказаColumn}, new global::System.Data.DataColumn[] {
  296. this.tableДоставка.Код_заказаColumn}, false);
  297. this.Relations.Add(this.relationFK_Доставка_Заказы);
  298. this._relationFK_Заказы_Интернет_магазины = new global::System.Data.DataRelation("FK_Заказы_Интернет-магазины", new global::System.Data.DataColumn[] {
  299. this._tableИнтернет_магазины.Код_магазинаColumn}, new global::System.Data.DataColumn[] {
  300. this.tableЗаказы.Код_магазинаColumn}, false);
  301. this.Relations.Add(this._relationFK_Заказы_Интернет_магазины);
  302. this.relationFK_Заказы_Товары1 = new global::System.Data.DataRelation("FK_Заказы_Товары1", new global::System.Data.DataColumn[] {
  303. this.tableТовары.Код_товараColumn}, new global::System.Data.DataColumn[] {
  304. this.tableЗаказы.Код_товараColumn}, false);
  305. this.Relations.Add(this.relationFK_Заказы_Товары1);
  306. this._relationFK_Магазины_Товары_Интернет_магазины = new global::System.Data.DataRelation("FK_Магазины/Товары_Интернет-магазины", new global::System.Data.DataColumn[] {
  307. this._tableИнтернет_магазины.Код_магазинаColumn}, new global::System.Data.DataColumn[] {
  308. this._tableМагазины_Товары.Код_магазинаColumn}, false);
  309. this.Relations.Add(this._relationFK_Магазины_Товары_Интернет_магазины);
  310. this._relationFK_Магазины_Товары_Товары = new global::System.Data.DataRelation("FK_Магазины/Товары_Товары", new global::System.Data.DataColumn[] {
  311. this.tableТовары.Код_товараColumn}, new global::System.Data.DataColumn[] {
  312. this._tableМагазины_Товары.Код_товараColumn}, false);
  313. this.Relations.Add(this._relationFK_Магазины_Товары_Товары);
  314. }
  315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  317. private bool ShouldSerializeДоставка() {
  318. return false;
  319. }
  320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  322. private bool ShouldSerializeЗаказы() {
  323. return false;
  324. }
  325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  327. private bool ShouldSerialize_Интернет_магазины() {
  328. return false;
  329. }
  330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  332. private bool ShouldSerialize_Магазины_Товары() {
  333. return false;
  334. }
  335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  337. private bool ShouldSerializeТовары() {
  338. return false;
  339. }
  340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  342. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  343. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  344. this.InitVars();
  345. }
  346. }
  347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  349. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  350. Yurevich_INTERNET_PRODAZHIDataSet ds = new Yurevich_INTERNET_PRODAZHIDataSet();
  351. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  352. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  353. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  354. any.Namespace = ds.Namespace;
  355. sequence.Items.Add(any);
  356. type.Particle = sequence;
  357. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  358. if (xs.Contains(dsSchema.TargetNamespace)) {
  359. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  360. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  361. try {
  362. global::System.Xml.Schema.XmlSchema schema = null;
  363. dsSchema.Write(s1);
  364. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  365. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  366. s2.SetLength(0);
  367. schema.Write(s2);
  368. if ((s1.Length == s2.Length)) {
  369. s1.Position = 0;
  370. s2.Position = 0;
  371. for (; ((s1.Position != s1.Length)
  372. && (s1.ReadByte() == s2.ReadByte())); ) {
  373. ;
  374. }
  375. if ((s1.Position == s1.Length)) {
  376. return type;
  377. }
  378. }
  379. }
  380. }
  381. finally {
  382. if ((s1 != null)) {
  383. s1.Close();
  384. }
  385. if ((s2 != null)) {
  386. s2.Close();
  387. }
  388. }
  389. }
  390. xs.Add(dsSchema);
  391. return type;
  392. }
  393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  394. public delegate void ДоставкаRowChangeEventHandler(object sender, ДоставкаRowChangeEvent e);
  395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  396. public delegate void ЗаказыRowChangeEventHandler(object sender, ЗаказыRowChangeEvent e);
  397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  398. public delegate void _Интернет_магазиныRowChangeEventHandler(object sender, _Интернет_магазиныRowChangeEvent e);
  399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  400. public delegate void _Магазины_ТоварыRowChangeEventHandler(object sender, _Магазины_ТоварыRowChangeEvent e);
  401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  402. public delegate void ТоварыRowChangeEventHandler(object sender, ТоварыRowChangeEvent e);
  403. /// <summary>
  404. ///Represents the strongly named DataTable class.
  405. ///</summary>
  406. [global::System.Serializable()]
  407. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  408. public partial class ДоставкаDataTable : global::System.Data.TypedTableBase<ДоставкаRow> {
  409. private global::System.Data.DataColumn columnКод_заказа;
  410. private global::System.Data.DataColumn columnДата_доставки;
  411. private global::System.Data.DataColumn columnВремя_доставки;
  412. private global::System.Data.DataColumn columnАдрес_доставки;
  413. private global::System.Data.DataColumn columnФ_И_О_клиента;
  414. private global::System.Data.DataColumn columnФ_И_О_курьера;
  415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  417. public ДоставкаDataTable() {
  418. this.TableName = "Доставка";
  419. this.BeginInit();
  420. this.InitClass();
  421. this.EndInit();
  422. }
  423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  425. internal ДоставкаDataTable(global::System.Data.DataTable table) {
  426. this.TableName = table.TableName;
  427. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  428. this.CaseSensitive = table.CaseSensitive;
  429. }
  430. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  431. this.Locale = table.Locale;
  432. }
  433. if ((table.Namespace != table.DataSet.Namespace)) {
  434. this.Namespace = table.Namespace;
  435. }
  436. this.Prefix = table.Prefix;
  437. this.MinimumCapacity = table.MinimumCapacity;
  438. }
  439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  441. protected ДоставкаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  442. base(info, context) {
  443. this.InitVars();
  444. }
  445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  447. public global::System.Data.DataColumn Код_заказаColumn {
  448. get {
  449. return this.columnКод_заказа;
  450. }
  451. }
  452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  454. public global::System.Data.DataColumn Дата_доставкиColumn {
  455. get {
  456. return this.columnДата_доставки;
  457. }
  458. }
  459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  461. public global::System.Data.DataColumn Время_доставкиColumn {
  462. get {
  463. return this.columnВремя_доставки;
  464. }
  465. }
  466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  468. public global::System.Data.DataColumn Адрес_доставкиColumn {
  469. get {
  470. return this.columnАдрес_доставки;
  471. }
  472. }
  473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  475. public global::System.Data.DataColumn Ф_И_О_клиентаColumn {
  476. get {
  477. return this.columnФ_И_О_клиента;
  478. }
  479. }
  480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  482. public global::System.Data.DataColumn Ф_И_О_курьераColumn {
  483. get {
  484. return this.columnФ_И_О_курьера;
  485. }
  486. }
  487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  489. [global::System.ComponentModel.Browsable(false)]
  490. public int Count {
  491. get {
  492. return this.Rows.Count;
  493. }
  494. }
  495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  497. public ДоставкаRow this[int index] {
  498. get {
  499. return ((ДоставкаRow)(this.Rows[index]));
  500. }
  501. }
  502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  503. public event ДоставкаRowChangeEventHandler ДоставкаRowChanging;
  504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  505. public event ДоставкаRowChangeEventHandler ДоставкаRowChanged;
  506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  507. public event ДоставкаRowChangeEventHandler ДоставкаRowDeleting;
  508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  509. public event ДоставкаRowChangeEventHandler ДоставкаRowDeleted;
  510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  512. public void AddДоставкаRow(ДоставкаRow row) {
  513. this.Rows.Add(row);
  514. }
  515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  517. public ДоставкаRow AddДоставкаRow(ЗаказыRow parentЗаказыRowByFK_Доставка_Заказы, System.DateTime Дата_доставки, System.TimeSpan Время_доставки, string Адрес_доставки, string Ф_И_О_клиента, string Ф_И_О_курьера) {
  518. ДоставкаRow rowДоставкаRow = ((ДоставкаRow)(this.NewRow()));
  519. object[] columnValuesArray = new object[] {
  520. null,
  521. Дата_доставки,
  522. Время_доставки,
  523. Адрес_доставки,
  524. Ф_И_О_клиента,
  525. Ф_И_О_курьера};
  526. if ((parentЗаказыRowByFK_Доставка_Заказы != null)) {
  527. columnValuesArray[0] = parentЗаказыRowByFK_Доставка_Заказы[0];
  528. }
  529. rowДоставкаRow.ItemArray = columnValuesArray;
  530. this.Rows.Add(rowДоставкаRow);
  531. return rowДоставкаRow;
  532. }
  533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  535. public ДоставкаRow FindByКод_заказа(long Код_заказа) {
  536. return ((ДоставкаRow)(this.Rows.Find(new object[] {
  537. Код_заказа})));
  538. }
  539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  541. public override global::System.Data.DataTable Clone() {
  542. ДоставкаDataTable cln = ((ДоставкаDataTable)(base.Clone()));
  543. cln.InitVars();
  544. return cln;
  545. }
  546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  548. protected override global::System.Data.DataTable CreateInstance() {
  549. return new ДоставкаDataTable();
  550. }
  551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  553. internal void InitVars() {
  554. this.columnКод_заказа = base.Columns["Код_заказа"];
  555. this.columnДата_доставки = base.Columns["Дата_доставки"];
  556. this.columnВремя_доставки = base.Columns["Время_доставки"];
  557. this.columnАдрес_доставки = base.Columns["Адрес_доставки"];
  558. this.columnФ_И_О_клиента = base.Columns["Ф_И_О_клиента"];
  559. this.columnФ_И_О_курьера = base.Columns["Ф_И_О_курьера"];
  560. }
  561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  563. private void InitClass() {
  564. this.columnКод_заказа = new global::System.Data.DataColumn("Код_заказа", typeof(long), null, global::System.Data.MappingType.Element);
  565. base.Columns.Add(this.columnКод_заказа);
  566. this.columnДата_доставки = new global::System.Data.DataColumn("Дата_доставки", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  567. base.Columns.Add(this.columnДата_доставки);
  568. this.columnВремя_доставки = new global::System.Data.DataColumn("Время_доставки", typeof(global::System.TimeSpan), null, global::System.Data.MappingType.Element);
  569. base.Columns.Add(this.columnВремя_доставки);
  570. this.columnАдрес_доставки = new global::System.Data.DataColumn("Адрес_доставки", typeof(string), null, global::System.Data.MappingType.Element);
  571. base.Columns.Add(this.columnАдрес_доставки);
  572. this.columnФ_И_О_клиента = new global::System.Data.DataColumn("Ф_И_О_клиента", typeof(string), null, global::System.Data.MappingType.Element);
  573. base.Columns.Add(this.columnФ_И_О_клиента);
  574. this.columnФ_И_О_курьера = new global::System.Data.DataColumn("Ф_И_О_курьера", typeof(string), null, global::System.Data.MappingType.Element);
  575. base.Columns.Add(this.columnФ_И_О_курьера);
  576. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  577. this.columnКод_заказа}, true));
  578. this.columnКод_заказа.AllowDBNull = false;
  579. this.columnКод_заказа.Unique = true;
  580. this.columnАдрес_доставки.MaxLength = 2147483647;
  581. this.columnФ_И_О_клиента.MaxLength = 2147483647;
  582. this.columnФ_И_О_курьера.MaxLength = 2147483647;
  583. }
  584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  586. public ДоставкаRow NewДоставкаRow() {
  587. return ((ДоставкаRow)(this.NewRow()));
  588. }
  589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  591. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  592. return new ДоставкаRow(builder);
  593. }
  594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  596. protected override global::System.Type GetRowType() {
  597. return typeof(ДоставкаRow);
  598. }
  599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  601. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  602. base.OnRowChanged(e);
  603. if ((this.ДоставкаRowChanged != null)) {
  604. this.ДоставкаRowChanged(this, new ДоставкаRowChangeEvent(((ДоставкаRow)(e.Row)), e.Action));
  605. }
  606. }
  607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  609. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  610. base.OnRowChanging(e);
  611. if ((this.ДоставкаRowChanging != null)) {
  612. this.ДоставкаRowChanging(this, new ДоставкаRowChangeEvent(((ДоставкаRow)(e.Row)), e.Action));
  613. }
  614. }
  615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  617. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  618. base.OnRowDeleted(e);
  619. if ((this.ДоставкаRowDeleted != null)) {
  620. this.ДоставкаRowDeleted(this, new ДоставкаRowChangeEvent(((ДоставкаRow)(e.Row)), e.Action));
  621. }
  622. }
  623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  625. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  626. base.OnRowDeleting(e);
  627. if ((this.ДоставкаRowDeleting != null)) {
  628. this.ДоставкаRowDeleting(this, new ДоставкаRowChangeEvent(((ДоставкаRow)(e.Row)), e.Action));
  629. }
  630. }
  631. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  633. public void RemoveДоставкаRow(ДоставкаRow row) {
  634. this.Rows.Remove(row);
  635. }
  636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  638. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  639. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  640. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  641. Yurevich_INTERNET_PRODAZHIDataSet ds = new Yurevich_INTERNET_PRODAZHIDataSet();
  642. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  643. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  644. any1.MinOccurs = new decimal(0);
  645. any1.MaxOccurs = decimal.MaxValue;
  646. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  647. sequence.Items.Add(any1);
  648. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  649. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  650. any2.MinOccurs = new decimal(1);
  651. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  652. sequence.Items.Add(any2);
  653. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  654. attribute1.Name = "namespace";
  655. attribute1.FixedValue = ds.Namespace;
  656. type.Attributes.Add(attribute1);
  657. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  658. attribute2.Name = "tableTypeName";
  659. attribute2.FixedValue = "ДоставкаDataTable";
  660. type.Attributes.Add(attribute2);
  661. type.Particle = sequence;
  662. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  663. if (xs.Contains(dsSchema.TargetNamespace)) {
  664. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  665. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  666. try {
  667. global::System.Xml.Schema.XmlSchema schema = null;
  668. dsSchema.Write(s1);
  669. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  670. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  671. s2.SetLength(0);
  672. schema.Write(s2);
  673. if ((s1.Length == s2.Length)) {
  674. s1.Position = 0;
  675. s2.Position = 0;
  676. for (; ((s1.Position != s1.Length)
  677. && (s1.ReadByte() == s2.ReadByte())); ) {
  678. ;
  679. }
  680. if ((s1.Position == s1.Length)) {
  681. return type;
  682. }
  683. }
  684. }
  685. }
  686. finally {
  687. if ((s1 != null)) {
  688. s1.Close();
  689. }
  690. if ((s2 != null)) {
  691. s2.Close();
  692. }
  693. }
  694. }
  695. xs.Add(dsSchema);
  696. return type;
  697. }
  698. }
  699. /// <summary>
  700. ///Represents the strongly named DataTable class.
  701. ///</summary>
  702. [global::System.Serializable()]
  703. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  704. public partial class ЗаказыDataTable : global::System.Data.TypedTableBase<ЗаказыRow> {
  705. private global::System.Data.DataColumn columnКод_заказа;
  706. private global::System.Data.DataColumn columnКод_магазина;
  707. private global::System.Data.DataColumn columnКод_товара;
  708. private global::System.Data.DataColumn columnДата_заказа;
  709. private global::System.Data.DataColumn columnВремя_заказа;
  710. private global::System.Data.DataColumn columnКоличество;
  711. private global::System.Data.DataColumn columnФ_И_О_клиента;
  712. private global::System.Data.DataColumn columnКонтактный_телефон;
  713. private global::System.Data.DataColumn columnПодтверждение_заказа;
  714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  716. public ЗаказыDataTable() {
  717. this.TableName = "Заказы";
  718. this.BeginInit();
  719. this.InitClass();
  720. this.EndInit();
  721. }
  722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  724. internal ЗаказыDataTable(global::System.Data.DataTable table) {
  725. this.TableName = table.TableName;
  726. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  727. this.CaseSensitive = table.CaseSensitive;
  728. }
  729. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  730. this.Locale = table.Locale;
  731. }
  732. if ((table.Namespace != table.DataSet.Namespace)) {
  733. this.Namespace = table.Namespace;
  734. }
  735. this.Prefix = table.Prefix;
  736. this.MinimumCapacity = table.MinimumCapacity;
  737. }
  738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  740. protected ЗаказыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  741. base(info, context) {
  742. this.InitVars();
  743. }
  744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  746. public global::System.Data.DataColumn Код_заказаColumn {
  747. get {
  748. return this.columnКод_заказа;
  749. }
  750. }
  751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  753. public global::System.Data.DataColumn Код_магазинаColumn {
  754. get {
  755. return this.columnКод_магазина;
  756. }
  757. }
  758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  760. public global::System.Data.DataColumn Код_товараColumn {
  761. get {
  762. return this.columnКод_товара;
  763. }
  764. }
  765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  767. public global::System.Data.DataColumn Дата_заказаColumn {
  768. get {
  769. return this.columnДата_заказа;
  770. }
  771. }
  772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  774. public global::System.Data.DataColumn Время_заказаColumn {
  775. get {
  776. return this.columnВремя_заказа;
  777. }
  778. }
  779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  781. public global::System.Data.DataColumn КоличествоColumn {
  782. get {
  783. return this.columnКоличество;
  784. }
  785. }
  786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  788. public global::System.Data.DataColumn Ф_И_О_клиентаColumn {
  789. get {
  790. return this.columnФ_И_О_клиента;
  791. }
  792. }
  793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  795. public global::System.Data.DataColumn Контактный_телефонColumn {
  796. get {
  797. return this.columnКонтактный_телефон;
  798. }
  799. }
  800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  802. public global::System.Data.DataColumn Подтверждение_заказаColumn {
  803. get {
  804. return this.columnПодтверждение_заказа;
  805. }
  806. }
  807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  809. [global::System.ComponentModel.Browsable(false)]
  810. public int Count {
  811. get {
  812. return this.Rows.Count;
  813. }
  814. }
  815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  817. public ЗаказыRow this[int index] {
  818. get {
  819. return ((ЗаказыRow)(this.Rows[index]));
  820. }
  821. }
  822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  823. public event ЗаказыRowChangeEventHandler ЗаказыRowChanging;
  824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  825. public event ЗаказыRowChangeEventHandler ЗаказыRowChanged;
  826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  827. public event ЗаказыRowChangeEventHandler ЗаказыRowDeleting;
  828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  829. public event ЗаказыRowChangeEventHandler ЗаказыRowDeleted;
  830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  832. public void AddЗаказыRow(ЗаказыRow row) {
  833. this.Rows.Add(row);
  834. }
  835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  837. public ЗаказыRow AddЗаказыRow(_Интернет_магазиныRow _parent_Интернет_магазиныRowByFK_Заказы_Интернет_магазины, ТоварыRow parentТоварыRowByFK_Заказы_Товары1, System.DateTimeOffset Дата_заказа, System.TimeSpan Время_заказа, string Количество, string Ф_И_О_клиента, string Контактный_телефон, bool Подтверждение_заказа) {
  838. ЗаказыRow rowЗаказыRow = ((ЗаказыRow)(this.NewRow()));
  839. object[] columnValuesArray = new object[] {
  840. null,
  841. null,
  842. null,
  843. Дата_заказа,
  844. Время_заказа,
  845. Количество,
  846. Ф_И_О_клиента,
  847. Контактный_телефон,
  848. Подтверждение_заказа};
  849. if ((_parent_Интернет_магазиныRowByFK_Заказы_Интернет_магазины != null)) {
  850. columnValuesArray[1] = _parent_Интернет_магазиныRowByFK_Заказы_Интернет_магазины[0];
  851. }
  852. if ((parentТоварыRowByFK_Заказы_Товары1 != null)) {
  853. columnValuesArray[2] = parentТоварыRowByFK_Заказы_Товары1[0];
  854. }
  855. rowЗаказыRow.ItemArray = columnValuesArray;
  856. this.Rows.Add(rowЗаказыRow);
  857. return rowЗаказыRow;
  858. }
  859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  861. public ЗаказыRow FindByКод_заказа(long Код_заказа) {
  862. return ((ЗаказыRow)(this.Rows.Find(new object[] {
  863. Код_заказа})));
  864. }
  865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  867. public override global::System.Data.DataTable Clone() {
  868. ЗаказыDataTable cln = ((ЗаказыDataTable)(base.Clone()));
  869. cln.InitVars();
  870. return cln;
  871. }
  872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  874. protected override global::System.Data.DataTable CreateInstance() {
  875. return new ЗаказыDataTable();
  876. }
  877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  879. internal void InitVars() {
  880. this.columnКод_заказа = base.Columns["Код_заказа"];
  881. this.columnКод_магазина = base.Columns["Код_магазина"];
  882. this.columnКод_товара = base.Columns["Код_товара"];
  883. this.columnДата_заказа = base.Columns["Дата_заказа"];
  884. this.columnВремя_заказа = base.Columns["Время_заказа"];
  885. this.columnКоличество = base.Columns["Количество"];
  886. this.columnФ_И_О_клиента = base.Columns["Ф_И_О_клиента"];
  887. this.columnКонтактный_телефон = base.Columns["Контактный_телефон"];
  888. this.columnПодтверждение_заказа = base.Columns["Подтверждение_заказа"];
  889. }
  890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  892. private void InitClass() {
  893. this.columnКод_заказа = new global::System.Data.DataColumn("Код_заказа", typeof(long), null, global::System.Data.MappingType.Element);
  894. base.Columns.Add(this.columnКод_заказа);
  895. this.columnКод_магазина = new global::System.Data.DataColumn("Код_магазина", typeof(long), null, global::System.Data.MappingType.Element);
  896. base.Columns.Add(this.columnКод_магазина);
  897. this.columnКод_товара = new global::System.Data.DataColumn("Код_товара", typeof(long), null, global::System.Data.MappingType.Element);
  898. base.Columns.Add(this.columnКод_товара);
  899. this.columnДата_заказа = new global::System.Data.DataColumn("Дата_заказа", typeof(global::System.DateTimeOffset), null, global::System.Data.MappingType.Element);
  900. base.Columns.Add(this.columnДата_заказа);
  901. this.columnВремя_заказа = new global::System.Data.DataColumn("Время_заказа", typeof(global::System.TimeSpan), null, global::System.Data.MappingType.Element);
  902. base.Columns.Add(this.columnВремя_заказа);
  903. this.columnКоличество = new global::System.Data.DataColumn("Количество", typeof(string), null, global::System.Data.MappingType.Element);
  904. base.Columns.Add(this.columnКоличество);
  905. this.columnФ_И_О_клиента = new global::System.Data.DataColumn("Ф_И_О_клиента", typeof(string), null, global::System.Data.MappingType.Element);
  906. base.Columns.Add(this.columnФ_И_О_клиента);
  907. this.columnКонтактный_телефон = new global::System.Data.DataColumn("Контактный_телефон", typeof(string), null, global::System.Data.MappingType.Element);
  908. base.Columns.Add(this.columnКонтактный_телефон);
  909. this.columnПодтверждение_заказа = new global::System.Data.DataColumn("Подтверждение_заказа", typeof(bool), null, global::System.Data.MappingType.Element);
  910. base.Columns.Add(this.columnПодтверждение_заказа);
  911. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  912. this.columnКод_заказа}, true));
  913. this.columnКод_заказа.AutoIncrement = true;
  914. this.columnКод_заказа.AutoIncrementSeed = -1;
  915. this.columnКод_заказа.AutoIncrementStep = -1;
  916. this.columnКод_заказа.AllowDBNull = false;
  917. this.columnКод_заказа.ReadOnly = true;
  918. this.columnКод_заказа.Unique = true;
  919. this.columnКоличество.MaxLength = 50;
  920. this.columnФ_И_О_клиента.MaxLength = 50;
  921. this.columnКонтактный_телефон.MaxLength = 50;
  922. }
  923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  925. public ЗаказыRow NewЗаказыRow() {
  926. return ((ЗаказыRow)(this.NewRow()));
  927. }
  928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  930. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  931. return new ЗаказыRow(builder);
  932. }
  933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  935. protected override global::System.Type GetRowType() {
  936. return typeof(ЗаказыRow);
  937. }
  938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  940. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  941. base.OnRowChanged(e);
  942. if ((this.ЗаказыRowChanged != null)) {
  943. this.ЗаказыRowChanged(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  944. }
  945. }
  946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  948. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  949. base.OnRowChanging(e);
  950. if ((this.ЗаказыRowChanging != null)) {
  951. this.ЗаказыRowChanging(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  952. }
  953. }
  954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  956. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  957. base.OnRowDeleted(e);
  958. if ((this.ЗаказыRowDeleted != null)) {
  959. this.ЗаказыRowDeleted(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  960. }
  961. }
  962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  964. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  965. base.OnRowDeleting(e);
  966. if ((this.ЗаказыRowDeleting != null)) {
  967. this.ЗаказыRowDeleting(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  968. }
  969. }
  970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  972. public void RemoveЗаказыRow(ЗаказыRow row) {
  973. this.Rows.Remove(row);
  974. }
  975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  977. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  978. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  979. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  980. Yurevich_INTERNET_PRODAZHIDataSet ds = new Yurevich_INTERNET_PRODAZHIDataSet();
  981. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  982. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  983. any1.MinOccurs = new decimal(0);
  984. any1.MaxOccurs = decimal.MaxValue;
  985. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  986. sequence.Items.Add(any1);
  987. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  988. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  989. any2.MinOccurs = new decimal(1);
  990. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  991. sequence.Items.Add(any2);
  992. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  993. attribute1.Name = "namespace";
  994. attribute1.FixedValue = ds.Namespace;
  995. type.Attributes.Add(attribute1);
  996. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  997. attribute2.Name = "tableTypeName";
  998. attribute2.FixedValue = "ЗаказыDataTable";
  999. type.Attributes.Add(attribute2);
  1000. type.Particle = sequence;
  1001. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1002. if (xs.Contains(dsSchema.TargetNamespace)) {
  1003. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1004. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1005. try {
  1006. global::System.Xml.Schema.XmlSchema schema = null;
  1007. dsSchema.Write(s1);
  1008. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1009. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1010. s2.SetLength(0);
  1011. schema.Write(s2);
  1012. if ((s1.Length == s2.Length)) {
  1013. s1.Position = 0;
  1014. s2.Position = 0;
  1015. for (; ((s1.Position != s1.Length)
  1016. && (s1.ReadByte() == s2.ReadByte())); ) {
  1017. ;
  1018. }
  1019. if ((s1.Position == s1.Length)) {
  1020. return type;
  1021. }
  1022. }
  1023. }
  1024. }
  1025. finally {
  1026. if ((s1 != null)) {
  1027. s1.Close();
  1028. }
  1029. if ((s2 != null)) {
  1030. s2.Close();
  1031. }
  1032. }
  1033. }
  1034. xs.Add(dsSchema);
  1035. return type;
  1036. }
  1037. }
  1038. /// <summary>
  1039. ///Represents the strongly named DataTable class.
  1040. ///</summary>
  1041. [global::System.Serializable()]
  1042. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1043. public partial class _Интернет_магазиныDataTable : global::System.Data.TypedTableBase<_Интернет_магазиныRow> {
  1044. private global::System.Data.DataColumn columnКод_магазина;
  1045. private global::System.Data.DataColumn columnЭлектронный_адрес;
  1046. private global::System.Data.DataColumn columnОплата_доставки;
  1047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1049. public _Интернет_магазиныDataTable() {
  1050. this.TableName = "Интернет-магазины";
  1051. this.BeginInit();
  1052. this.InitClass();
  1053. this.EndInit();
  1054. }
  1055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1057. internal _Интернет_магазиныDataTable(global::System.Data.DataTable table) {
  1058. this.TableName = table.TableName;
  1059. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1060. this.CaseSensitive = table.CaseSensitive;
  1061. }
  1062. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1063. this.Locale = table.Locale;
  1064. }
  1065. if ((table.Namespace != table.DataSet.Namespace)) {
  1066. this.Namespace = table.Namespace;
  1067. }
  1068. this.Prefix = table.Prefix;
  1069. this.MinimumCapacity = table.MinimumCapacity;
  1070. }
  1071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1073. protected _Интернет_магазиныDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1074. base(info, context) {
  1075. this.InitVars();
  1076. }
  1077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1079. public global::System.Data.DataColumn Код_магазинаColumn {
  1080. get {
  1081. return this.columnКод_магазина;
  1082. }
  1083. }
  1084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1086. public global::System.Data.DataColumn Электронный_адресColumn {
  1087. get {
  1088. return this.columnЭлектронный_адрес;
  1089. }
  1090. }
  1091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1093. public global::System.Data.DataColumn Оплата_доставкиColumn {
  1094. get {
  1095. return this.columnОплата_доставки;
  1096. }
  1097. }
  1098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1100. [global::System.ComponentModel.Browsable(false)]
  1101. public int Count {
  1102. get {
  1103. return this.Rows.Count;
  1104. }
  1105. }
  1106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1108. public _Интернет_магазиныRow this[int index] {
  1109. get {
  1110. return ((_Интернет_магазиныRow)(this.Rows[index]));
  1111. }
  1112. }
  1113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1114. public event _Интернет_магазиныRowChangeEventHandler _Интернет_магазиныRowChanging;
  1115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1116. public event _Интернет_магазиныRowChangeEventHandler _Интернет_магазиныRowChanged;
  1117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1118. public event _Интернет_магазиныRowChangeEventHandler _Интернет_магазиныRowDeleting;
  1119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1120. public event _Интернет_магазиныRowChangeEventHandler _Интернет_магазиныRowDeleted;
  1121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1123. public void Add_Интернет_магазиныRow(_Интернет_магазиныRow row) {
  1124. this.Rows.Add(row);
  1125. }
  1126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1128. public _Интернет_магазиныRow Add_Интернет_магазиныRow(string Электронный_адрес, bool Оплата_доставки) {
  1129. _Интернет_магазиныRow row_Интернет_магазиныRow = ((_Интернет_магазиныRow)(this.NewRow()));
  1130. object[] columnValuesArray = new object[] {
  1131. null,
  1132. Электронный_адрес,
  1133. Оплата_доставки};
  1134. row_Интернет_магазиныRow.ItemArray = columnValuesArray;
  1135. this.Rows.Add(row_Интернет_магазиныRow);
  1136. return row_Интернет_магазиныRow;
  1137. }
  1138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1140. public _Интернет_магазиныRow FindByКод_магазина(long Код_магазина) {
  1141. return ((_Интернет_магазиныRow)(this.Rows.Find(new object[] {
  1142. Код_магазина})));
  1143. }
  1144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1146. public override global::System.Data.DataTable Clone() {
  1147. _Интернет_магазиныDataTable cln = ((_Интернет_магазиныDataTable)(base.Clone()));
  1148. cln.InitVars();
  1149. return cln;
  1150. }
  1151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1153. protected override global::System.Data.DataTable CreateInstance() {
  1154. return new _Интернет_магазиныDataTable();
  1155. }
  1156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1158. internal void InitVars() {
  1159. this.columnКод_магазина = base.Columns["Код_магазина"];
  1160. this.columnЭлектронный_адрес = base.Columns["Электронный_адрес"];
  1161. this.columnОплата_доставки = base.Columns["Оплата_доставки"];
  1162. }
  1163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1165. private void InitClass() {
  1166. this.columnКод_магазина = new global::System.Data.DataColumn("Код_магазина", typeof(long), null, global::System.Data.MappingType.Element);
  1167. base.Columns.Add(this.columnКод_магазина);
  1168. this.columnЭлектронный_адрес = new global::System.Data.DataColumn("Электронный_адрес", typeof(string), null, global::System.Data.MappingType.Element);
  1169. base.Columns.Add(this.columnЭлектронный_адрес);
  1170. this.columnОплата_доставки = new global::System.Data.DataColumn("Оплата_доставки", typeof(bool), null, global::System.Data.MappingType.Element);
  1171. base.Columns.Add(this.columnОплата_доставки);
  1172. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1173. this.columnКод_магазина}, true));
  1174. this.columnКод_магазина.AutoIncrement = true;
  1175. this.columnКод_магазина.AutoIncrementSeed = -1;
  1176. this.columnКод_магазина.AutoIncrementStep = -1;
  1177. this.columnКод_магазина.AllowDBNull = false;
  1178. this.columnКод_магазина.ReadOnly = true;
  1179. this.columnКод_магазина.Unique = true;
  1180. this.columnЭлектронный_адрес.MaxLength = 2147483647;
  1181. this.ExtendedProperties.Add("Generator_TableVarName", "_tableИнтернет_магазины");
  1182. this.ExtendedProperties.Add("Generator_UserTableName", "Интернет-магазины");
  1183. }
  1184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1186. public _Интернет_магазиныRow New_Интернет_магазиныRow() {
  1187. return ((_Интернет_магазиныRow)(this.NewRow()));
  1188. }
  1189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1191. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1192. return new _Интернет_магазиныRow(builder);
  1193. }
  1194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1196. protected override global::System.Type GetRowType() {
  1197. return typeof(_Интернет_магазиныRow);
  1198. }
  1199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1201. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1202. base.OnRowChanged(e);
  1203. if ((this._Интернет_магазиныRowChanged != null)) {
  1204. this._Интернет_магазиныRowChanged(this, new _Интернет_магазиныRowChangeEvent(((_Интернет_магазиныRow)(e.Row)), e.Action));
  1205. }
  1206. }
  1207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1209. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1210. base.OnRowChanging(e);
  1211. if ((this._Интернет_магазиныRowChanging != null)) {
  1212. this._Интернет_магазиныRowChanging(this, new _Интернет_магазиныRowChangeEvent(((_Интернет_магазиныRow)(e.Row)), e.Action));
  1213. }
  1214. }
  1215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1217. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1218. base.OnRowDeleted(e);
  1219. if ((this._Интернет_магазиныRowDeleted != null)) {
  1220. this._Интернет_магазиныRowDeleted(this, new _Интернет_магазиныRowChangeEvent(((_Интернет_магазиныRow)(e.Row)), e.Action));
  1221. }
  1222. }
  1223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1225. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1226. base.OnRowDeleting(e);
  1227. if ((this._Интернет_магазиныRowDeleting != null)) {
  1228. this._Интернет_магазиныRowDeleting(this, new _Интернет_магазиныRowChangeEvent(((_Интернет_магазиныRow)(e.Row)), e.Action));
  1229. }
  1230. }
  1231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1233. public void Remove_Интернет_магазиныRow(_Интернет_магазиныRow row) {
  1234. this.Rows.Remove(row);
  1235. }
  1236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1238. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1239. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1240. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1241. Yurevich_INTERNET_PRODAZHIDataSet ds = new Yurevich_INTERNET_PRODAZHIDataSet();
  1242. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1243. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1244. any1.MinOccurs = new decimal(0);
  1245. any1.MaxOccurs = decimal.MaxValue;
  1246. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1247. sequence.Items.Add(any1);
  1248. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1249. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1250. any2.MinOccurs = new decimal(1);
  1251. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1252. sequence.Items.Add(any2);
  1253. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1254. attribute1.Name = "namespace";
  1255. attribute1.FixedValue = ds.Namespace;
  1256. type.Attributes.Add(attribute1);
  1257. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1258. attribute2.Name = "tableTypeName";
  1259. attribute2.FixedValue = "_Интернет_магазиныDataTable";
  1260. type.Attributes.Add(attribute2);
  1261. type.Particle = sequence;
  1262. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1263. if (xs.Contains(dsSchema.TargetNamespace)) {
  1264. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1265. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1266. try {
  1267. global::System.Xml.Schema.XmlSchema schema = null;
  1268. dsSchema.Write(s1);
  1269. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1270. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1271. s2.SetLength(0);
  1272. schema.Write(s2);
  1273. if ((s1.Length == s2.Length)) {
  1274. s1.Position = 0;
  1275. s2.Position = 0;
  1276. for (; ((s1.Position != s1.Length)
  1277. && (s1.ReadByte() == s2.ReadByte())); ) {
  1278. ;
  1279. }
  1280. if ((s1.Position == s1.Length)) {
  1281. return type;
  1282. }
  1283. }
  1284. }
  1285. }
  1286. finally {
  1287. if ((s1 != null)) {
  1288. s1.Close();
  1289. }
  1290. if ((s2 != null)) {
  1291. s2.Close();
  1292. }
  1293. }
  1294. }
  1295. xs.Add(dsSchema);
  1296. return type;
  1297. }
  1298. }
  1299. /// <summary>
  1300. ///Represents the strongly named DataTable class.
  1301. ///</summary>
  1302. [global::System.Serializable()]
  1303. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1304. public partial class _Магазины_ТоварыDataTable : global::System.Data.TypedTableBase<_Магазины_ТоварыRow> {
  1305. private global::System.Data.DataColumn columnКод_магазина;
  1306. private global::System.Data.DataColumn columnКод_товара;
  1307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1309. public _Магазины_ТоварыDataTable() {
  1310. this.TableName = "Магазины/Товары";
  1311. this.BeginInit();
  1312. this.InitClass();
  1313. this.EndInit();
  1314. }
  1315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1317. internal _Магазины_ТоварыDataTable(global::System.Data.DataTable table) {
  1318. this.TableName = table.TableName;
  1319. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1320. this.CaseSensitive = table.CaseSensitive;
  1321. }
  1322. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1323. this.Locale = table.Locale;
  1324. }
  1325. if ((table.Namespace != table.DataSet.Namespace)) {
  1326. this.Namespace = table.Namespace;
  1327. }
  1328. this.Prefix = table.Prefix;
  1329. this.MinimumCapacity = table.MinimumCapacity;
  1330. }
  1331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1333. protected _Магазины_ТоварыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1334. base(info, context) {
  1335. this.InitVars();
  1336. }
  1337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1339. public global::System.Data.DataColumn Код_магазинаColumn {
  1340. get {
  1341. return this.columnКод_магазина;
  1342. }
  1343. }
  1344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1346. public global::System.Data.DataColumn Код_товараColumn {
  1347. get {
  1348. return this.columnКод_товара;
  1349. }
  1350. }
  1351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1353. [global::System.ComponentModel.Browsable(false)]
  1354. public int Count {
  1355. get {
  1356. return this.Rows.Count;
  1357. }
  1358. }
  1359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1361. public _Магазины_ТоварыRow this[int index] {
  1362. get {
  1363. return ((_Магазины_ТоварыRow)(this.Rows[index]));
  1364. }
  1365. }
  1366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1367. public event _Магазины_ТоварыRowChangeEventHandler _Магазины_ТоварыRowChanging;
  1368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1369. public event _Магазины_ТоварыRowChangeEventHandler _Магазины_ТоварыRowChanged;
  1370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1371. public event _Магазины_ТоварыRowChangeEventHandler _Магазины_ТоварыRowDeleting;
  1372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1373. public event _Магазины_ТоварыRowChangeEventHandler _Магазины_ТоварыRowDeleted;
  1374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1376. public void Add_Магазины_ТоварыRow(_Магазины_ТоварыRow row) {
  1377. this.Rows.Add(row);
  1378. }
  1379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1381. public _Магазины_ТоварыRow Add_Магазины_ТоварыRow(_Интернет_магазиныRow _parent_Интернет_магазиныRowByFK_Магазины_Товары_Интернет_магазины, ТоварыRow _parentТоварыRowByFK_Магазины_Товары_Товары) {
  1382. _Магазины_ТоварыRow row_Магазины_ТоварыRow = ((_Магазины_ТоварыRow)(this.NewRow()));
  1383. object[] columnValuesArray = new object[] {
  1384. null,
  1385. null};
  1386. if ((_parent_Интернет_магазиныRowByFK_Магазины_Товары_Интернет_магазины != null)) {
  1387. columnValuesArray[0] = _parent_Интернет_магазиныRowByFK_Магазины_Товары_Интернет_магазины[0];
  1388. }
  1389. if ((_parentТоварыRowByFK_Магазины_Товары_Товары != null)) {
  1390. columnValuesArray[1] = _parentТоварыRowByFK_Магазины_Товары_Товары[0];
  1391. }
  1392. row_Магазины_ТоварыRow.ItemArray = columnValuesArray;
  1393. this.Rows.Add(row_Магазины_ТоварыRow);
  1394. return row_Магазины_ТоварыRow;
  1395. }
  1396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1398. public override global::System.Data.DataTable Clone() {
  1399. _Магазины_ТоварыDataTable cln = ((_Магазины_ТоварыDataTable)(base.Clone()));
  1400. cln.InitVars();
  1401. return cln;
  1402. }
  1403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1405. protected override global::System.Data.DataTable CreateInstance() {
  1406. return new _Магазины_ТоварыDataTable();
  1407. }
  1408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1410. internal void InitVars() {
  1411. this.columnКод_магазина = base.Columns["Код магазина"];
  1412. this.columnКод_товара = base.Columns["Код товара"];
  1413. }
  1414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1416. private void InitClass() {
  1417. this.columnКод_магазина = new global::System.Data.DataColumn("Код магазина", typeof(long), null, global::System.Data.MappingType.Element);
  1418. this.columnКод_магазина.ExtendedProperties.Add("Generator_ColumnPropNameInRow", "Код_магазина");
  1419. this.columnКод_магазина.ExtendedProperties.Add("Generator_ColumnPropNameInTable", "Код_магазинаColumn");
  1420. this.columnКод_магазина.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "columnКод_магазина");
  1421. this.columnКод_магазина.ExtendedProperties.Add("Generator_UserColumnName", "Код магазина");
  1422. base.Columns.Add(this.columnКод_магазина);
  1423. this.columnКод_товара = new global::System.Data.DataColumn("Код товара", typeof(long), null, global::System.Data.MappingType.Element);
  1424. this.columnКод_товара.ExtendedProperties.Add("Generator_ColumnPropNameInRow", "Код_товара");
  1425. this.columnКод_товара.ExtendedProperties.Add("Generator_ColumnPropNameInTable", "Код_товараColumn");
  1426. this.columnКод_товара.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "columnКод_товара");
  1427. this.columnКод_товара.ExtendedProperties.Add("Generator_UserColumnName", "Код товара");
  1428. base.Columns.Add(this.columnКод_товара);
  1429. this.ExtendedProperties.Add("Generator_TableVarName", "_tableМагазины_Товары");
  1430. this.ExtendedProperties.Add("Generator_UserTableName", "Магазины/Товары");
  1431. }
  1432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1434. public _Магазины_ТоварыRow New_Магазины_ТоварыRow() {
  1435. return ((_Магазины_ТоварыRow)(this.NewRow()));
  1436. }
  1437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1439. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1440. return new _Магазины_ТоварыRow(builder);
  1441. }
  1442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1444. protected override global::System.Type GetRowType() {
  1445. return typeof(_Магазины_ТоварыRow);
  1446. }
  1447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1449. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1450. base.OnRowChanged(e);
  1451. if ((this._Магазины_ТоварыRowChanged != null)) {
  1452. this._Магазины_ТоварыRowChanged(this, new _Магазины_ТоварыRowChangeEvent(((_Магазины_ТоварыRow)(e.Row)), e.Action));
  1453. }
  1454. }
  1455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1457. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1458. base.OnRowChanging(e);
  1459. if ((this._Магазины_ТоварыRowChanging != null)) {
  1460. this._Магазины_ТоварыRowChanging(this, new _Магазины_ТоварыRowChangeEvent(((_Магазины_ТоварыRow)(e.Row)), e.Action));
  1461. }
  1462. }
  1463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1465. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1466. base.OnRowDeleted(e);
  1467. if ((this._Магазины_ТоварыRowDeleted != null)) {
  1468. this._Магазины_ТоварыRowDeleted(this, new _Магазины_ТоварыRowChangeEvent(((_Магазины_ТоварыRow)(e.Row)), e.Action));
  1469. }
  1470. }
  1471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1473. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1474. base.OnRowDeleting(e);
  1475. if ((this._Магазины_ТоварыRowDeleting != null)) {
  1476. this._Магазины_ТоварыRowDeleting(this, new _Магазины_ТоварыRowChangeEvent(((_Магазины_ТоварыRow)(e.Row)), e.Action));
  1477. }
  1478. }
  1479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1481. public void Remove_Магазины_ТоварыRow(_Магазины_ТоварыRow row) {
  1482. this.Rows.Remove(row);
  1483. }
  1484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1486. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1487. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1488. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1489. Yurevich_INTERNET_PRODAZHIDataSet ds = new Yurevich_INTERNET_PRODAZHIDataSet();
  1490. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1491. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1492. any1.MinOccurs = new decimal(0);
  1493. any1.MaxOccurs = decimal.MaxValue;
  1494. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1495. sequence.Items.Add(any1);
  1496. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1497. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1498. any2.MinOccurs = new decimal(1);
  1499. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1500. sequence.Items.Add(any2);
  1501. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1502. attribute1.Name = "namespace";
  1503. attribute1.FixedValue = ds.Namespace;
  1504. type.Attributes.Add(attribute1);
  1505. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1506. attribute2.Name = "tableTypeName";
  1507. attribute2.FixedValue = "_Магазины_ТоварыDataTable";
  1508. type.Attributes.Add(attribute2);
  1509. type.Particle = sequence;
  1510. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1511. if (xs.Contains(dsSchema.TargetNamespace)) {
  1512. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1513. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1514. try {
  1515. global::System.Xml.Schema.XmlSchema schema = null;
  1516. dsSchema.Write(s1);
  1517. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1518. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1519. s2.SetLength(0);
  1520. schema.Write(s2);
  1521. if ((s1.Length == s2.Length)) {
  1522. s1.Position = 0;
  1523. s2.Position = 0;
  1524. for (; ((s1.Position != s1.Length)
  1525. && (s1.ReadByte() == s2.ReadByte())); ) {
  1526. ;
  1527. }
  1528. if ((s1.Position == s1.Length)) {
  1529. return type;
  1530. }
  1531. }
  1532. }
  1533. }
  1534. finally {
  1535. if ((s1 != null)) {
  1536. s1.Close();
  1537. }
  1538. if ((s2 != null)) {
  1539. s2.Close();
  1540. }
  1541. }
  1542. }
  1543. xs.Add(dsSchema);
  1544. return type;
  1545. }
  1546. }
  1547. /// <summary>
  1548. ///Represents the strongly named DataTable class.
  1549. ///</summary>
  1550. [global::System.Serializable()]
  1551. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1552. public partial class ТоварыDataTable : global::System.Data.TypedTableBase<ТоварыRow> {
  1553. private global::System.Data.DataColumn columnКод_товара;
  1554. private global::System.Data.DataColumn columnНазвание_товара;
  1555. private global::System.Data.DataColumn columnФирма;
  1556. private global::System.Data.DataColumn columnМодель;
  1557. private global::System.Data.DataColumn columnТехнические_характеристики;
  1558. private global::System.Data.DataColumn _columnЦена_руб_;
  1559. private global::System.Data.DataColumn columnГарантийный_срок;
  1560. private global::System.Data.DataColumn columnИзображение;
  1561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1563. public ТоварыDataTable() {
  1564. this.TableName = "Товары";
  1565. this.BeginInit();
  1566. this.InitClass();
  1567. this.EndInit();
  1568. }
  1569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1571. internal ТоварыDataTable(global::System.Data.DataTable table) {
  1572. this.TableName = table.TableName;
  1573. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1574. this.CaseSensitive = table.CaseSensitive;
  1575. }
  1576. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1577. this.Locale = table.Locale;
  1578. }
  1579. if ((table.Namespace != table.DataSet.Namespace)) {
  1580. this.Namespace = table.Namespace;
  1581. }
  1582. this.Prefix = table.Prefix;
  1583. this.MinimumCapacity = table.MinimumCapacity;
  1584. }
  1585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1587. protected ТоварыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1588. base(info, context) {
  1589. this.InitVars();
  1590. }
  1591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1593. public global::System.Data.DataColumn Код_товараColumn {
  1594. get {
  1595. return this.columnКод_товара;
  1596. }
  1597. }
  1598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1600. public global::System.Data.DataColumn Название_товараColumn {
  1601. get {
  1602. return this.columnНазвание_товара;
  1603. }
  1604. }
  1605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1607. public global::System.Data.DataColumn ФирмаColumn {
  1608. get {
  1609. return this.columnФирма;
  1610. }
  1611. }
  1612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1614. public global::System.Data.DataColumn МодельColumn {
  1615. get {
  1616. return this.columnМодель;
  1617. }
  1618. }
  1619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1621. public global::System.Data.DataColumn Технические_характеристикиColumn {
  1622. get {
  1623. return this.columnТехнические_характеристики;
  1624. }
  1625. }
  1626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1628. public global::System.Data.DataColumn _Цена_руб_Column {
  1629. get {
  1630. return this._columnЦена_руб_;
  1631. }
  1632. }
  1633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1635. public global::System.Data.DataColumn Гарантийный_срокColumn {
  1636. get {
  1637. return this.columnГарантийный_срок;
  1638. }
  1639. }
  1640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1642. public global::System.Data.DataColumn ИзображениеColumn {
  1643. get {
  1644. return this.columnИзображение;
  1645. }
  1646. }
  1647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1649. [global::System.ComponentModel.Browsable(false)]
  1650. public int Count {
  1651. get {
  1652. return this.Rows.Count;
  1653. }
  1654. }
  1655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1657. public ТоварыRow this[int index] {
  1658. get {
  1659. return ((ТоварыRow)(this.Rows[index]));
  1660. }
  1661. }
  1662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1663. public event ТоварыRowChangeEventHandler ТоварыRowChanging;
  1664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1665. public event ТоварыRowChangeEventHandler ТоварыRowChanged;
  1666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1667. public event ТоварыRowChangeEventHandler ТоварыRowDeleting;
  1668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1669. public event ТоварыRowChangeEventHandler ТоварыRowDeleted;
  1670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1672. public void AddТоварыRow(ТоварыRow row) {
  1673. this.Rows.Add(row);
  1674. }
  1675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1677. public ТоварыRow AddТоварыRow(string Название_товара, string Фирма, string Модель, string Технические_характеристики, decimal _Цена_руб_, string Гарантийный_срок, byte[] Изображение) {
  1678. ТоварыRow rowТоварыRow = ((ТоварыRow)(this.NewRow()));
  1679. object[] columnValuesArray = new object[] {
  1680. null,
  1681. Название_товара,
  1682. Фирма,
  1683. Модель,
  1684. Технические_характеристики,
  1685. _Цена_руб_,
  1686. Гарантийный_срок,
  1687. Изображение};
  1688. rowТоварыRow.ItemArray = columnValuesArray;
  1689. this.Rows.Add(rowТоварыRow);
  1690. return rowТоварыRow;
  1691. }
  1692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1694. public ТоварыRow FindByКод_товара(long Код_товара) {
  1695. return ((ТоварыRow)(this.Rows.Find(new object[] {
  1696. Код_товара})));
  1697. }
  1698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1700. public override global::System.Data.DataTable Clone() {
  1701. ТоварыDataTable cln = ((ТоварыDataTable)(base.Clone()));
  1702. cln.InitVars();
  1703. return cln;
  1704. }
  1705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1707. protected override global::System.Data.DataTable CreateInstance() {
  1708. return new ТоварыDataTable();
  1709. }
  1710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1712. internal void InitVars() {
  1713. this.columnКод_товара = base.Columns["Код_товара"];
  1714. this.columnНазвание_товара = base.Columns["Название_товара"];
  1715. this.columnФирма = base.Columns["Фирма"];
  1716. this.columnМодель = base.Columns["Модель"];
  1717. this.columnТехнические_характеристики = base.Columns["Технические_характеристики"];
  1718. this._columnЦена_руб_ = base.Columns["Цена(руб)"];
  1719. this.columnГарантийный_срок = base.Columns["Гарантийный_срок"];
  1720. this.columnИзображение = base.Columns["Изображение"];
  1721. }
  1722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1724. private void InitClass() {
  1725. this.columnКод_товара = new global::System.Data.DataColumn("Код_товара", typeof(long), null, global::System.Data.MappingType.Element);
  1726. base.Columns.Add(this.columnКод_товара);
  1727. this.columnНазвание_товара = new global::System.Data.DataColumn("Название_товара", typeof(string), null, global::System.Data.MappingType.Element);
  1728. base.Columns.Add(this.columnНазвание_товара);
  1729. this.columnФирма = new global::System.Data.DataColumn("Фирма", typeof(string), null, global::System.Data.MappingType.Element);
  1730. base.Columns.Add(this.columnФирма);
  1731. this.columnМодель = new global::System.Data.DataColumn("Модель", typeof(string), null, global::System.Data.MappingType.Element);
  1732. base.Columns.Add(this.columnМодель);
  1733. this.columnТехнические_характеристики = new global::System.Data.DataColumn("Технические_характеристики", typeof(string), null, global::System.Data.MappingType.Element);
  1734. base.Columns.Add(this.columnТехнические_характеристики);
  1735. this._columnЦена_руб_ = new global::System.Data.DataColumn("Цена(руб)", typeof(decimal), null, global::System.Data.MappingType.Element);
  1736. this._columnЦена_руб_.ExtendedProperties.Add("Generator_ColumnVarNameInTable", "_columnЦена_руб_");
  1737. this._columnЦена_руб_.ExtendedProperties.Add("Generator_UserColumnName", "Цена(руб)");
  1738. base.Columns.Add(this._columnЦена_руб_);
  1739. this.columnГарантийный_срок = new global::System.Data.DataColumn("Гарантийный_срок", typeof(string), null, global::System.Data.MappingType.Element);
  1740. base.Columns.Add(this.columnГарантийный_срок);
  1741. this.columnИзображение = new global::System.Data.DataColumn("Изображение", typeof(byte[]), null, global::System.Data.MappingType.Element);
  1742. base.Columns.Add(this.columnИзображение);
  1743. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1744. this.columnКод_товара}, true));
  1745. this.columnКод_товара.AutoIncrement = true;
  1746. this.columnКод_товара.AutoIncrementSeed = -1;
  1747. this.columnКод_товара.AutoIncrementStep = -1;
  1748. this.columnКод_товара.AllowDBNull = false;
  1749. this.columnКод_товара.ReadOnly = true;
  1750. this.columnКод_товара.Unique = true;
  1751. this.columnНазвание_товара.MaxLength = 2147483647;
  1752. this.columnФирма.MaxLength = 50;
  1753. this.columnМодель.MaxLength = 50;
  1754. this.columnТехнические_характеристики.MaxLength = 50;
  1755. this.columnГарантийный_срок.MaxLength = 50;
  1756. }
  1757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1759. public ТоварыRow NewТоварыRow() {
  1760. return ((ТоварыRow)(this.NewRow()));
  1761. }
  1762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1764. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1765. return new ТоварыRow(builder);
  1766. }
  1767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1769. protected override global::System.Type GetRowType() {
  1770. return typeof(ТоварыRow);
  1771. }
  1772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1774. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1775. base.OnRowChanged(e);
  1776. if ((this.ТоварыRowChanged != null)) {
  1777. this.ТоварыRowChanged(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  1778. }
  1779. }
  1780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1782. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1783. base.OnRowChanging(e);
  1784. if ((this.ТоварыRowChanging != null)) {
  1785. this.ТоварыRowChanging(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  1786. }
  1787. }
  1788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1790. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1791. base.OnRowDeleted(e);
  1792. if ((this.ТоварыRowDeleted != null)) {
  1793. this.ТоварыRowDeleted(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  1794. }
  1795. }
  1796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1798. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1799. base.OnRowDeleting(e);
  1800. if ((this.ТоварыRowDeleting != null)) {
  1801. this.ТоварыRowDeleting(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  1802. }
  1803. }
  1804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1806. public void RemoveТоварыRow(ТоварыRow row) {
  1807. this.Rows.Remove(row);
  1808. }
  1809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1811. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1812. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1813. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1814. Yurevich_INTERNET_PRODAZHIDataSet ds = new Yurevich_INTERNET_PRODAZHIDataSet();
  1815. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1816. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1817. any1.MinOccurs = new decimal(0);
  1818. any1.MaxOccurs = decimal.MaxValue;
  1819. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1820. sequence.Items.Add(any1);
  1821. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1822. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1823. any2.MinOccurs = new decimal(1);
  1824. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1825. sequence.Items.Add(any2);
  1826. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1827. attribute1.Name = "namespace";
  1828. attribute1.FixedValue = ds.Namespace;
  1829. type.Attributes.Add(attribute1);
  1830. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1831. attribute2.Name = "tableTypeName";
  1832. attribute2.FixedValue = "ТоварыDataTable";
  1833. type.Attributes.Add(attribute2);
  1834. type.Particle = sequence;
  1835. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1836. if (xs.Contains(dsSchema.TargetNamespace)) {
  1837. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1838. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1839. try {
  1840. global::System.Xml.Schema.XmlSchema schema = null;
  1841. dsSchema.Write(s1);
  1842. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1843. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1844. s2.SetLength(0);
  1845. schema.Write(s2);
  1846. if ((s1.Length == s2.Length)) {
  1847. s1.Position = 0;
  1848. s2.Position = 0;
  1849. for (; ((s1.Position != s1.Length)
  1850. && (s1.ReadByte() == s2.ReadByte())); ) {
  1851. ;
  1852. }
  1853. if ((s1.Position == s1.Length)) {
  1854. return type;
  1855. }
  1856. }
  1857. }
  1858. }
  1859. finally {
  1860. if ((s1 != null)) {
  1861. s1.Close();
  1862. }
  1863. if ((s2 != null)) {
  1864. s2.Close();
  1865. }
  1866. }
  1867. }
  1868. xs.Add(dsSchema);
  1869. return type;
  1870. }
  1871. }
  1872. /// <summary>
  1873. ///Represents strongly named DataRow class.
  1874. ///</summary>
  1875. public partial class ДоставкаRow : global::System.Data.DataRow {
  1876. private ДоставкаDataTable tableДоставка;
  1877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1879. internal ДоставкаRow(global::System.Data.DataRowBuilder rb) :
  1880. base(rb) {
  1881. this.tableДоставка = ((ДоставкаDataTable)(this.Table));
  1882. }
  1883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1885. public long Код_заказа {
  1886. get {
  1887. return ((long)(this[this.tableДоставка.Код_заказаColumn]));
  1888. }
  1889. set {
  1890. this[this.tableДоставка.Код_заказаColumn] = value;
  1891. }
  1892. }
  1893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1895. public System.DateTime Дата_доставки {
  1896. get {
  1897. try {
  1898. return ((global::System.DateTime)(this[this.tableДоставка.Дата_доставкиColumn]));
  1899. }
  1900. catch (global::System.InvalidCastException e) {
  1901. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата_доставки\' в таблице \'Доставка\' равно DBNull.", e);
  1902. }
  1903. }
  1904. set {
  1905. this[this.tableДоставка.Дата_доставкиColumn] = value;
  1906. }
  1907. }
  1908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1910. public System.TimeSpan Время_доставки {
  1911. get {
  1912. try {
  1913. return ((global::System.TimeSpan)(this[this.tableДоставка.Время_доставкиColumn]));
  1914. }
  1915. catch (global::System.InvalidCastException e) {
  1916. throw new global::System.Data.StrongTypingException("Значение для столбца \'Время_доставки\' в таблице \'Доставка\' равно DBNull.", e);
  1917. }
  1918. }
  1919. set {
  1920. this[this.tableДоставка.Время_доставкиColumn] = value;
  1921. }
  1922. }
  1923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1925. public string Адрес_доставки {
  1926. get {
  1927. try {
  1928. return ((string)(this[this.tableДоставка.Адрес_доставкиColumn]));
  1929. }
  1930. catch (global::System.InvalidCastException e) {
  1931. throw new global::System.Data.StrongTypingException("Значение для столбца \'Адрес_доставки\' в таблице \'Доставка\' равно DBNull.", e);
  1932. }
  1933. }
  1934. set {
  1935. this[this.tableДоставка.Адрес_доставкиColumn] = value;
  1936. }
  1937. }
  1938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1940. public string Ф_И_О_клиента {
  1941. get {
  1942. try {
  1943. return ((string)(this[this.tableДоставка.Ф_И_О_клиентаColumn]));
  1944. }
  1945. catch (global::System.InvalidCastException e) {
  1946. throw new global::System.Data.StrongTypingException("Значение для столбца \'Ф_И_О_клиента\' в таблице \'Доставка\' равно DBNull.", e);
  1947. }
  1948. }
  1949. set {
  1950. this[this.tableДоставка.Ф_И_О_клиентаColumn] = value;
  1951. }
  1952. }
  1953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1955. public string Ф_И_О_курьера {
  1956. get {
  1957. try {
  1958. return ((string)(this[this.tableДоставка.Ф_И_О_курьераColumn]));
  1959. }
  1960. catch (global::System.InvalidCastException e) {
  1961. throw new global::System.Data.StrongTypingException("Значение для столбца \'Ф_И_О_курьера\' в таблице \'Доставка\' равно DBNull.", e);
  1962. }
  1963. }
  1964. set {
  1965. this[this.tableДоставка.Ф_И_О_курьераColumn] = value;
  1966. }
  1967. }
  1968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1970. public ЗаказыRow ЗаказыRow {
  1971. get {
  1972. return ((ЗаказыRow)(this.GetParentRow(this.Table.ParentRelations["FK_Доставка_Заказы"])));
  1973. }
  1974. set {
  1975. this.SetParentRow(value, this.Table.ParentRelations["FK_Доставка_Заказы"]);
  1976. }
  1977. }
  1978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1980. public bool IsДата_доставкиNull() {
  1981. return this.IsNull(this.tableДоставка.Дата_доставкиColumn);
  1982. }
  1983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1985. public void SetДата_доставкиNull() {
  1986. this[this.tableДоставка.Дата_доставкиColumn] = global::System.Convert.DBNull;
  1987. }
  1988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1990. public bool IsВремя_доставкиNull() {
  1991. return this.IsNull(this.tableДоставка.Время_доставкиColumn);
  1992. }
  1993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1995. public void SetВремя_доставкиNull() {
  1996. this[this.tableДоставка.Время_доставкиColumn] = global::System.Convert.DBNull;
  1997. }
  1998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2000. public bool IsАдрес_доставкиNull() {
  2001. return this.IsNull(this.tableДоставка.Адрес_доставкиColumn);
  2002. }
  2003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2005. public void SetАдрес_доставкиNull() {
  2006. this[this.tableДоставка.Адрес_доставкиColumn] = global::System.Convert.DBNull;
  2007. }
  2008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2010. public bool IsФ_И_О_клиентаNull() {
  2011. return this.IsNull(this.tableДоставка.Ф_И_О_клиентаColumn);
  2012. }
  2013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2015. public void SetФ_И_О_клиентаNull() {
  2016. this[this.tableДоставка.Ф_И_О_клиентаColumn] = global::System.Convert.DBNull;
  2017. }
  2018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2020. public bool IsФ_И_О_курьераNull() {
  2021. return this.IsNull(this.tableДоставка.Ф_И_О_курьераColumn);
  2022. }
  2023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2025. public void SetФ_И_О_курьераNull() {
  2026. this[this.tableДоставка.Ф_И_О_курьераColumn] = global::System.Convert.DBNull;
  2027. }
  2028. }
  2029. /// <summary>
  2030. ///Represents strongly named DataRow class.
  2031. ///</summary>
  2032. public partial class ЗаказыRow : global::System.Data.DataRow {
  2033. private ЗаказыDataTable tableЗаказы;
  2034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2036. internal ЗаказыRow(global::System.Data.DataRowBuilder rb) :
  2037. base(rb) {
  2038. this.tableЗаказы = ((ЗаказыDataTable)(this.Table));
  2039. }
  2040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2042. public long Код_заказа {
  2043. get {
  2044. return ((long)(this[this.tableЗаказы.Код_заказаColumn]));
  2045. }
  2046. set {
  2047. this[this.tableЗаказы.Код_заказаColumn] = value;
  2048. }
  2049. }
  2050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2052. public long Код_магазина {
  2053. get {
  2054. try {
  2055. return ((long)(this[this.tableЗаказы.Код_магазинаColumn]));
  2056. }
  2057. catch (global::System.InvalidCastException e) {
  2058. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код_магазина\' в таблице \'Заказы\' равно DBNull.", e);
  2059. }
  2060. }
  2061. set {
  2062. this[this.tableЗаказы.Код_магазинаColumn] = value;
  2063. }
  2064. }
  2065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2067. public long Код_товара {
  2068. get {
  2069. try {
  2070. return ((long)(this[this.tableЗаказы.Код_товараColumn]));
  2071. }
  2072. catch (global::System.InvalidCastException e) {
  2073. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код_товара\' в таблице \'Заказы\' равно DBNull.", e);
  2074. }
  2075. }
  2076. set {
  2077. this[this.tableЗаказы.Код_товараColumn] = value;
  2078. }
  2079. }
  2080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2082. public System.DateTimeOffset Дата_заказа {
  2083. get {
  2084. try {
  2085. return ((global::System.DateTimeOffset)(this[this.tableЗаказы.Дата_заказаColumn]));
  2086. }
  2087. catch (global::System.InvalidCastException e) {
  2088. throw new global::System.Data.StrongTypingException("Значение для столбца \'Дата_заказа\' в таблице \'Заказы\' равно DBNull.", e);
  2089. }
  2090. }
  2091. set {
  2092. this[this.tableЗаказы.Дата_заказаColumn] = value;
  2093. }
  2094. }
  2095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2097. public System.TimeSpan Время_заказа {
  2098. get {
  2099. try {
  2100. return ((global::System.TimeSpan)(this[this.tableЗаказы.Время_заказаColumn]));
  2101. }
  2102. catch (global::System.InvalidCastException e) {
  2103. throw new global::System.Data.StrongTypingException("Значение для столбца \'Время_заказа\' в таблице \'Заказы\' равно DBNull.", e);
  2104. }
  2105. }
  2106. set {
  2107. this[this.tableЗаказы.Время_заказаColumn] = value;
  2108. }
  2109. }
  2110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2112. public string Количество {
  2113. get {
  2114. try {
  2115. return ((string)(this[this.tableЗаказы.КоличествоColumn]));
  2116. }
  2117. catch (global::System.InvalidCastException e) {
  2118. throw new global::System.Data.StrongTypingException("Значение для столбца \'Количество\' в таблице \'Заказы\' равно DBNull.", e);
  2119. }
  2120. }
  2121. set {
  2122. this[this.tableЗаказы.КоличествоColumn] = value;
  2123. }
  2124. }
  2125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2127. public string Ф_И_О_клиента {
  2128. get {
  2129. try {
  2130. return ((string)(this[this.tableЗаказы.Ф_И_О_клиентаColumn]));
  2131. }
  2132. catch (global::System.InvalidCastException e) {
  2133. throw new global::System.Data.StrongTypingException("Значение для столбца \'Ф_И_О_клиента\' в таблице \'Заказы\' равно DBNull.", e);
  2134. }
  2135. }
  2136. set {
  2137. this[this.tableЗаказы.Ф_И_О_клиентаColumn] = value;
  2138. }
  2139. }
  2140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2142. public string Контактный_телефон {
  2143. get {
  2144. try {
  2145. return ((string)(this[this.tableЗаказы.Контактный_телефонColumn]));
  2146. }
  2147. catch (global::System.InvalidCastException e) {
  2148. throw new global::System.Data.StrongTypingException("Значение для столбца \'Контактный_телефон\' в таблице \'Заказы\' равно DBNull.", e);
  2149. }
  2150. }
  2151. set {
  2152. this[this.tableЗаказы.Контактный_телефонColumn] = value;
  2153. }
  2154. }
  2155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2157. public bool Подтверждение_заказа {
  2158. get {
  2159. try {
  2160. return ((bool)(this[this.tableЗаказы.Подтверждение_заказаColumn]));
  2161. }
  2162. catch (global::System.InvalidCastException e) {
  2163. throw new global::System.Data.StrongTypingException("Значение для столбца \'Подтверждение_заказа\' в таблице \'Заказы\' равно DBNull.", e);
  2164. }
  2165. }
  2166. set {
  2167. this[this.tableЗаказы.Подтверждение_заказаColumn] = value;
  2168. }
  2169. }
  2170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2172. public _Интернет_магазиныRow _Интернет_магазиныRow {
  2173. get {
  2174. return ((_Интернет_магазиныRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказы_Интернет-магазины"])));
  2175. }
  2176. set {
  2177. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказы_Интернет-магазины"]);
  2178. }
  2179. }
  2180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2182. public ТоварыRow ТоварыRow {
  2183. get {
  2184. return ((ТоварыRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказы_Товары1"])));
  2185. }
  2186. set {
  2187. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказы_Товары1"]);
  2188. }
  2189. }
  2190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2192. public bool IsКод_магазинаNull() {
  2193. return this.IsNull(this.tableЗаказы.Код_магазинаColumn);
  2194. }
  2195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2197. public void SetКод_магазинаNull() {
  2198. this[this.tableЗаказы.Код_магазинаColumn] = global::System.Convert.DBNull;
  2199. }
  2200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2202. public bool IsКод_товараNull() {
  2203. return this.IsNull(this.tableЗаказы.Код_товараColumn);
  2204. }
  2205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2207. public void SetКод_товараNull() {
  2208. this[this.tableЗаказы.Код_товараColumn] = global::System.Convert.DBNull;
  2209. }
  2210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2212. public bool IsДата_заказаNull() {
  2213. return this.IsNull(this.tableЗаказы.Дата_заказаColumn);
  2214. }
  2215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2217. public void SetДата_заказаNull() {
  2218. this[this.tableЗаказы.Дата_заказаColumn] = global::System.Convert.DBNull;
  2219. }
  2220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2222. public bool IsВремя_заказаNull() {
  2223. return this.IsNull(this.tableЗаказы.Время_заказаColumn);
  2224. }
  2225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2227. public void SetВремя_заказаNull() {
  2228. this[this.tableЗаказы.Время_заказаColumn] = global::System.Convert.DBNull;
  2229. }
  2230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2232. public bool IsКоличествоNull() {
  2233. return this.IsNull(this.tableЗаказы.КоличествоColumn);
  2234. }
  2235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2237. public void SetКоличествоNull() {
  2238. this[this.tableЗаказы.КоличествоColumn] = global::System.Convert.DBNull;
  2239. }
  2240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2242. public bool IsФ_И_О_клиентаNull() {
  2243. return this.IsNull(this.tableЗаказы.Ф_И_О_клиентаColumn);
  2244. }
  2245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2247. public void SetФ_И_О_клиентаNull() {
  2248. this[this.tableЗаказы.Ф_И_О_клиентаColumn] = global::System.Convert.DBNull;
  2249. }
  2250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2252. public bool IsКонтактный_телефонNull() {
  2253. return this.IsNull(this.tableЗаказы.Контактный_телефонColumn);
  2254. }
  2255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2257. public void SetКонтактный_телефонNull() {
  2258. this[this.tableЗаказы.Контактный_телефонColumn] = global::System.Convert.DBNull;
  2259. }
  2260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2262. public bool IsПодтверждение_заказаNull() {
  2263. return this.IsNull(this.tableЗаказы.Подтверждение_заказаColumn);
  2264. }
  2265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2267. public void SetПодтверждение_заказаNull() {
  2268. this[this.tableЗаказы.Подтверждение_заказаColumn] = global::System.Convert.DBNull;
  2269. }
  2270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2272. public ДоставкаRow[] GetДоставкаRows() {
  2273. if ((this.Table.ChildRelations["FK_Доставка_Заказы"] == null)) {
  2274. return new ДоставкаRow[0];
  2275. }
  2276. else {
  2277. return ((ДоставкаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Доставка_Заказы"])));
  2278. }
  2279. }
  2280. }
  2281. /// <summary>
  2282. ///Represents strongly named DataRow class.
  2283. ///</summary>
  2284. public partial class _Интернет_магазиныRow : global::System.Data.DataRow {
  2285. private _Интернет_магазиныDataTable _tableИнтернет_магазины;
  2286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2288. internal _Интернет_магазиныRow(global::System.Data.DataRowBuilder rb) :
  2289. base(rb) {
  2290. this._tableИнтернет_магазины = ((_Интернет_магазиныDataTable)(this.Table));
  2291. }
  2292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2294. public long Код_магазина {
  2295. get {
  2296. return ((long)(this[this._tableИнтернет_магазины.Код_магазинаColumn]));
  2297. }
  2298. set {
  2299. this[this._tableИнтернет_магазины.Код_магазинаColumn] = value;
  2300. }
  2301. }
  2302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2304. public string Электронный_адрес {
  2305. get {
  2306. try {
  2307. return ((string)(this[this._tableИнтернет_магазины.Электронный_адресColumn]));
  2308. }
  2309. catch (global::System.InvalidCastException e) {
  2310. throw new global::System.Data.StrongTypingException("Значение для столбца \'Электронный_адрес\' в таблице \'Интернет-магазины\' равно DBNu" +
  2311. "ll.", e);
  2312. }
  2313. }
  2314. set {
  2315. this[this._tableИнтернет_магазины.Электронный_адресColumn] = value;
  2316. }
  2317. }
  2318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2320. public bool Оплата_доставки {
  2321. get {
  2322. try {
  2323. return ((bool)(this[this._tableИнтернет_магазины.Оплата_доставкиColumn]));
  2324. }
  2325. catch (global::System.InvalidCastException e) {
  2326. throw new global::System.Data.StrongTypingException("Значение для столбца \'Оплата_доставки\' в таблице \'Интернет-магазины\' равно DBNull" +
  2327. ".", e);
  2328. }
  2329. }
  2330. set {
  2331. this[this._tableИнтернет_магазины.Оплата_доставкиColumn] = value;
  2332. }
  2333. }
  2334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2336. public bool IsЭлектронный_адресNull() {
  2337. return this.IsNull(this._tableИнтернет_магазины.Электронный_адресColumn);
  2338. }
  2339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2341. public void SetЭлектронный_адресNull() {
  2342. this[this._tableИнтернет_магазины.Электронный_адресColumn] = global::System.Convert.DBNull;
  2343. }
  2344. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2346. public bool IsОплата_доставкиNull() {
  2347. return this.IsNull(this._tableИнтернет_магазины.Оплата_доставкиColumn);
  2348. }
  2349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2351. public void SetОплата_доставкиNull() {
  2352. this[this._tableИнтернет_магазины.Оплата_доставкиColumn] = global::System.Convert.DBNull;
  2353. }
  2354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2356. public ЗаказыRow[] GetЗаказыRows() {
  2357. if ((this.Table.ChildRelations["FK_Заказы_Интернет-магазины"] == null)) {
  2358. return new ЗаказыRow[0];
  2359. }
  2360. else {
  2361. return ((ЗаказыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказы_Интернет-магазины"])));
  2362. }
  2363. }
  2364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2366. public _Магазины_ТоварыRow[] _GetМагазины_ТоварыRows() {
  2367. if ((this.Table.ChildRelations["FK_Магазины/Товары_Интернет-магазины"] == null)) {
  2368. return new _Магазины_ТоварыRow[0];
  2369. }
  2370. else {
  2371. return ((_Магазины_ТоварыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Магазины/Товары_Интернет-магазины"])));
  2372. }
  2373. }
  2374. }
  2375. /// <summary>
  2376. ///Represents strongly named DataRow class.
  2377. ///</summary>
  2378. public partial class _Магазины_ТоварыRow : global::System.Data.DataRow {
  2379. private _Магазины_ТоварыDataTable _tableМагазины_Товары;
  2380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2382. internal _Магазины_ТоварыRow(global::System.Data.DataRowBuilder rb) :
  2383. base(rb) {
  2384. this._tableМагазины_Товары = ((_Магазины_ТоварыDataTable)(this.Table));
  2385. }
  2386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2388. public long Код_магазина {
  2389. get {
  2390. try {
  2391. return ((long)(this[this._tableМагазины_Товары.Код_магазинаColumn]));
  2392. }
  2393. catch (global::System.InvalidCastException e) {
  2394. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код магазина\' в таблице \'Магазины/Товары\' равно DBNull.", e);
  2395. }
  2396. }
  2397. set {
  2398. this[this._tableМагазины_Товары.Код_магазинаColumn] = value;
  2399. }
  2400. }
  2401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2403. public long Код_товара {
  2404. get {
  2405. try {
  2406. return ((long)(this[this._tableМагазины_Товары.Код_товараColumn]));
  2407. }
  2408. catch (global::System.InvalidCastException e) {
  2409. throw new global::System.Data.StrongTypingException("Значение для столбца \'Код товара\' в таблице \'Магазины/Товары\' равно DBNull.", e);
  2410. }
  2411. }
  2412. set {
  2413. this[this._tableМагазины_Товары.Код_товараColumn] = value;
  2414. }
  2415. }
  2416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2418. public _Интернет_магазиныRow _Интернет_магазиныRow {
  2419. get {
  2420. return ((_Интернет_магазиныRow)(this.GetParentRow(this.Table.ParentRelations["FK_Магазины/Товары_Интернет-магазины"])));
  2421. }
  2422. set {
  2423. this.SetParentRow(value, this.Table.ParentRelations["FK_Магазины/Товары_Интернет-магазины"]);
  2424. }
  2425. }
  2426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2428. public ТоварыRow ТоварыRow {
  2429. get {
  2430. return ((ТоварыRow)(this.GetParentRow(this.Table.ParentRelations["FK_Магазины/Товары_Товары"])));
  2431. }
  2432. set {
  2433. this.SetParentRow(value, this.Table.ParentRelations["FK_Магазины/Товары_Товары"]);
  2434. }
  2435. }
  2436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2438. public bool IsКод_магазинаNull() {
  2439. return this.IsNull(this._tableМагазины_Товары.Код_магазинаColumn);
  2440. }
  2441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2443. public void SetКод_магазинаNull() {
  2444. this[this._tableМагазины_Товары.Код_магазинаColumn] = global::System.Convert.DBNull;
  2445. }
  2446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2448. public bool IsКод_товараNull() {
  2449. return this.IsNull(this._tableМагазины_Товары.Код_товараColumn);
  2450. }
  2451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2453. public void SetКод_товараNull() {
  2454. this[this._tableМагазины_Товары.Код_товараColumn] = global::System.Convert.DBNull;
  2455. }
  2456. }
  2457. /// <summary>
  2458. ///Represents strongly named DataRow class.
  2459. ///</summary>
  2460. public partial class ТоварыRow : global::System.Data.DataRow {
  2461. private ТоварыDataTable tableТовары;
  2462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2464. internal ТоварыRow(global::System.Data.DataRowBuilder rb) :
  2465. base(rb) {
  2466. this.tableТовары = ((ТоварыDataTable)(this.Table));
  2467. }
  2468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2470. public long Код_товара {
  2471. get {
  2472. return ((long)(this[this.tableТовары.Код_товараColumn]));
  2473. }
  2474. set {
  2475. this[this.tableТовары.Код_товараColumn] = value;
  2476. }
  2477. }
  2478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2480. public string Название_товара {
  2481. get {
  2482. try {
  2483. return ((string)(this[this.tableТовары.Название_товараColumn]));
  2484. }
  2485. catch (global::System.InvalidCastException e) {
  2486. throw new global::System.Data.StrongTypingException("Значение для столбца \'Название_товара\' в таблице \'Товары\' равно DBNull.", e);
  2487. }
  2488. }
  2489. set {
  2490. this[this.tableТовары.Название_товараColumn] = value;
  2491. }
  2492. }
  2493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2495. public string Фирма {
  2496. get {
  2497. try {
  2498. return ((string)(this[this.tableТовары.ФирмаColumn]));
  2499. }
  2500. catch (global::System.InvalidCastException e) {
  2501. throw new global::System.Data.StrongTypingException("Значение для столбца \'Фирма\' в таблице \'Товары\' равно DBNull.", e);
  2502. }
  2503. }
  2504. set {
  2505. this[this.tableТовары.ФирмаColumn] = value;
  2506. }
  2507. }
  2508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2510. public string Модель {
  2511. get {
  2512. try {
  2513. return ((string)(this[this.tableТовары.МодельColumn]));
  2514. }
  2515. catch (global::System.InvalidCastException e) {
  2516. throw new global::System.Data.StrongTypingException("Значение для столбца \'Модель\' в таблице \'Товары\' равно DBNull.", e);
  2517. }
  2518. }
  2519. set {
  2520. this[this.tableТовары.МодельColumn] = value;
  2521. }
  2522. }
  2523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2525. public string Технические_характеристики {
  2526. get {
  2527. try {
  2528. return ((string)(this[this.tableТовары.Технические_характеристикиColumn]));
  2529. }
  2530. catch (global::System.InvalidCastException e) {
  2531. throw new global::System.Data.StrongTypingException("Значение для столбца \'Технические_характеристики\' в таблице \'Товары\' равно DBNull" +
  2532. ".", e);
  2533. }
  2534. }
  2535. set {
  2536. this[this.tableТовары.Технические_характеристикиColumn] = value;
  2537. }
  2538. }
  2539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2541. public decimal _Цена_руб_ {
  2542. get {
  2543. try {
  2544. return ((decimal)(this[this.tableТовары._Цена_руб_Column]));
  2545. }
  2546. catch (global::System.InvalidCastException e) {
  2547. throw new global::System.Data.StrongTypingException("Значение для столбца \'Цена(руб)\' в таблице \'Товары\' равно DBNull.", e);
  2548. }
  2549. }
  2550. set {
  2551. this[this.tableТовары._Цена_руб_Column] = value;
  2552. }
  2553. }
  2554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2556. public string Гарантийный_срок {
  2557. get {
  2558. try {
  2559. return ((string)(this[this.tableТовары.Гарантийный_срокColumn]));
  2560. }
  2561. catch (global::System.InvalidCastException e) {
  2562. throw new global::System.Data.StrongTypingException("Значение для столбца \'Гарантийный_срок\' в таблице \'Товары\' равно DBNull.", e);
  2563. }
  2564. }
  2565. set {
  2566. this[this.tableТовары.Гарантийный_срокColumn] = value;
  2567. }
  2568. }
  2569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2571. public byte[] Изображение {
  2572. get {
  2573. try {
  2574. return ((byte[])(this[this.tableТовары.ИзображениеColumn]));
  2575. }
  2576. catch (global::System.InvalidCastException e) {
  2577. throw new global::System.Data.StrongTypingException("Значение для столбца \'Изображение\' в таблице \'Товары\' равно DBNull.", e);
  2578. }
  2579. }
  2580. set {
  2581. this[this.tableТовары.ИзображениеColumn] = value;
  2582. }
  2583. }
  2584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2586. public bool IsНазвание_товараNull() {
  2587. return this.IsNull(this.tableТовары.Название_товараColumn);
  2588. }
  2589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2591. public void SetНазвание_товараNull() {
  2592. this[this.tableТовары.Название_товараColumn] = global::System.Convert.DBNull;
  2593. }
  2594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2596. public bool IsФирмаNull() {
  2597. return this.IsNull(this.tableТовары.ФирмаColumn);
  2598. }
  2599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2601. public void SetФирмаNull() {
  2602. this[this.tableТовары.ФирмаColumn] = global::System.Convert.DBNull;
  2603. }
  2604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2606. public bool IsМодельNull() {
  2607. return this.IsNull(this.tableТовары.МодельColumn);
  2608. }
  2609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2611. public void SetМодельNull() {
  2612. this[this.tableТовары.МодельColumn] = global::System.Convert.DBNull;
  2613. }
  2614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2616. public bool IsТехнические_характеристикиNull() {
  2617. return this.IsNull(this.tableТовары.Технические_характеристикиColumn);
  2618. }
  2619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2621. public void SetТехнические_характеристикиNull() {
  2622. this[this.tableТовары.Технические_характеристикиColumn] = global::System.Convert.DBNull;
  2623. }
  2624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2626. public bool Is_Цена_руб_Null() {
  2627. return this.IsNull(this.tableТовары._Цена_руб_Column);
  2628. }
  2629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2631. public void Set_Цена_руб_Null() {
  2632. this[this.tableТовары._Цена_руб_Column] = global::System.Convert.DBNull;
  2633. }
  2634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2636. public bool IsГарантийный_срокNull() {
  2637. return this.IsNull(this.tableТовары.Гарантийный_срокColumn);
  2638. }
  2639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2641. public void SetГарантийный_срокNull() {
  2642. this[this.tableТовары.Гарантийный_срокColumn] = global::System.Convert.DBNull;
  2643. }
  2644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2646. public bool IsИзображениеNull() {
  2647. return this.IsNull(this.tableТовары.ИзображениеColumn);
  2648. }
  2649. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2650. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2651. public void SetИзображениеNull() {
  2652. this[this.tableТовары.ИзображениеColumn] = global::System.Convert.DBNull;
  2653. }
  2654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2656. public ЗаказыRow[] GetЗаказыRows() {
  2657. if ((this.Table.ChildRelations["FK_Заказы_Товары1"] == null)) {
  2658. return new ЗаказыRow[0];
  2659. }
  2660. else {
  2661. return ((ЗаказыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказы_Товары1"])));
  2662. }
  2663. }
  2664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2666. public _Магазины_ТоварыRow[] _GetМагазины_ТоварыRows() {
  2667. if ((this.Table.ChildRelations["FK_Магазины/Товары_Товары"] == null)) {
  2668. return new _Магазины_ТоварыRow[0];
  2669. }
  2670. else {
  2671. return ((_Магазины_ТоварыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Магазины/Товары_Товары"])));
  2672. }
  2673. }
  2674. }
  2675. /// <summary>
  2676. ///Row event argument class
  2677. ///</summary>
  2678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2679. public class ДоставкаRowChangeEvent : global::System.EventArgs {
  2680. private ДоставкаRow eventRow;
  2681. private global::System.Data.DataRowAction eventAction;
  2682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2684. public ДоставкаRowChangeEvent(ДоставкаRow row, global::System.Data.DataRowAction action) {
  2685. this.eventRow = row;
  2686. this.eventAction = action;
  2687. }
  2688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2690. public ДоставкаRow Row {
  2691. get {
  2692. return this.eventRow;
  2693. }
  2694. }
  2695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2697. public global::System.Data.DataRowAction Action {
  2698. get {
  2699. return this.eventAction;
  2700. }
  2701. }
  2702. }
  2703. /// <summary>
  2704. ///Row event argument class
  2705. ///</summary>
  2706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2707. public class ЗаказыRowChangeEvent : global::System.EventArgs {
  2708. private ЗаказыRow eventRow;
  2709. private global::System.Data.DataRowAction eventAction;
  2710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2712. public ЗаказыRowChangeEvent(ЗаказыRow row, global::System.Data.DataRowAction action) {
  2713. this.eventRow = row;
  2714. this.eventAction = action;
  2715. }
  2716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2718. public ЗаказыRow Row {
  2719. get {
  2720. return this.eventRow;
  2721. }
  2722. }
  2723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2725. public global::System.Data.DataRowAction Action {
  2726. get {
  2727. return this.eventAction;
  2728. }
  2729. }
  2730. }
  2731. /// <summary>
  2732. ///Row event argument class
  2733. ///</summary>
  2734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2735. public class _Интернет_магазиныRowChangeEvent : global::System.EventArgs {
  2736. private _Интернет_магазиныRow eventRow;
  2737. private global::System.Data.DataRowAction eventAction;
  2738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2740. public _Интернет_магазиныRowChangeEvent(_Интернет_магазиныRow row, global::System.Data.DataRowAction action) {
  2741. this.eventRow = row;
  2742. this.eventAction = action;
  2743. }
  2744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2746. public _Интернет_магазиныRow Row {
  2747. get {
  2748. return this.eventRow;
  2749. }
  2750. }
  2751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2753. public global::System.Data.DataRowAction Action {
  2754. get {
  2755. return this.eventAction;
  2756. }
  2757. }
  2758. }
  2759. /// <summary>
  2760. ///Row event argument class
  2761. ///</summary>
  2762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2763. public class _Магазины_ТоварыRowChangeEvent : global::System.EventArgs {
  2764. private _Магазины_ТоварыRow eventRow;
  2765. private global::System.Data.DataRowAction eventAction;
  2766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2768. public _Магазины_ТоварыRowChangeEvent(_Магазины_ТоварыRow row, global::System.Data.DataRowAction action) {
  2769. this.eventRow = row;
  2770. this.eventAction = action;
  2771. }
  2772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2774. public _Магазины_ТоварыRow Row {
  2775. get {
  2776. return this.eventRow;
  2777. }
  2778. }
  2779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2781. public global::System.Data.DataRowAction Action {
  2782. get {
  2783. return this.eventAction;
  2784. }
  2785. }
  2786. }
  2787. /// <summary>
  2788. ///Row event argument class
  2789. ///</summary>
  2790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2791. public class ТоварыRowChangeEvent : global::System.EventArgs {
  2792. private ТоварыRow eventRow;
  2793. private global::System.Data.DataRowAction eventAction;
  2794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2796. public ТоварыRowChangeEvent(ТоварыRow row, global::System.Data.DataRowAction action) {
  2797. this.eventRow = row;
  2798. this.eventAction = action;
  2799. }
  2800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2802. public ТоварыRow Row {
  2803. get {
  2804. return this.eventRow;
  2805. }
  2806. }
  2807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2809. public global::System.Data.DataRowAction Action {
  2810. get {
  2811. return this.eventAction;
  2812. }
  2813. }
  2814. }
  2815. }
  2816. }
  2817. namespace Yurevich_InternetProdazhi.Yurevich_INTERNET_PRODAZHIDataSetTableAdapters {
  2818. /// <summary>
  2819. ///Represents the connection and commands used to retrieve and save data.
  2820. ///</summary>
  2821. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2822. [global::System.ComponentModel.ToolboxItem(true)]
  2823. [global::System.ComponentModel.DataObjectAttribute(true)]
  2824. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2825. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2826. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2827. public partial class ДоставкаTableAdapter : global::System.ComponentModel.Component {
  2828. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2829. private global::System.Data.SqlClient.SqlConnection _connection;
  2830. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2831. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2832. private bool _clearBeforeFill;
  2833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2835. public ДоставкаTableAdapter() {
  2836. this.ClearBeforeFill = true;
  2837. }
  2838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2840. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2841. get {
  2842. if ((this._adapter == null)) {
  2843. this.InitAdapter();
  2844. }
  2845. return this._adapter;
  2846. }
  2847. }
  2848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2850. internal global::System.Data.SqlClient.SqlConnection Connection {
  2851. get {
  2852. if ((this._connection == null)) {
  2853. this.InitConnection();
  2854. }
  2855. return this._connection;
  2856. }
  2857. set {
  2858. this._connection = value;
  2859. if ((this.Adapter.InsertCommand != null)) {
  2860. this.Adapter.InsertCommand.Connection = value;
  2861. }
  2862. if ((this.Adapter.DeleteCommand != null)) {
  2863. this.Adapter.DeleteCommand.Connection = value;
  2864. }
  2865. if ((this.Adapter.UpdateCommand != null)) {
  2866. this.Adapter.UpdateCommand.Connection = value;
  2867. }
  2868. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2869. if ((this.CommandCollection[i] != null)) {
  2870. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2871. }
  2872. }
  2873. }
  2874. }
  2875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2877. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2878. get {
  2879. return this._transaction;
  2880. }
  2881. set {
  2882. this._transaction = value;
  2883. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2884. this.CommandCollection[i].Transaction = this._transaction;
  2885. }
  2886. if (((this.Adapter != null)
  2887. && (this.Adapter.DeleteCommand != null))) {
  2888. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2889. }
  2890. if (((this.Adapter != null)
  2891. && (this.Adapter.InsertCommand != null))) {
  2892. this.Adapter.InsertCommand.Transaction = this._transaction;
  2893. }
  2894. if (((this.Adapter != null)
  2895. && (this.Adapter.UpdateCommand != null))) {
  2896. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2897. }
  2898. }
  2899. }
  2900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2902. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2903. get {
  2904. if ((this._commandCollection == null)) {
  2905. this.InitCommandCollection();
  2906. }
  2907. return this._commandCollection;
  2908. }
  2909. }
  2910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2912. public bool ClearBeforeFill {
  2913. get {
  2914. return this._clearBeforeFill;
  2915. }
  2916. set {
  2917. this._clearBeforeFill = value;
  2918. }
  2919. }
  2920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2922. private void InitAdapter() {
  2923. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2924. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2925. tableMapping.SourceTable = "Table";
  2926. tableMapping.DataSetTable = "Доставка";
  2927. tableMapping.ColumnMappings.Add("Код_заказа", "Код_заказа");
  2928. tableMapping.ColumnMappings.Add("Дата_доставки", "Дата_доставки");
  2929. tableMapping.ColumnMappings.Add("Время_доставки", "Время_доставки");
  2930. tableMapping.ColumnMappings.Add("Адрес_доставки", "Адрес_доставки");
  2931. tableMapping.ColumnMappings.Add("Ф.И.О.клиента", "Ф_И_О_клиента");
  2932. tableMapping.ColumnMappings.Add("Ф.И.О.курьера", "Ф_И_О_курьера");
  2933. this._adapter.TableMappings.Add(tableMapping);
  2934. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  2935. this._adapter.DeleteCommand.Connection = this.Connection;
  2936. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Доставка] WHERE (([Код_заказа] = @Original_Код_заказа) AND ((@IsNull_Дата_доставки = 1 AND [Дата_доставки] IS NULL) OR ([Дата_доставки] = @Original_Дата_доставки)) AND ((@IsNull_Время_доставки = 1 AND [Время_доставки] IS NULL) OR ([Время_доставки] = @Original_Время_доставки)))";
  2937. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  2938. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_заказа", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2939. 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, "", "", ""));
  2940. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_доставки", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_доставки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2941. 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, "", "", ""));
  2942. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Время_доставки", global::System.Data.SqlDbType.Time, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Время_доставки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2943. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2944. this._adapter.InsertCommand.Connection = this.Connection;
  2945. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Доставка] ([Код_заказа], [Дата_доставки], [Время_доставки], [Адрес_доставки], [Ф.И.О.клиента], [Ф.И.О.курьера]) VALUES (@Код_заказа, @Дата_доставки, @Время_доставки, @Адрес_доставки, @p1, @p4);
  2946. SELECT Код_заказа, Дата_доставки, Время_доставки, Адрес_доставки, [Ф.И.О.клиента], [Ф.И.О.курьера] FROM Доставка WHERE (Код_заказа = @Код_заказа)";
  2947. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2948. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_заказа", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2949. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_доставки", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_доставки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2950. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Время_доставки", global::System.Data.SqlDbType.Time, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Время_доставки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2951. 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, "", "", ""));
  2952. 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, "", "", ""));
  2953. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p4", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ф.И.О.курьера", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2954. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  2955. this._adapter.UpdateCommand.Connection = this.Connection;
  2956. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Доставка] SET [Код_заказа] = @Код_заказа, [Дата_доставки] = @Дата_доставки, [Время_доставки] = @Время_доставки, [Адрес_доставки] = @Адрес_доставки, [Ф.И.О.клиента] = @p1, [Ф.И.О.курьера] = @p4 WHERE (([Код_заказа] = @Original_Код_заказа) AND ((@IsNull_Дата_доставки = 1 AND [Дата_доставки] IS NULL) OR ([Дата_доставки] = @Original_Дата_доставки)) AND ((@IsNull_Время_доставки = 1 AND [Время_доставки] IS NULL) OR ([Время_доставки] = @Original_Время_доставки)));
  2957. SELECT Код_заказа, Дата_доставки, Время_доставки, Адрес_доставки, [Ф.И.О.клиента], [Ф.И.О.курьера] FROM Доставка WHERE (Код_заказа = @Код_заказа)";
  2958. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  2959. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_заказа", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2960. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_доставки", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_доставки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2961. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Время_доставки", global::System.Data.SqlDbType.Time, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Время_доставки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2962. 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, "", "", ""));
  2963. 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, "", "", ""));
  2964. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p4", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Ф.И.О.курьера", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2965. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_заказа", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2966. 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, "", "", ""));
  2967. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_доставки", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_доставки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2968. 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, "", "", ""));
  2969. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Время_доставки", global::System.Data.SqlDbType.Time, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Время_доставки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2970. }
  2971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2973. private void InitConnection() {
  2974. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2975. this._connection.ConnectionString = global::Yurevich_InternetProdazhi.Properties.Settings.Default.Yurevich_INTERNET_PRODAZHIConnectionString;
  2976. }
  2977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2979. private void InitCommandCollection() {
  2980. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2981. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2982. this._commandCollection[0].Connection = this.Connection;
  2983. this._commandCollection[0].CommandText = "SELECT Код_заказа, Дата_доставки, Время_доставки, Адрес_доставки, [Ф.И.О.клиента]" +
  2984. ", [Ф.И.О.курьера] FROM dbo.Доставка";
  2985. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2986. }
  2987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2989. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2990. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2991. public virtual int Fill(Yurevich_INTERNET_PRODAZHIDataSet.ДоставкаDataTable dataTable) {
  2992. this.Adapter.SelectCommand = this.CommandCollection[0];
  2993. if ((this.ClearBeforeFill == true)) {
  2994. dataTable.Clear();
  2995. }
  2996. int returnValue = this.Adapter.Fill(dataTable);
  2997. return returnValue;
  2998. }
  2999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3001. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3002. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3003. public virtual Yurevich_INTERNET_PRODAZHIDataSet.ДоставкаDataTable GetData() {
  3004. this.Adapter.SelectCommand = this.CommandCollection[0];
  3005. Yurevich_INTERNET_PRODAZHIDataSet.ДоставкаDataTable dataTable = new Yurevich_INTERNET_PRODAZHIDataSet.ДоставкаDataTable();
  3006. this.Adapter.Fill(dataTable);
  3007. return dataTable;
  3008. }
  3009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3011. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3012. public virtual int Update(Yurevich_INTERNET_PRODAZHIDataSet.ДоставкаDataTable dataTable) {
  3013. return this.Adapter.Update(dataTable);
  3014. }
  3015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3017. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3018. public virtual int Update(Yurevich_INTERNET_PRODAZHIDataSet dataSet) {
  3019. return this.Adapter.Update(dataSet, "Доставка");
  3020. }
  3021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3023. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3024. public virtual int Update(global::System.Data.DataRow dataRow) {
  3025. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3026. dataRow});
  3027. }
  3028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3030. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3031. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3032. return this.Adapter.Update(dataRows);
  3033. }
  3034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3036. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3037. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3038. public virtual int Delete(long Original_Код_заказа, global::System.Nullable<global::System.DateTime> Original_Дата_доставки, global::System.Nullable<global::System.TimeSpan> Original_Время_доставки) {
  3039. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_Код_заказа));
  3040. if ((Original_Дата_доставки.HasValue == true)) {
  3041. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3042. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_Дата_доставки.Value));
  3043. }
  3044. else {
  3045. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3046. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3047. }
  3048. if ((Original_Время_доставки.HasValue == true)) {
  3049. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3050. this.Adapter.DeleteCommand.Parameters[4].Value = ((System.TimeSpan)(Original_Время_доставки.Value));
  3051. }
  3052. else {
  3053. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3054. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3055. }
  3056. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3057. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3058. != global::System.Data.ConnectionState.Open)) {
  3059. this.Adapter.DeleteCommand.Connection.Open();
  3060. }
  3061. try {
  3062. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3063. return returnValue;
  3064. }
  3065. finally {
  3066. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3067. this.Adapter.DeleteCommand.Connection.Close();
  3068. }
  3069. }
  3070. }
  3071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3073. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3074. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3075. public virtual int Insert(long Код_заказа, global::System.Nullable<global::System.DateTime> Дата_доставки, global::System.Nullable<global::System.TimeSpan> Время_доставки, string Адрес_доставки, string p1, string p4) {
  3076. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(Код_заказа));
  3077. if ((Дата_доставки.HasValue == true)) {
  3078. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Дата_доставки.Value));
  3079. }
  3080. else {
  3081. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3082. }
  3083. if ((Время_доставки.HasValue == true)) {
  3084. this.Adapter.InsertCommand.Parameters[2].Value = ((System.TimeSpan)(Время_доставки.Value));
  3085. }
  3086. else {
  3087. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3088. }
  3089. if ((Адрес_доставки == null)) {
  3090. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3091. }
  3092. else {
  3093. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Адрес_доставки));
  3094. }
  3095. if ((p1 == null)) {
  3096. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  3097. }
  3098. else {
  3099. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(p1));
  3100. }
  3101. if ((p4 == null)) {
  3102. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  3103. }
  3104. else {
  3105. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(p4));
  3106. }
  3107. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3108. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3109. != global::System.Data.ConnectionState.Open)) {
  3110. this.Adapter.InsertCommand.Connection.Open();
  3111. }
  3112. try {
  3113. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3114. return returnValue;
  3115. }
  3116. finally {
  3117. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3118. this.Adapter.InsertCommand.Connection.Close();
  3119. }
  3120. }
  3121. }
  3122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3123. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3124. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3125. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3126. public virtual int Update(long Код_заказа, global::System.Nullable<global::System.DateTime> Дата_доставки, global::System.Nullable<global::System.TimeSpan> Время_доставки, string Адрес_доставки, string p1, string p4, long Original_Код_заказа, global::System.Nullable<global::System.DateTime> Original_Дата_доставки, global::System.Nullable<global::System.TimeSpan> Original_Время_доставки) {
  3127. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(Код_заказа));
  3128. if ((Дата_доставки.HasValue == true)) {
  3129. this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(Дата_доставки.Value));
  3130. }
  3131. else {
  3132. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3133. }
  3134. if ((Время_доставки.HasValue == true)) {
  3135. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.TimeSpan)(Время_доставки.Value));
  3136. }
  3137. else {
  3138. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  3139. }
  3140. if ((Адрес_доставки == null)) {
  3141. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  3142. }
  3143. else {
  3144. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Адрес_доставки));
  3145. }
  3146. if ((p1 == null)) {
  3147. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  3148. }
  3149. else {
  3150. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(p1));
  3151. }
  3152. if ((p4 == null)) {
  3153. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  3154. }
  3155. else {
  3156. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(p4));
  3157. }
  3158. this.Adapter.UpdateCommand.Parameters[6].Value = ((long)(Original_Код_заказа));
  3159. if ((Original_Дата_доставки.HasValue == true)) {
  3160. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  3161. this.Adapter.UpdateCommand.Parameters[8].Value = ((System.DateTime)(Original_Дата_доставки.Value));
  3162. }
  3163. else {
  3164. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  3165. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  3166. }
  3167. if ((Original_Время_доставки.HasValue == true)) {
  3168. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  3169. this.Adapter.UpdateCommand.Parameters[10].Value = ((System.TimeSpan)(Original_Время_доставки.Value));
  3170. }
  3171. else {
  3172. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  3173. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  3174. }
  3175. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3176. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3177. != global::System.Data.ConnectionState.Open)) {
  3178. this.Adapter.UpdateCommand.Connection.Open();
  3179. }
  3180. try {
  3181. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3182. return returnValue;
  3183. }
  3184. finally {
  3185. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3186. this.Adapter.UpdateCommand.Connection.Close();
  3187. }
  3188. }
  3189. }
  3190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3191. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3192. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3193. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3194. public virtual int Update(global::System.Nullable<global::System.DateTime> Дата_доставки, global::System.Nullable<global::System.TimeSpan> Время_доставки, string Адрес_доставки, string p1, string p4, long Original_Код_заказа, global::System.Nullable<global::System.DateTime> Original_Дата_доставки, global::System.Nullable<global::System.TimeSpan> Original_Время_доставки) {
  3195. return this.Update(Original_Код_заказа, Дата_доставки, Время_доставки, Адрес_доставки, p1, p4, Original_Код_заказа, Original_Дата_доставки, Original_Время_доставки);
  3196. }
  3197. }
  3198. /// <summary>
  3199. ///Represents the connection and commands used to retrieve and save data.
  3200. ///</summary>
  3201. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3202. [global::System.ComponentModel.ToolboxItem(true)]
  3203. [global::System.ComponentModel.DataObjectAttribute(true)]
  3204. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3205. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3206. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3207. public partial class ЗаказыTableAdapter : global::System.ComponentModel.Component {
  3208. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3209. private global::System.Data.SqlClient.SqlConnection _connection;
  3210. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3211. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3212. private bool _clearBeforeFill;
  3213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3215. public ЗаказыTableAdapter() {
  3216. this.ClearBeforeFill = true;
  3217. }
  3218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3220. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3221. get {
  3222. if ((this._adapter == null)) {
  3223. this.InitAdapter();
  3224. }
  3225. return this._adapter;
  3226. }
  3227. }
  3228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3230. internal global::System.Data.SqlClient.SqlConnection Connection {
  3231. get {
  3232. if ((this._connection == null)) {
  3233. this.InitConnection();
  3234. }
  3235. return this._connection;
  3236. }
  3237. set {
  3238. this._connection = value;
  3239. if ((this.Adapter.InsertCommand != null)) {
  3240. this.Adapter.InsertCommand.Connection = value;
  3241. }
  3242. if ((this.Adapter.DeleteCommand != null)) {
  3243. this.Adapter.DeleteCommand.Connection = value;
  3244. }
  3245. if ((this.Adapter.UpdateCommand != null)) {
  3246. this.Adapter.UpdateCommand.Connection = value;
  3247. }
  3248. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3249. if ((this.CommandCollection[i] != null)) {
  3250. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3251. }
  3252. }
  3253. }
  3254. }
  3255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3257. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3258. get {
  3259. return this._transaction;
  3260. }
  3261. set {
  3262. this._transaction = value;
  3263. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3264. this.CommandCollection[i].Transaction = this._transaction;
  3265. }
  3266. if (((this.Adapter != null)
  3267. && (this.Adapter.DeleteCommand != null))) {
  3268. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3269. }
  3270. if (((this.Adapter != null)
  3271. && (this.Adapter.InsertCommand != null))) {
  3272. this.Adapter.InsertCommand.Transaction = this._transaction;
  3273. }
  3274. if (((this.Adapter != null)
  3275. && (this.Adapter.UpdateCommand != null))) {
  3276. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3277. }
  3278. }
  3279. }
  3280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3282. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3283. get {
  3284. if ((this._commandCollection == null)) {
  3285. this.InitCommandCollection();
  3286. }
  3287. return this._commandCollection;
  3288. }
  3289. }
  3290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3292. public bool ClearBeforeFill {
  3293. get {
  3294. return this._clearBeforeFill;
  3295. }
  3296. set {
  3297. this._clearBeforeFill = value;
  3298. }
  3299. }
  3300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3302. private void InitAdapter() {
  3303. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3304. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3305. tableMapping.SourceTable = "Table";
  3306. tableMapping.DataSetTable = "Заказы";
  3307. tableMapping.ColumnMappings.Add("Код_заказа", "Код_заказа");
  3308. tableMapping.ColumnMappings.Add("Код_магазина", "Код_магазина");
  3309. tableMapping.ColumnMappings.Add("Код_товара", "Код_товара");
  3310. tableMapping.ColumnMappings.Add("Дата_заказа", "Дата_заказа");
  3311. tableMapping.ColumnMappings.Add("Время_заказа", "Время_заказа");
  3312. tableMapping.ColumnMappings.Add("Количество", "Количество");
  3313. tableMapping.ColumnMappings.Add("Ф.И.О.клиента", "Ф_И_О_клиента");
  3314. tableMapping.ColumnMappings.Add("Контактный_телефон", "Контактный_телефон");
  3315. tableMapping.ColumnMappings.Add("Подтверждение_заказа", "Подтверждение_заказа");
  3316. this._adapter.TableMappings.Add(tableMapping);
  3317. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3318. this._adapter.DeleteCommand.Connection = this.Connection;
  3319. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Заказы] 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_Дата_заказа)) AND ((@IsNull_Время_заказа = 1 AND [Время_заказа] IS NULL) OR ([Время_заказа] = @Original_Время_заказа)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ((@p3 = 1 AND [Ф.И.О.клиента] IS NULL) OR ([Ф.И.О.клиента] = @p2)) AND ((@IsNull_Контактный_телефон = 1 AND [Контактный_телефон] IS NULL) OR ([Контактный_телефон] = @Original_Контактный_телефон)) AND ((@IsNull_Подтверждение_заказа = 1 AND [Подтверждение_заказа] IS NULL) OR ([Подтверждение_заказа] = @Original_Подтверждение_заказа)))";
  3320. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3321. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_заказа", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3322. 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, "", "", ""));
  3323. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_магазина", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_магазина", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3324. 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, "", "", ""));
  3325. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_товара", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3326. 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, "", "", ""));
  3327. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_заказа", global::System.Data.SqlDbType.DateTimeOffset, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3328. 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, "", "", ""));
  3329. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Время_заказа", global::System.Data.SqlDbType.Time, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Время_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3330. 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, "", "", ""));
  3331. 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, "", "", ""));
  3332. 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, "", "", ""));
  3333. 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, "", "", ""));
  3334. 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, "", "", ""));
  3335. 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, "", "", ""));
  3336. 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, "", "", ""));
  3337. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Подтверждение_заказа", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Подтверждение_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3338. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3339. this._adapter.InsertCommand.Connection = this.Connection;
  3340. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Заказы] ([Код_магазина], [Код_товара], [Дата_заказа], [Время_заказа], [Количество], [Ф.И.О.клиента], [Контактный_телефон], [Подтверждение_заказа]) VALUES (@Код_магазина, @Код_товара, @Дата_заказа, @Время_заказа, @Количество, @p1, @Контактный_телефон, @Подтверждение_заказа);
  3341. SELECT Код_заказа, Код_магазина, Код_товара, Дата_заказа, Время_заказа, Количество, [Ф.И.О.клиента], Контактный_телефон, Подтверждение_заказа FROM Заказы WHERE (Код_заказа = SCOPE_IDENTITY())";
  3342. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3343. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_магазина", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_магазина", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3344. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_товара", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3345. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_заказа", global::System.Data.SqlDbType.DateTimeOffset, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3346. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Время_заказа", global::System.Data.SqlDbType.Time, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Время_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3347. 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, "", "", ""));
  3348. 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, "", "", ""));
  3349. 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, "", "", ""));
  3350. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Подтверждение_заказа", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Подтверждение_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3351. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3352. this._adapter.UpdateCommand.Connection = this.Connection;
  3353. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Заказы] SET [Код_магазина] = @Код_магазина, [Код_товара] = @Код_товара, [Дата_заказа] = @Дата_заказа, [Время_заказа] = @Время_заказа, [Количество] = @Количество, [Ф.И.О.клиента] = @p1, [Контактный_телефон] = @Контактный_телефон, [Подтверждение_заказа] = @Подтверждение_заказа 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_Дата_заказа)) AND ((@IsNull_Время_заказа = 1 AND [Время_заказа] IS NULL) OR ([Время_заказа] = @Original_Время_заказа)) AND ((@IsNull_Количество = 1 AND [Количество] IS NULL) OR ([Количество] = @Original_Количество)) AND ((@p3 = 1 AND [Ф.И.О.клиента] IS NULL) OR ([Ф.И.О.клиента] = @p2)) AND ((@IsNull_Контактный_телефон = 1 AND [Контактный_телефон] IS NULL) OR ([Контактный_телефон] = @Original_Контактный_телефон)) AND ((@IsNull_Подтверждение_заказа = 1 AND [Подтверждение_заказа] IS NULL) OR ([Подтверждение_заказа] = @Original_Подтверждение_заказа)));
  3354. SELECT Код_заказа, Код_магазина, Код_товара, Дата_заказа, Время_заказа, Количество, [Ф.И.О.клиента], Контактный_телефон, Подтверждение_заказа FROM Заказы WHERE (Код_заказа = @Код_заказа)";
  3355. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3356. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_магазина", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_магазина", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3357. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_товара", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3358. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Дата_заказа", global::System.Data.SqlDbType.DateTimeOffset, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3359. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Время_заказа", global::System.Data.SqlDbType.Time, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Время_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3360. 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, "", "", ""));
  3361. 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, "", "", ""));
  3362. 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, "", "", ""));
  3363. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Подтверждение_заказа", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Подтверждение_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3364. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_заказа", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3365. 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, "", "", ""));
  3366. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_магазина", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_магазина", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3367. 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, "", "", ""));
  3368. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_товара", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3369. 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, "", "", ""));
  3370. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Дата_заказа", global::System.Data.SqlDbType.DateTimeOffset, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Дата_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3371. 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, "", "", ""));
  3372. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Время_заказа", global::System.Data.SqlDbType.Time, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Время_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3373. 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, "", "", ""));
  3374. 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, "", "", ""));
  3375. 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, "", "", ""));
  3376. 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, "", "", ""));
  3377. 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, "", "", ""));
  3378. 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, "", "", ""));
  3379. 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, "", "", ""));
  3380. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Подтверждение_заказа", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Подтверждение_заказа", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3381. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_заказа", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "Код_заказа", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3382. }
  3383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3385. private void InitConnection() {
  3386. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3387. this._connection.ConnectionString = global::Yurevich_InternetProdazhi.Properties.Settings.Default.Yurevich_INTERNET_PRODAZHIConnectionString;
  3388. }
  3389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3391. private void InitCommandCollection() {
  3392. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3393. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3394. this._commandCollection[0].Connection = this.Connection;
  3395. this._commandCollection[0].CommandText = "SELECT Код_заказа, Код_магазина, Код_товара, Дата_заказа, Время_заказа, Количеств" +
  3396. "о, [Ф.И.О.клиента], Контактный_телефон, Подтверждение_заказа FROM dbo.Заказы";
  3397. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3398. }
  3399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3401. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3402. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3403. public virtual int Fill(Yurevich_INTERNET_PRODAZHIDataSet.ЗаказыDataTable dataTable) {
  3404. this.Adapter.SelectCommand = this.CommandCollection[0];
  3405. if ((this.ClearBeforeFill == true)) {
  3406. dataTable.Clear();
  3407. }
  3408. int returnValue = this.Adapter.Fill(dataTable);
  3409. return returnValue;
  3410. }
  3411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3413. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3414. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3415. public virtual Yurevich_INTERNET_PRODAZHIDataSet.ЗаказыDataTable GetData() {
  3416. this.Adapter.SelectCommand = this.CommandCollection[0];
  3417. Yurevich_INTERNET_PRODAZHIDataSet.ЗаказыDataTable dataTable = new Yurevich_INTERNET_PRODAZHIDataSet.ЗаказыDataTable();
  3418. this.Adapter.Fill(dataTable);
  3419. return dataTable;
  3420. }
  3421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3423. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3424. public virtual int Update(Yurevich_INTERNET_PRODAZHIDataSet.ЗаказыDataTable dataTable) {
  3425. return this.Adapter.Update(dataTable);
  3426. }
  3427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3429. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3430. public virtual int Update(Yurevich_INTERNET_PRODAZHIDataSet dataSet) {
  3431. return this.Adapter.Update(dataSet, "Заказы");
  3432. }
  3433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3435. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3436. public virtual int Update(global::System.Data.DataRow dataRow) {
  3437. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3438. dataRow});
  3439. }
  3440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3442. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3443. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3444. return this.Adapter.Update(dataRows);
  3445. }
  3446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3448. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3449. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3450. public virtual int Delete(long Original_Код_заказа, global::System.Nullable<long> Original_Код_магазина, global::System.Nullable<long> Original_Код_товара, global::System.Nullable<global::System.DateTimeOffset> Original_Дата_заказа, global::System.Nullable<global::System.TimeSpan> Original_Время_заказа, string Original_Количество, string p2, string Original_Контактный_телефон, global::System.Nullable<bool> Original_Подтверждение_заказа) {
  3451. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_Код_заказа));
  3452. if ((Original_Код_магазина.HasValue == true)) {
  3453. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3454. this.Adapter.DeleteCommand.Parameters[2].Value = ((long)(Original_Код_магазина.Value));
  3455. }
  3456. else {
  3457. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3458. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3459. }
  3460. if ((Original_Код_товара.HasValue == true)) {
  3461. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  3462. this.Adapter.DeleteCommand.Parameters[4].Value = ((long)(Original_Код_товара.Value));
  3463. }
  3464. else {
  3465. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  3466. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  3467. }
  3468. if ((Original_Дата_заказа.HasValue == true)) {
  3469. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  3470. this.Adapter.DeleteCommand.Parameters[6].Value = ((System.DateTimeOffset)(Original_Дата_заказа.Value));
  3471. }
  3472. else {
  3473. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  3474. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  3475. }
  3476. if ((Original_Время_заказа.HasValue == true)) {
  3477. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  3478. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.TimeSpan)(Original_Время_заказа.Value));
  3479. }
  3480. else {
  3481. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  3482. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  3483. }
  3484. if ((Original_Количество == null)) {
  3485. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  3486. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  3487. }
  3488. else {
  3489. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  3490. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Количество));
  3491. }
  3492. if ((p2 == null)) {
  3493. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  3494. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  3495. }
  3496. else {
  3497. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  3498. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(p2));
  3499. }
  3500. if ((Original_Контактный_телефон == null)) {
  3501. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  3502. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  3503. }
  3504. else {
  3505. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  3506. this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_Контактный_телефон));
  3507. }
  3508. if ((Original_Подтверждение_заказа.HasValue == true)) {
  3509. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
  3510. this.Adapter.DeleteCommand.Parameters[16].Value = ((bool)(Original_Подтверждение_заказа.Value));
  3511. }
  3512. else {
  3513. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
  3514. this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
  3515. }
  3516. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3517. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3518. != global::System.Data.ConnectionState.Open)) {
  3519. this.Adapter.DeleteCommand.Connection.Open();
  3520. }
  3521. try {
  3522. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3523. return returnValue;
  3524. }
  3525. finally {
  3526. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3527. this.Adapter.DeleteCommand.Connection.Close();
  3528. }
  3529. }
  3530. }
  3531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3533. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3534. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3535. public virtual int Insert(global::System.Nullable<long> Код_магазина, global::System.Nullable<long> Код_товара, global::System.Nullable<global::System.DateTimeOffset> Дата_заказа, global::System.Nullable<global::System.TimeSpan> Время_заказа, string Количество, string p1, string Контактный_телефон, global::System.Nullable<bool> Подтверждение_заказа) {
  3536. if ((Код_магазина.HasValue == true)) {
  3537. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(Код_магазина.Value));
  3538. }
  3539. else {
  3540. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  3541. }
  3542. if ((Код_товара.HasValue == true)) {
  3543. this.Adapter.InsertCommand.Parameters[1].Value = ((long)(Код_товара.Value));
  3544. }
  3545. else {
  3546. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3547. }
  3548. if ((Дата_заказа.HasValue == true)) {
  3549. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTimeOffset)(Дата_заказа.Value));
  3550. }
  3551. else {
  3552. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  3553. }
  3554. if ((Время_заказа.HasValue == true)) {
  3555. this.Adapter.InsertCommand.Parameters[3].Value = ((System.TimeSpan)(Время_заказа.Value));
  3556. }
  3557. else {
  3558. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3559. }
  3560. if ((Количество == null)) {
  3561. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  3562. }
  3563. else {
  3564. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Количество));
  3565. }
  3566. if ((p1 == null)) {
  3567. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  3568. }
  3569. else {
  3570. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(p1));
  3571. }
  3572. if ((Контактный_телефон == null)) {
  3573. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  3574. }
  3575. else {
  3576. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Контактный_телефон));
  3577. }
  3578. if ((Подтверждение_заказа.HasValue == true)) {
  3579. this.Adapter.InsertCommand.Parameters[7].Value = ((bool)(Подтверждение_заказа.Value));
  3580. }
  3581. else {
  3582. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  3583. }
  3584. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3585. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3586. != global::System.Data.ConnectionState.Open)) {
  3587. this.Adapter.InsertCommand.Connection.Open();
  3588. }
  3589. try {
  3590. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3591. return returnValue;
  3592. }
  3593. finally {
  3594. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3595. this.Adapter.InsertCommand.Connection.Close();
  3596. }
  3597. }
  3598. }
  3599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3601. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3602. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3603. public virtual int Update(
  3604. global::System.Nullable<long> Код_магазина,
  3605. global::System.Nullable<long> Код_товара,
  3606. global::System.Nullable<global::System.DateTimeOffset> Дата_заказа,
  3607. global::System.Nullable<global::System.TimeSpan> Время_заказа,
  3608. string Количество,
  3609. string p1,
  3610. string Контактный_телефон,
  3611. global::System.Nullable<bool> Подтверждение_заказа,
  3612. long Original_Код_заказа,
  3613. global::System.Nullable<long> Original_Код_магазина,
  3614. global::System.Nullable<long> Original_Код_товара,
  3615. global::System.Nullable<global::System.DateTimeOffset> Original_Дата_заказа,
  3616. global::System.Nullable<global::System.TimeSpan> Original_Время_заказа,
  3617. string Original_Количество,
  3618. string p2,
  3619. string Original_Контактный_телефон,
  3620. global::System.Nullable<bool> Original_Подтверждение_заказа,
  3621. long Код_заказа) {
  3622. if ((Код_магазина.HasValue == true)) {
  3623. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(Код_магазина.Value));
  3624. }
  3625. else {
  3626. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  3627. }
  3628. if ((Код_товара.HasValue == true)) {
  3629. this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(Код_товара.Value));
  3630. }
  3631. else {
  3632. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3633. }
  3634. if ((Дата_заказа.HasValue == true)) {
  3635. this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTimeOffset)(Дата_заказа.Value));
  3636. }
  3637. else {
  3638. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  3639. }
  3640. if ((Время_заказа.HasValue == true)) {
  3641. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.TimeSpan)(Время_заказа.Value));
  3642. }
  3643. else {
  3644. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  3645. }
  3646. if ((Количество == null)) {
  3647. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  3648. }
  3649. else {
  3650. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Количество));
  3651. }
  3652. if ((p1 == null)) {
  3653. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  3654. }
  3655. else {
  3656. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(p1));
  3657. }
  3658. if ((Контактный_телефон == null)) {
  3659. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  3660. }
  3661. else {
  3662. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Контактный_телефон));
  3663. }
  3664. if ((Подтверждение_заказа.HasValue == true)) {
  3665. this.Adapter.UpdateCommand.Parameters[7].Value = ((bool)(Подтверждение_заказа.Value));
  3666. }
  3667. else {
  3668. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  3669. }
  3670. this.Adapter.UpdateCommand.Parameters[8].Value = ((long)(Original_Код_заказа));
  3671. if ((Original_Код_магазина.HasValue == true)) {
  3672. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  3673. this.Adapter.UpdateCommand.Parameters[10].Value = ((long)(Original_Код_магазина.Value));
  3674. }
  3675. else {
  3676. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  3677. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  3678. }
  3679. if ((Original_Код_товара.HasValue == true)) {
  3680. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  3681. this.Adapter.UpdateCommand.Parameters[12].Value = ((long)(Original_Код_товара.Value));
  3682. }
  3683. else {
  3684. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  3685. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  3686. }
  3687. if ((Original_Дата_заказа.HasValue == true)) {
  3688. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  3689. this.Adapter.UpdateCommand.Parameters[14].Value = ((System.DateTimeOffset)(Original_Дата_заказа.Value));
  3690. }
  3691. else {
  3692. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  3693. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  3694. }
  3695. if ((Original_Время_заказа.HasValue == true)) {
  3696. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  3697. this.Adapter.UpdateCommand.Parameters[16].Value = ((System.TimeSpan)(Original_Время_заказа.Value));
  3698. }
  3699. else {
  3700. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  3701. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  3702. }
  3703. if ((Original_Количество == null)) {
  3704. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  3705. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  3706. }
  3707. else {
  3708. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  3709. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Количество));
  3710. }
  3711. if ((p2 == null)) {
  3712. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
  3713. this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
  3714. }
  3715. else {
  3716. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
  3717. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(p2));
  3718. }
  3719. if ((Original_Контактный_телефон == null)) {
  3720. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
  3721. this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
  3722. }
  3723. else {
  3724. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  3725. this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_Контактный_телефон));
  3726. }
  3727. if ((Original_Подтверждение_заказа.HasValue == true)) {
  3728. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
  3729. this.Adapter.UpdateCommand.Parameters[24].Value = ((bool)(Original_Подтверждение_заказа.Value));
  3730. }
  3731. else {
  3732. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
  3733. this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
  3734. }
  3735. this.Adapter.UpdateCommand.Parameters[25].Value = ((long)(Код_заказа));
  3736. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3737. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3738. != global::System.Data.ConnectionState.Open)) {
  3739. this.Adapter.UpdateCommand.Connection.Open();
  3740. }
  3741. try {
  3742. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3743. return returnValue;
  3744. }
  3745. finally {
  3746. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3747. this.Adapter.UpdateCommand.Connection.Close();
  3748. }
  3749. }
  3750. }
  3751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3753. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3754. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3755. public virtual int Update(
  3756. global::System.Nullable<long> Код_магазина,
  3757. global::System.Nullable<long> Код_товара,
  3758. global::System.Nullable<global::System.DateTimeOffset> Дата_заказа,
  3759. global::System.Nullable<global::System.TimeSpan> Время_заказа,
  3760. string Количество,
  3761. string p1,
  3762. string Контактный_телефон,
  3763. global::System.Nullable<bool> Подтверждение_заказа,
  3764. long Original_Код_заказа,
  3765. global::System.Nullable<long> Original_Код_магазина,
  3766. global::System.Nullable<long> Original_Код_товара,
  3767. global::System.Nullable<global::System.DateTimeOffset> Original_Дата_заказа,
  3768. global::System.Nullable<global::System.TimeSpan> Original_Время_заказа,
  3769. string Original_Количество,
  3770. string p2,
  3771. string Original_Контактный_телефон,
  3772. global::System.Nullable<bool> Original_Подтверждение_заказа) {
  3773. return this.Update(Код_магазина, Код_товара, Дата_заказа, Время_заказа, Количество, p1, Контактный_телефон, Подтверждение_заказа, Original_Код_заказа, Original_Код_магазина, Original_Код_товара, Original_Дата_заказа, Original_Время_заказа, Original_Количество, p2, Original_Контактный_телефон, Original_Подтверждение_заказа, Original_Код_заказа);
  3774. }
  3775. }
  3776. /// <summary>
  3777. ///Represents the connection and commands used to retrieve and save data.
  3778. ///</summary>
  3779. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3780. [global::System.ComponentModel.ToolboxItem(true)]
  3781. [global::System.ComponentModel.DataObjectAttribute(true)]
  3782. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3783. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3784. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3785. public partial class Интернет_магазиныTableAdapter : global::System.ComponentModel.Component {
  3786. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3787. private global::System.Data.SqlClient.SqlConnection _connection;
  3788. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3789. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3790. private bool _clearBeforeFill;
  3791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3793. public Интернет_магазиныTableAdapter() {
  3794. this.ClearBeforeFill = true;
  3795. }
  3796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3798. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3799. get {
  3800. if ((this._adapter == null)) {
  3801. this.InitAdapter();
  3802. }
  3803. return this._adapter;
  3804. }
  3805. }
  3806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3808. internal global::System.Data.SqlClient.SqlConnection Connection {
  3809. get {
  3810. if ((this._connection == null)) {
  3811. this.InitConnection();
  3812. }
  3813. return this._connection;
  3814. }
  3815. set {
  3816. this._connection = value;
  3817. if ((this.Adapter.InsertCommand != null)) {
  3818. this.Adapter.InsertCommand.Connection = value;
  3819. }
  3820. if ((this.Adapter.DeleteCommand != null)) {
  3821. this.Adapter.DeleteCommand.Connection = value;
  3822. }
  3823. if ((this.Adapter.UpdateCommand != null)) {
  3824. this.Adapter.UpdateCommand.Connection = value;
  3825. }
  3826. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3827. if ((this.CommandCollection[i] != null)) {
  3828. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3829. }
  3830. }
  3831. }
  3832. }
  3833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3835. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3836. get {
  3837. return this._transaction;
  3838. }
  3839. set {
  3840. this._transaction = value;
  3841. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3842. this.CommandCollection[i].Transaction = this._transaction;
  3843. }
  3844. if (((this.Adapter != null)
  3845. && (this.Adapter.DeleteCommand != null))) {
  3846. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3847. }
  3848. if (((this.Adapter != null)
  3849. && (this.Adapter.InsertCommand != null))) {
  3850. this.Adapter.InsertCommand.Transaction = this._transaction;
  3851. }
  3852. if (((this.Adapter != null)
  3853. && (this.Adapter.UpdateCommand != null))) {
  3854. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3855. }
  3856. }
  3857. }
  3858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3860. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3861. get {
  3862. if ((this._commandCollection == null)) {
  3863. this.InitCommandCollection();
  3864. }
  3865. return this._commandCollection;
  3866. }
  3867. }
  3868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3870. public bool ClearBeforeFill {
  3871. get {
  3872. return this._clearBeforeFill;
  3873. }
  3874. set {
  3875. this._clearBeforeFill = value;
  3876. }
  3877. }
  3878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3880. private void InitAdapter() {
  3881. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3882. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3883. tableMapping.SourceTable = "Table";
  3884. tableMapping.DataSetTable = "Интернет-магазины";
  3885. tableMapping.ColumnMappings.Add("Код_магазина", "Код_магазина");
  3886. tableMapping.ColumnMappings.Add("Электронный_адрес", "Электронный_адрес");
  3887. tableMapping.ColumnMappings.Add("Оплата_доставки", "Оплата_доставки");
  3888. this._adapter.TableMappings.Add(tableMapping);
  3889. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3890. this._adapter.DeleteCommand.Connection = this.Connection;
  3891. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Интернет-магазины] WHERE (([Код_магазина] = @Original_Код_мага" +
  3892. "зина) AND ((@IsNull_Оплата_доставки = 1 AND [Оплата_доставки] IS NULL) OR ([Опла" +
  3893. "та_доставки] = @Original_Оплата_доставки)))";
  3894. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3895. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_магазина", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_магазина", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3896. 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, "", "", ""));
  3897. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Оплата_доставки", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оплата_доставки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3898. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3899. this._adapter.InsertCommand.Connection = this.Connection;
  3900. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Интернет-магазины] ([Электронный_адрес], [Оплата_доставки]) VA" +
  3901. "LUES (@Электронный_адрес, @Оплата_доставки);\r\nSELECT Код_магазина, Электронный_а" +
  3902. "дрес, Оплата_доставки FROM [Интернет-магазины] WHERE (Код_магазина = SCOPE_IDENT" +
  3903. "ITY())";
  3904. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3905. 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, "", "", ""));
  3906. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оплата_доставки", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оплата_доставки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3907. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3908. this._adapter.UpdateCommand.Connection = this.Connection;
  3909. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Интернет-магазины] SET [Электронный_адрес] = @Электронный_адрес, [Оплата_доставки] = @Оплата_доставки WHERE (([Код_магазина] = @Original_Код_магазина) AND ((@IsNull_Оплата_доставки = 1 AND [Оплата_доставки] IS NULL) OR ([Оплата_доставки] = @Original_Оплата_доставки)));
  3910. SELECT Код_магазина, Электронный_адрес, Оплата_доставки FROM [Интернет-магазины] WHERE (Код_магазина = @Код_магазина)";
  3911. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3912. 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, "", "", ""));
  3913. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Оплата_доставки", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оплата_доставки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3914. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_магазина", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_магазина", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3915. 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, "", "", ""));
  3916. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Оплата_доставки", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Оплата_доставки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3917. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_магазина", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "Код_магазина", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3918. }
  3919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3921. private void InitConnection() {
  3922. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3923. this._connection.ConnectionString = global::Yurevich_InternetProdazhi.Properties.Settings.Default.Yurevich_INTERNET_PRODAZHIConnectionString;
  3924. }
  3925. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3926. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3927. private void InitCommandCollection() {
  3928. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3929. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3930. this._commandCollection[0].Connection = this.Connection;
  3931. this._commandCollection[0].CommandText = "SELECT Код_магазина, Электронный_адрес, Оплата_доставки FROM dbo.[Интернет-магази" +
  3932. "ны]";
  3933. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3934. }
  3935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3937. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3938. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3939. public virtual int Fill(Yurevich_INTERNET_PRODAZHIDataSet._Интернет_магазиныDataTable dataTable) {
  3940. this.Adapter.SelectCommand = this.CommandCollection[0];
  3941. if ((this.ClearBeforeFill == true)) {
  3942. dataTable.Clear();
  3943. }
  3944. int returnValue = this.Adapter.Fill(dataTable);
  3945. return returnValue;
  3946. }
  3947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3949. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3950. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3951. public virtual Yurevich_INTERNET_PRODAZHIDataSet._Интернет_магазиныDataTable GetData() {
  3952. this.Adapter.SelectCommand = this.CommandCollection[0];
  3953. Yurevich_INTERNET_PRODAZHIDataSet._Интернет_магазиныDataTable dataTable = new Yurevich_INTERNET_PRODAZHIDataSet._Интернет_магазиныDataTable();
  3954. this.Adapter.Fill(dataTable);
  3955. return dataTable;
  3956. }
  3957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3959. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3960. public virtual int Update(Yurevich_INTERNET_PRODAZHIDataSet._Интернет_магазиныDataTable dataTable) {
  3961. return this.Adapter.Update(dataTable);
  3962. }
  3963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3965. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3966. public virtual int Update(Yurevich_INTERNET_PRODAZHIDataSet dataSet) {
  3967. return this.Adapter.Update(dataSet, "Интернет-магазины");
  3968. }
  3969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3971. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3972. public virtual int Update(global::System.Data.DataRow dataRow) {
  3973. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3974. dataRow});
  3975. }
  3976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3978. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3979. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3980. return this.Adapter.Update(dataRows);
  3981. }
  3982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3984. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3985. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3986. public virtual int Delete(long Original_Код_магазина, global::System.Nullable<bool> Original_Оплата_доставки) {
  3987. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_Код_магазина));
  3988. if ((Original_Оплата_доставки.HasValue == true)) {
  3989. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  3990. this.Adapter.DeleteCommand.Parameters[2].Value = ((bool)(Original_Оплата_доставки.Value));
  3991. }
  3992. else {
  3993. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  3994. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  3995. }
  3996. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3997. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3998. != global::System.Data.ConnectionState.Open)) {
  3999. this.Adapter.DeleteCommand.Connection.Open();
  4000. }
  4001. try {
  4002. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4003. return returnValue;
  4004. }
  4005. finally {
  4006. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4007. this.Adapter.DeleteCommand.Connection.Close();
  4008. }
  4009. }
  4010. }
  4011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4012. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4013. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4014. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4015. public virtual int Insert(string Электронный_адрес, global::System.Nullable<bool> Оплата_доставки) {
  4016. if ((Электронный_адрес == null)) {
  4017. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4018. }
  4019. else {
  4020. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Электронный_адрес));
  4021. }
  4022. if ((Оплата_доставки.HasValue == true)) {
  4023. this.Adapter.InsertCommand.Parameters[1].Value = ((bool)(Оплата_доставки.Value));
  4024. }
  4025. else {
  4026. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4027. }
  4028. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4029. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4030. != global::System.Data.ConnectionState.Open)) {
  4031. this.Adapter.InsertCommand.Connection.Open();
  4032. }
  4033. try {
  4034. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4035. return returnValue;
  4036. }
  4037. finally {
  4038. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4039. this.Adapter.InsertCommand.Connection.Close();
  4040. }
  4041. }
  4042. }
  4043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4045. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4046. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4047. public virtual int Update(string Электронный_адрес, global::System.Nullable<bool> Оплата_доставки, long Original_Код_магазина, global::System.Nullable<bool> Original_Оплата_доставки, long Код_магазина) {
  4048. if ((Электронный_адрес == null)) {
  4049. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4050. }
  4051. else {
  4052. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Электронный_адрес));
  4053. }
  4054. if ((Оплата_доставки.HasValue == true)) {
  4055. this.Adapter.UpdateCommand.Parameters[1].Value = ((bool)(Оплата_доставки.Value));
  4056. }
  4057. else {
  4058. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4059. }
  4060. this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(Original_Код_магазина));
  4061. if ((Original_Оплата_доставки.HasValue == true)) {
  4062. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  4063. this.Adapter.UpdateCommand.Parameters[4].Value = ((bool)(Original_Оплата_доставки.Value));
  4064. }
  4065. else {
  4066. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  4067. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4068. }
  4069. this.Adapter.UpdateCommand.Parameters[5].Value = ((long)(Код_магазина));
  4070. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4071. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4072. != global::System.Data.ConnectionState.Open)) {
  4073. this.Adapter.UpdateCommand.Connection.Open();
  4074. }
  4075. try {
  4076. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4077. return returnValue;
  4078. }
  4079. finally {
  4080. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4081. this.Adapter.UpdateCommand.Connection.Close();
  4082. }
  4083. }
  4084. }
  4085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4087. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4088. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4089. public virtual int Update(string Электронный_адрес, global::System.Nullable<bool> Оплата_доставки, long Original_Код_магазина, global::System.Nullable<bool> Original_Оплата_доставки) {
  4090. return this.Update(Электронный_адрес, Оплата_доставки, Original_Код_магазина, Original_Оплата_доставки, Original_Код_магазина);
  4091. }
  4092. }
  4093. /// <summary>
  4094. ///Represents the connection and commands used to retrieve and save data.
  4095. ///</summary>
  4096. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4097. [global::System.ComponentModel.ToolboxItem(true)]
  4098. [global::System.ComponentModel.DataObjectAttribute(true)]
  4099. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4100. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4101. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4102. public partial class Магазины_ТоварыTableAdapter : global::System.ComponentModel.Component {
  4103. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4104. private global::System.Data.SqlClient.SqlConnection _connection;
  4105. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4106. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4107. private bool _clearBeforeFill;
  4108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4110. public Магазины_ТоварыTableAdapter() {
  4111. this.ClearBeforeFill = true;
  4112. }
  4113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4115. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4116. get {
  4117. if ((this._adapter == null)) {
  4118. this.InitAdapter();
  4119. }
  4120. return this._adapter;
  4121. }
  4122. }
  4123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4125. internal global::System.Data.SqlClient.SqlConnection Connection {
  4126. get {
  4127. if ((this._connection == null)) {
  4128. this.InitConnection();
  4129. }
  4130. return this._connection;
  4131. }
  4132. set {
  4133. this._connection = value;
  4134. if ((this.Adapter.InsertCommand != null)) {
  4135. this.Adapter.InsertCommand.Connection = value;
  4136. }
  4137. if ((this.Adapter.DeleteCommand != null)) {
  4138. this.Adapter.DeleteCommand.Connection = value;
  4139. }
  4140. if ((this.Adapter.UpdateCommand != null)) {
  4141. this.Adapter.UpdateCommand.Connection = value;
  4142. }
  4143. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4144. if ((this.CommandCollection[i] != null)) {
  4145. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4146. }
  4147. }
  4148. }
  4149. }
  4150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4152. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4153. get {
  4154. return this._transaction;
  4155. }
  4156. set {
  4157. this._transaction = value;
  4158. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4159. this.CommandCollection[i].Transaction = this._transaction;
  4160. }
  4161. if (((this.Adapter != null)
  4162. && (this.Adapter.DeleteCommand != null))) {
  4163. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4164. }
  4165. if (((this.Adapter != null)
  4166. && (this.Adapter.InsertCommand != null))) {
  4167. this.Adapter.InsertCommand.Transaction = this._transaction;
  4168. }
  4169. if (((this.Adapter != null)
  4170. && (this.Adapter.UpdateCommand != null))) {
  4171. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4172. }
  4173. }
  4174. }
  4175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4177. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4178. get {
  4179. if ((this._commandCollection == null)) {
  4180. this.InitCommandCollection();
  4181. }
  4182. return this._commandCollection;
  4183. }
  4184. }
  4185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4187. public bool ClearBeforeFill {
  4188. get {
  4189. return this._clearBeforeFill;
  4190. }
  4191. set {
  4192. this._clearBeforeFill = value;
  4193. }
  4194. }
  4195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4197. private void InitAdapter() {
  4198. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4199. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4200. tableMapping.SourceTable = "Table";
  4201. tableMapping.DataSetTable = "Магазины/Товары";
  4202. tableMapping.ColumnMappings.Add("Код магазина", "Код магазина");
  4203. tableMapping.ColumnMappings.Add("Код товара", "Код товара");
  4204. this._adapter.TableMappings.Add(tableMapping);
  4205. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4206. this._adapter.InsertCommand.Connection = this.Connection;
  4207. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Магазины/Товары] ([Код магазина], [Код товара]) VALUES (@Код_м" +
  4208. "агазина, @Код_товара)";
  4209. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4210. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_магазина", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код магазина", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4211. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_товара", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4212. }
  4213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4215. private void InitConnection() {
  4216. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4217. this._connection.ConnectionString = global::Yurevich_InternetProdazhi.Properties.Settings.Default.Yurevich_INTERNET_PRODAZHIConnectionString;
  4218. }
  4219. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4220. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4221. private void InitCommandCollection() {
  4222. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4223. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4224. this._commandCollection[0].Connection = this.Connection;
  4225. this._commandCollection[0].CommandText = "SELECT [Код магазина], [Код товара] FROM dbo.[Магазины/Товары]";
  4226. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4227. }
  4228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4230. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4231. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4232. public virtual int Fill(Yurevich_INTERNET_PRODAZHIDataSet._Магазины_ТоварыDataTable dataTable) {
  4233. this.Adapter.SelectCommand = this.CommandCollection[0];
  4234. if ((this.ClearBeforeFill == true)) {
  4235. dataTable.Clear();
  4236. }
  4237. int returnValue = this.Adapter.Fill(dataTable);
  4238. return returnValue;
  4239. }
  4240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4242. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4243. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4244. public virtual Yurevich_INTERNET_PRODAZHIDataSet._Магазины_ТоварыDataTable GetData() {
  4245. this.Adapter.SelectCommand = this.CommandCollection[0];
  4246. Yurevich_INTERNET_PRODAZHIDataSet._Магазины_ТоварыDataTable dataTable = new Yurevich_INTERNET_PRODAZHIDataSet._Магазины_ТоварыDataTable();
  4247. this.Adapter.Fill(dataTable);
  4248. return dataTable;
  4249. }
  4250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4252. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4253. public virtual int Update(Yurevich_INTERNET_PRODAZHIDataSet._Магазины_ТоварыDataTable dataTable) {
  4254. return this.Adapter.Update(dataTable);
  4255. }
  4256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4258. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4259. public virtual int Update(Yurevich_INTERNET_PRODAZHIDataSet dataSet) {
  4260. return this.Adapter.Update(dataSet, "Магазины/Товары");
  4261. }
  4262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4264. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4265. public virtual int Update(global::System.Data.DataRow dataRow) {
  4266. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4267. dataRow});
  4268. }
  4269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4271. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4272. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4273. return this.Adapter.Update(dataRows);
  4274. }
  4275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4277. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4278. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4279. public virtual int Insert(global::System.Nullable<long> Код_магазина, global::System.Nullable<long> Код_товара) {
  4280. if ((Код_магазина.HasValue == true)) {
  4281. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(Код_магазина.Value));
  4282. }
  4283. else {
  4284. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4285. }
  4286. if ((Код_товара.HasValue == true)) {
  4287. this.Adapter.InsertCommand.Parameters[1].Value = ((long)(Код_товара.Value));
  4288. }
  4289. else {
  4290. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4291. }
  4292. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4293. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4294. != global::System.Data.ConnectionState.Open)) {
  4295. this.Adapter.InsertCommand.Connection.Open();
  4296. }
  4297. try {
  4298. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4299. return returnValue;
  4300. }
  4301. finally {
  4302. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4303. this.Adapter.InsertCommand.Connection.Close();
  4304. }
  4305. }
  4306. }
  4307. }
  4308. /// <summary>
  4309. ///Represents the connection and commands used to retrieve and save data.
  4310. ///</summary>
  4311. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4312. [global::System.ComponentModel.ToolboxItem(true)]
  4313. [global::System.ComponentModel.DataObjectAttribute(true)]
  4314. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  4315. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4316. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4317. public partial class ТоварыTableAdapter : global::System.ComponentModel.Component {
  4318. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  4319. private global::System.Data.SqlClient.SqlConnection _connection;
  4320. private global::System.Data.SqlClient.SqlTransaction _transaction;
  4321. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  4322. private bool _clearBeforeFill;
  4323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4325. public ТоварыTableAdapter() {
  4326. this.ClearBeforeFill = true;
  4327. }
  4328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4330. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  4331. get {
  4332. if ((this._adapter == null)) {
  4333. this.InitAdapter();
  4334. }
  4335. return this._adapter;
  4336. }
  4337. }
  4338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4340. internal global::System.Data.SqlClient.SqlConnection Connection {
  4341. get {
  4342. if ((this._connection == null)) {
  4343. this.InitConnection();
  4344. }
  4345. return this._connection;
  4346. }
  4347. set {
  4348. this._connection = value;
  4349. if ((this.Adapter.InsertCommand != null)) {
  4350. this.Adapter.InsertCommand.Connection = value;
  4351. }
  4352. if ((this.Adapter.DeleteCommand != null)) {
  4353. this.Adapter.DeleteCommand.Connection = value;
  4354. }
  4355. if ((this.Adapter.UpdateCommand != null)) {
  4356. this.Adapter.UpdateCommand.Connection = value;
  4357. }
  4358. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4359. if ((this.CommandCollection[i] != null)) {
  4360. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  4361. }
  4362. }
  4363. }
  4364. }
  4365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4367. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  4368. get {
  4369. return this._transaction;
  4370. }
  4371. set {
  4372. this._transaction = value;
  4373. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  4374. this.CommandCollection[i].Transaction = this._transaction;
  4375. }
  4376. if (((this.Adapter != null)
  4377. && (this.Adapter.DeleteCommand != null))) {
  4378. this.Adapter.DeleteCommand.Transaction = this._transaction;
  4379. }
  4380. if (((this.Adapter != null)
  4381. && (this.Adapter.InsertCommand != null))) {
  4382. this.Adapter.InsertCommand.Transaction = this._transaction;
  4383. }
  4384. if (((this.Adapter != null)
  4385. && (this.Adapter.UpdateCommand != null))) {
  4386. this.Adapter.UpdateCommand.Transaction = this._transaction;
  4387. }
  4388. }
  4389. }
  4390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4392. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  4393. get {
  4394. if ((this._commandCollection == null)) {
  4395. this.InitCommandCollection();
  4396. }
  4397. return this._commandCollection;
  4398. }
  4399. }
  4400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4402. public bool ClearBeforeFill {
  4403. get {
  4404. return this._clearBeforeFill;
  4405. }
  4406. set {
  4407. this._clearBeforeFill = value;
  4408. }
  4409. }
  4410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4412. private void InitAdapter() {
  4413. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  4414. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  4415. tableMapping.SourceTable = "Table";
  4416. tableMapping.DataSetTable = "Товары";
  4417. tableMapping.ColumnMappings.Add("Код_товара", "Код_товара");
  4418. tableMapping.ColumnMappings.Add("Название_товара", "Название_товара");
  4419. tableMapping.ColumnMappings.Add("Фирма", "Фирма");
  4420. tableMapping.ColumnMappings.Add("Модель", "Модель");
  4421. tableMapping.ColumnMappings.Add("Технические_характеристики", "Технические_характеристики");
  4422. tableMapping.ColumnMappings.Add("Цена(руб)", "Цена(руб)");
  4423. tableMapping.ColumnMappings.Add("Гарантийный_срок", "Гарантийный_срок");
  4424. tableMapping.ColumnMappings.Add("Изображение", "Изображение");
  4425. this._adapter.TableMappings.Add(tableMapping);
  4426. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  4427. this._adapter.DeleteCommand.Connection = this.Connection;
  4428. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Товары] 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_Технические_характеристики)) AND ((@p3 = 1 AND [Цена(руб)] IS NULL) OR ([Цена(руб)] = @p2)) AND ((@IsNull_Гарантийный_срок = 1 AND [Гарантийный_срок] IS NULL) OR ([Гарантийный_срок] = @Original_Гарантийный_срок)))";
  4429. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  4430. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_товара", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4431. 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, "", "", ""));
  4432. 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, "", "", ""));
  4433. 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, "", "", ""));
  4434. 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, "", "", ""));
  4435. 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, "", "", ""));
  4436. 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, "", "", ""));
  4437. 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, "", "", ""));
  4438. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена(руб)", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4439. 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, "", "", ""));
  4440. 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, "", "", ""));
  4441. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  4442. this._adapter.InsertCommand.Connection = this.Connection;
  4443. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Товары] ([Название_товара], [Фирма], [Модель], [Технические_характеристики], [Цена(руб)], [Гарантийный_срок], [Изображение]) VALUES (@Название_товара, @Фирма, @Модель, @Технические_характеристики, @p1, @Гарантийный_срок, @Изображение);
  4444. SELECT Код_товара, Название_товара, Фирма, Модель, Технические_характеристики, [Цена(руб)], Гарантийный_срок, Изображение FROM Товары WHERE (Код_товара = SCOPE_IDENTITY())";
  4445. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  4446. 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, "", "", ""));
  4447. 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, "", "", ""));
  4448. 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, "", "", ""));
  4449. 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, "", "", ""));
  4450. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена(руб)", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4451. 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, "", "", ""));
  4452. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Изображение", global::System.Data.SqlDbType.Image, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4453. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  4454. this._adapter.UpdateCommand.Connection = this.Connection;
  4455. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Товары] SET [Название_товара] = @Название_товара, [Фирма] = @Фирма, [Модель] = @Модель, [Технические_характеристики] = @Технические_характеристики, [Цена(руб)] = @p1, [Гарантийный_срок] = @Гарантийный_срок, [Изображение] = @Изображение 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_Технические_характеристики)) AND ((@p3 = 1 AND [Цена(руб)] IS NULL) OR ([Цена(руб)] = @p2)) AND ((@IsNull_Гарантийный_срок = 1 AND [Гарантийный_срок] IS NULL) OR ([Гарантийный_срок] = @Original_Гарантийный_срок)));
  4456. SELECT Код_товара, Название_товара, Фирма, Модель, Технические_характеристики, [Цена(руб)], Гарантийный_срок, Изображение FROM Товары WHERE (Код_товара = @Код_товара)";
  4457. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  4458. 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, "", "", ""));
  4459. 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, "", "", ""));
  4460. 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, "", "", ""));
  4461. 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, "", "", ""));
  4462. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p1", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена(руб)", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4463. 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, "", "", ""));
  4464. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Изображение", global::System.Data.SqlDbType.Image, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Изображение", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4465. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Код_товара", global::System.Data.SqlDbType.BigInt, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Код_товара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4466. 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, "", "", ""));
  4467. 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, "", "", ""));
  4468. 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, "", "", ""));
  4469. 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, "", "", ""));
  4470. 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, "", "", ""));
  4471. 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, "", "", ""));
  4472. 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, "", "", ""));
  4473. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@p2", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Цена(руб)", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4474. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Гарантийный_срок", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Гарантийный_срок", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  4475. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Гарантийный_срок", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Гарантийный_срок", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  4476. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Код_товара", global::System.Data.SqlDbType.BigInt, 8, global::System.Data.ParameterDirection.Input, 0, 0, "Код_товара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  4477. }
  4478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4480. private void InitConnection() {
  4481. this._connection = new global::System.Data.SqlClient.SqlConnection();
  4482. this._connection.ConnectionString = global::Yurevich_InternetProdazhi.Properties.Settings.Default.Yurevich_INTERNET_PRODAZHIConnectionString;
  4483. }
  4484. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4485. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4486. private void InitCommandCollection() {
  4487. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  4488. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  4489. this._commandCollection[0].Connection = this.Connection;
  4490. this._commandCollection[0].CommandText = "SELECT Код_товара, Название_товара, Фирма, Модель, Технические_характеристики, [Ц" +
  4491. "ена(руб)], Гарантийный_срок, Изображение FROM dbo.Товары";
  4492. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  4493. }
  4494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4496. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4497. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  4498. public virtual int Fill(Yurevich_INTERNET_PRODAZHIDataSet.ТоварыDataTable dataTable) {
  4499. this.Adapter.SelectCommand = this.CommandCollection[0];
  4500. if ((this.ClearBeforeFill == true)) {
  4501. dataTable.Clear();
  4502. }
  4503. int returnValue = this.Adapter.Fill(dataTable);
  4504. return returnValue;
  4505. }
  4506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4508. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4509. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  4510. public virtual Yurevich_INTERNET_PRODAZHIDataSet.ТоварыDataTable GetData() {
  4511. this.Adapter.SelectCommand = this.CommandCollection[0];
  4512. Yurevich_INTERNET_PRODAZHIDataSet.ТоварыDataTable dataTable = new Yurevich_INTERNET_PRODAZHIDataSet.ТоварыDataTable();
  4513. this.Adapter.Fill(dataTable);
  4514. return dataTable;
  4515. }
  4516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4518. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4519. public virtual int Update(Yurevich_INTERNET_PRODAZHIDataSet.ТоварыDataTable dataTable) {
  4520. return this.Adapter.Update(dataTable);
  4521. }
  4522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4524. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4525. public virtual int Update(Yurevich_INTERNET_PRODAZHIDataSet dataSet) {
  4526. return this.Adapter.Update(dataSet, "Товары");
  4527. }
  4528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4530. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4531. public virtual int Update(global::System.Data.DataRow dataRow) {
  4532. return this.Adapter.Update(new global::System.Data.DataRow[] {
  4533. dataRow});
  4534. }
  4535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4537. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4538. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  4539. return this.Adapter.Update(dataRows);
  4540. }
  4541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4543. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4544. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  4545. public virtual int Delete(long Original_Код_товара, string Original_Фирма, string Original_Модель, string Original_Технические_характеристики, global::System.Nullable<decimal> p2, string Original_Гарантийный_срок) {
  4546. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_Код_товара));
  4547. if ((Original_Фирма == null)) {
  4548. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  4549. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  4550. }
  4551. else {
  4552. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  4553. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Фирма));
  4554. }
  4555. if ((Original_Модель == null)) {
  4556. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  4557. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  4558. }
  4559. else {
  4560. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  4561. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Модель));
  4562. }
  4563. if ((Original_Технические_характеристики == null)) {
  4564. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  4565. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  4566. }
  4567. else {
  4568. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  4569. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Технические_характеристики));
  4570. }
  4571. if ((p2.HasValue == true)) {
  4572. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  4573. this.Adapter.DeleteCommand.Parameters[8].Value = ((decimal)(p2.Value));
  4574. }
  4575. else {
  4576. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  4577. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  4578. }
  4579. if ((Original_Гарантийный_срок == null)) {
  4580. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  4581. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  4582. }
  4583. else {
  4584. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  4585. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Гарантийный_срок));
  4586. }
  4587. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  4588. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4589. != global::System.Data.ConnectionState.Open)) {
  4590. this.Adapter.DeleteCommand.Connection.Open();
  4591. }
  4592. try {
  4593. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  4594. return returnValue;
  4595. }
  4596. finally {
  4597. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4598. this.Adapter.DeleteCommand.Connection.Close();
  4599. }
  4600. }
  4601. }
  4602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4604. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4605. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  4606. public virtual int Insert(string Название_товара, string Фирма, string Модель, string Технические_характеристики, global::System.Nullable<decimal> p1, string Гарантийный_срок, byte[] Изображение) {
  4607. if ((Название_товара == null)) {
  4608. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  4609. }
  4610. else {
  4611. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название_товара));
  4612. }
  4613. if ((Фирма == null)) {
  4614. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  4615. }
  4616. else {
  4617. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Фирма));
  4618. }
  4619. if ((Модель == null)) {
  4620. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  4621. }
  4622. else {
  4623. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Модель));
  4624. }
  4625. if ((Технические_характеристики == null)) {
  4626. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  4627. }
  4628. else {
  4629. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Технические_характеристики));
  4630. }
  4631. if ((p1.HasValue == true)) {
  4632. this.Adapter.InsertCommand.Parameters[4].Value = ((decimal)(p1.Value));
  4633. }
  4634. else {
  4635. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  4636. }
  4637. if ((Гарантийный_срок == null)) {
  4638. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  4639. }
  4640. else {
  4641. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Гарантийный_срок));
  4642. }
  4643. if ((Изображение == null)) {
  4644. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  4645. }
  4646. else {
  4647. this.Adapter.InsertCommand.Parameters[6].Value = ((byte[])(Изображение));
  4648. }
  4649. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  4650. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4651. != global::System.Data.ConnectionState.Open)) {
  4652. this.Adapter.InsertCommand.Connection.Open();
  4653. }
  4654. try {
  4655. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  4656. return returnValue;
  4657. }
  4658. finally {
  4659. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4660. this.Adapter.InsertCommand.Connection.Close();
  4661. }
  4662. }
  4663. }
  4664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4666. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4667. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4668. public virtual int Update(string Название_товара, string Фирма, string Модель, string Технические_характеристики, global::System.Nullable<decimal> p1, string Гарантийный_срок, byte[] Изображение, long Original_Код_товара, string Original_Фирма, string Original_Модель, string Original_Технические_характеристики, global::System.Nullable<decimal> p2, string Original_Гарантийный_срок, long Код_товара) {
  4669. if ((Название_товара == null)) {
  4670. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  4671. }
  4672. else {
  4673. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название_товара));
  4674. }
  4675. if ((Фирма == null)) {
  4676. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  4677. }
  4678. else {
  4679. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Фирма));
  4680. }
  4681. if ((Модель == null)) {
  4682. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  4683. }
  4684. else {
  4685. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Модель));
  4686. }
  4687. if ((Технические_характеристики == null)) {
  4688. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  4689. }
  4690. else {
  4691. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Технические_характеристики));
  4692. }
  4693. if ((p1.HasValue == true)) {
  4694. this.Adapter.UpdateCommand.Parameters[4].Value = ((decimal)(p1.Value));
  4695. }
  4696. else {
  4697. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  4698. }
  4699. if ((Гарантийный_срок == null)) {
  4700. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  4701. }
  4702. else {
  4703. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Гарантийный_срок));
  4704. }
  4705. if ((Изображение == null)) {
  4706. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  4707. }
  4708. else {
  4709. this.Adapter.UpdateCommand.Parameters[6].Value = ((byte[])(Изображение));
  4710. }
  4711. this.Adapter.UpdateCommand.Parameters[7].Value = ((long)(Original_Код_товара));
  4712. if ((Original_Фирма == null)) {
  4713. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  4714. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  4715. }
  4716. else {
  4717. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  4718. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Фирма));
  4719. }
  4720. if ((Original_Модель == null)) {
  4721. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
  4722. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  4723. }
  4724. else {
  4725. this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
  4726. this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Модель));
  4727. }
  4728. if ((Original_Технические_характеристики == null)) {
  4729. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
  4730. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  4731. }
  4732. else {
  4733. this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
  4734. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_Технические_характеристики));
  4735. }
  4736. if ((p2.HasValue == true)) {
  4737. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
  4738. this.Adapter.UpdateCommand.Parameters[15].Value = ((decimal)(p2.Value));
  4739. }
  4740. else {
  4741. this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
  4742. this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
  4743. }
  4744. if ((Original_Гарантийный_срок == null)) {
  4745. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  4746. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  4747. }
  4748. else {
  4749. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  4750. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Гарантийный_срок));
  4751. }
  4752. this.Adapter.UpdateCommand.Parameters[18].Value = ((long)(Код_товара));
  4753. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  4754. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  4755. != global::System.Data.ConnectionState.Open)) {
  4756. this.Adapter.UpdateCommand.Connection.Open();
  4757. }
  4758. try {
  4759. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  4760. return returnValue;
  4761. }
  4762. finally {
  4763. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  4764. this.Adapter.UpdateCommand.Connection.Close();
  4765. }
  4766. }
  4767. }
  4768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4770. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  4771. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  4772. public virtual int Update(string Название_товара, string Фирма, string Модель, string Технические_характеристики, global::System.Nullable<decimal> p1, string Гарантийный_срок, byte[] Изображение, long Original_Код_товара, string Original_Фирма, string Original_Модель, string Original_Технические_характеристики, global::System.Nullable<decimal> p2, string Original_Гарантийный_срок) {
  4773. return this.Update(Название_товара, Фирма, Модель, Технические_характеристики, p1, Гарантийный_срок, Изображение, Original_Код_товара, Original_Фирма, Original_Модель, Original_Технические_характеристики, p2, Original_Гарантийный_срок, Original_Код_товара);
  4774. }
  4775. }
  4776. /// <summary>
  4777. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  4778. ///</summary>
  4779. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  4780. [global::System.ComponentModel.ToolboxItem(true)]
  4781. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  4782. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  4783. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  4784. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  4785. private UpdateOrderOption _updateOrder;
  4786. private ДоставкаTableAdapter _доставкаTableAdapter;
  4787. private ЗаказыTableAdapter _заказыTableAdapter;
  4788. private Интернет_магазиныTableAdapter _интернет_магазиныTableAdapter;
  4789. private Магазины_ТоварыTableAdapter _магазины_ТоварыTableAdapter;
  4790. private ТоварыTableAdapter _товарыTableAdapter;
  4791. private bool _backupDataSetBeforeUpdate;
  4792. private global::System.Data.IDbConnection _connection;
  4793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4795. public UpdateOrderOption UpdateOrder {
  4796. get {
  4797. return this._updateOrder;
  4798. }
  4799. set {
  4800. this._updateOrder = value;
  4801. }
  4802. }
  4803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4805. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4806. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4807. "a", "System.Drawing.Design.UITypeEditor")]
  4808. public ДоставкаTableAdapter ДоставкаTableAdapter {
  4809. get {
  4810. return this._доставкаTableAdapter;
  4811. }
  4812. set {
  4813. this._доставкаTableAdapter = value;
  4814. }
  4815. }
  4816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4818. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4819. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4820. "a", "System.Drawing.Design.UITypeEditor")]
  4821. public ЗаказыTableAdapter ЗаказыTableAdapter {
  4822. get {
  4823. return this._заказыTableAdapter;
  4824. }
  4825. set {
  4826. this._заказыTableAdapter = value;
  4827. }
  4828. }
  4829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4831. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4832. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4833. "a", "System.Drawing.Design.UITypeEditor")]
  4834. public Интернет_магазиныTableAdapter Интернет_магазиныTableAdapter {
  4835. get {
  4836. return this._интернет_магазиныTableAdapter;
  4837. }
  4838. set {
  4839. this._интернет_магазиныTableAdapter = value;
  4840. }
  4841. }
  4842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4844. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4845. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4846. "a", "System.Drawing.Design.UITypeEditor")]
  4847. public Магазины_ТоварыTableAdapter Магазины_ТоварыTableAdapter {
  4848. get {
  4849. return this._магазины_ТоварыTableAdapter;
  4850. }
  4851. set {
  4852. this._магазины_ТоварыTableAdapter = value;
  4853. }
  4854. }
  4855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4857. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4858. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4859. "a", "System.Drawing.Design.UITypeEditor")]
  4860. public ТоварыTableAdapter ТоварыTableAdapter {
  4861. get {
  4862. return this._товарыTableAdapter;
  4863. }
  4864. set {
  4865. this._товарыTableAdapter = value;
  4866. }
  4867. }
  4868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4870. public bool BackupDataSetBeforeUpdate {
  4871. get {
  4872. return this._backupDataSetBeforeUpdate;
  4873. }
  4874. set {
  4875. this._backupDataSetBeforeUpdate = value;
  4876. }
  4877. }
  4878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4880. [global::System.ComponentModel.Browsable(false)]
  4881. public global::System.Data.IDbConnection Connection {
  4882. get {
  4883. if ((this._connection != null)) {
  4884. return this._connection;
  4885. }
  4886. if (((this._доставкаTableAdapter != null)
  4887. && (this._доставкаTableAdapter.Connection != null))) {
  4888. return this._доставкаTableAdapter.Connection;
  4889. }
  4890. if (((this._заказыTableAdapter != null)
  4891. && (this._заказыTableAdapter.Connection != null))) {
  4892. return this._заказыTableAdapter.Connection;
  4893. }
  4894. if (((this._интернет_магазиныTableAdapter != null)
  4895. && (this._интернет_магазиныTableAdapter.Connection != null))) {
  4896. return this._интернет_магазиныTableAdapter.Connection;
  4897. }
  4898. if (((this._магазины_ТоварыTableAdapter != null)
  4899. && (this._магазины_ТоварыTableAdapter.Connection != null))) {
  4900. return this._магазины_ТоварыTableAdapter.Connection;
  4901. }
  4902. if (((this._товарыTableAdapter != null)
  4903. && (this._товарыTableAdapter.Connection != null))) {
  4904. return this._товарыTableAdapter.Connection;
  4905. }
  4906. return null;
  4907. }
  4908. set {
  4909. this._connection = value;
  4910. }
  4911. }
  4912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4914. [global::System.ComponentModel.Browsable(false)]
  4915. public int TableAdapterInstanceCount {
  4916. get {
  4917. int count = 0;
  4918. if ((this._доставкаTableAdapter != null)) {
  4919. count = (count + 1);
  4920. }
  4921. if ((this._заказыTableAdapter != null)) {
  4922. count = (count + 1);
  4923. }
  4924. if ((this._интернет_магазиныTableAdapter != null)) {
  4925. count = (count + 1);
  4926. }
  4927. if ((this._магазины_ТоварыTableAdapter != null)) {
  4928. count = (count + 1);
  4929. }
  4930. if ((this._товарыTableAdapter != null)) {
  4931. count = (count + 1);
  4932. }
  4933. return count;
  4934. }
  4935. }
  4936. /// <summary>
  4937. ///Update rows in top-down order.
  4938. ///</summary>
  4939. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4940. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4941. private int UpdateUpdatedRows(Yurevich_INTERNET_PRODAZHIDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4942. int result = 0;
  4943. if ((this._интернет_магазиныTableAdapter != null)) {
  4944. global::System.Data.DataRow[] updatedRows = dataSet._Интернет_магазины.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4945. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4946. if (((updatedRows != null)
  4947. && (0 < updatedRows.Length))) {
  4948. result = (result + this._интернет_магазиныTableAdapter.Update(updatedRows));
  4949. allChangedRows.AddRange(updatedRows);
  4950. }
  4951. }
  4952. if ((this._товарыTableAdapter != null)) {
  4953. global::System.Data.DataRow[] updatedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4954. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4955. if (((updatedRows != null)
  4956. && (0 < updatedRows.Length))) {
  4957. result = (result + this._товарыTableAdapter.Update(updatedRows));
  4958. allChangedRows.AddRange(updatedRows);
  4959. }
  4960. }
  4961. if ((this._заказыTableAdapter != null)) {
  4962. global::System.Data.DataRow[] updatedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4963. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4964. if (((updatedRows != null)
  4965. && (0 < updatedRows.Length))) {
  4966. result = (result + this._заказыTableAdapter.Update(updatedRows));
  4967. allChangedRows.AddRange(updatedRows);
  4968. }
  4969. }
  4970. if ((this._доставкаTableAdapter != null)) {
  4971. global::System.Data.DataRow[] updatedRows = dataSet.Доставка.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4972. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4973. if (((updatedRows != null)
  4974. && (0 < updatedRows.Length))) {
  4975. result = (result + this._доставкаTableAdapter.Update(updatedRows));
  4976. allChangedRows.AddRange(updatedRows);
  4977. }
  4978. }
  4979. if ((this._магазины_ТоварыTableAdapter != null)) {
  4980. global::System.Data.DataRow[] updatedRows = dataSet._Магазины_Товары.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4981. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4982. if (((updatedRows != null)
  4983. && (0 < updatedRows.Length))) {
  4984. result = (result + this._магазины_ТоварыTableAdapter.Update(updatedRows));
  4985. allChangedRows.AddRange(updatedRows);
  4986. }
  4987. }
  4988. return result;
  4989. }
  4990. /// <summary>
  4991. ///Insert rows in top-down order.
  4992. ///</summary>
  4993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4995. private int UpdateInsertedRows(Yurevich_INTERNET_PRODAZHIDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4996. int result = 0;
  4997. if ((this._интернет_магазиныTableAdapter != null)) {
  4998. global::System.Data.DataRow[] addedRows = dataSet._Интернет_магазины.Select(null, null, global::System.Data.DataViewRowState.Added);
  4999. if (((addedRows != null)
  5000. && (0 < addedRows.Length))) {
  5001. result = (result + this._интернет_магазиныTableAdapter.Update(addedRows));
  5002. allAddedRows.AddRange(addedRows);
  5003. }
  5004. }
  5005. if ((this._товарыTableAdapter != null)) {
  5006. global::System.Data.DataRow[] addedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.Added);
  5007. if (((addedRows != null)
  5008. && (0 < addedRows.Length))) {
  5009. result = (result + this._товарыTableAdapter.Update(addedRows));
  5010. allAddedRows.AddRange(addedRows);
  5011. }
  5012. }
  5013. if ((this._заказыTableAdapter != null)) {
  5014. global::System.Data.DataRow[] addedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.Added);
  5015. if (((addedRows != null)
  5016. && (0 < addedRows.Length))) {
  5017. result = (result + this._заказыTableAdapter.Update(addedRows));
  5018. allAddedRows.AddRange(addedRows);
  5019. }
  5020. }
  5021. if ((this._доставкаTableAdapter != null)) {
  5022. global::System.Data.DataRow[] addedRows = dataSet.Доставка.Select(null, null, global::System.Data.DataViewRowState.Added);
  5023. if (((addedRows != null)
  5024. && (0 < addedRows.Length))) {
  5025. result = (result + this._доставкаTableAdapter.Update(addedRows));
  5026. allAddedRows.AddRange(addedRows);
  5027. }
  5028. }
  5029. if ((this._магазины_ТоварыTableAdapter != null)) {
  5030. global::System.Data.DataRow[] addedRows = dataSet._Магазины_Товары.Select(null, null, global::System.Data.DataViewRowState.Added);
  5031. if (((addedRows != null)
  5032. && (0 < addedRows.Length))) {
  5033. result = (result + this._магазины_ТоварыTableAdapter.Update(addedRows));
  5034. allAddedRows.AddRange(addedRows);
  5035. }
  5036. }
  5037. return result;
  5038. }
  5039. /// <summary>
  5040. ///Delete rows in bottom-up order.
  5041. ///</summary>
  5042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5044. private int UpdateDeletedRows(Yurevich_INTERNET_PRODAZHIDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  5045. int result = 0;
  5046. if ((this._магазины_ТоварыTableAdapter != null)) {
  5047. global::System.Data.DataRow[] deletedRows = dataSet._Магазины_Товары.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5048. if (((deletedRows != null)
  5049. && (0 < deletedRows.Length))) {
  5050. result = (result + this._магазины_ТоварыTableAdapter.Update(deletedRows));
  5051. allChangedRows.AddRange(deletedRows);
  5052. }
  5053. }
  5054. if ((this._доставкаTableAdapter != null)) {
  5055. global::System.Data.DataRow[] deletedRows = dataSet.Доставка.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5056. if (((deletedRows != null)
  5057. && (0 < deletedRows.Length))) {
  5058. result = (result + this._доставкаTableAdapter.Update(deletedRows));
  5059. allChangedRows.AddRange(deletedRows);
  5060. }
  5061. }
  5062. if ((this._заказыTableAdapter != null)) {
  5063. global::System.Data.DataRow[] deletedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5064. if (((deletedRows != null)
  5065. && (0 < deletedRows.Length))) {
  5066. result = (result + this._заказыTableAdapter.Update(deletedRows));
  5067. allChangedRows.AddRange(deletedRows);
  5068. }
  5069. }
  5070. if ((this._товарыTableAdapter != null)) {
  5071. global::System.Data.DataRow[] deletedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5072. if (((deletedRows != null)
  5073. && (0 < deletedRows.Length))) {
  5074. result = (result + this._товарыTableAdapter.Update(deletedRows));
  5075. allChangedRows.AddRange(deletedRows);
  5076. }
  5077. }
  5078. if ((this._интернет_магазиныTableAdapter != null)) {
  5079. global::System.Data.DataRow[] deletedRows = dataSet._Интернет_магазины.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  5080. if (((deletedRows != null)
  5081. && (0 < deletedRows.Length))) {
  5082. result = (result + this._интернет_магазиныTableAdapter.Update(deletedRows));
  5083. allChangedRows.AddRange(deletedRows);
  5084. }
  5085. }
  5086. return result;
  5087. }
  5088. /// <summary>
  5089. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  5090. ///</summary>
  5091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5093. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  5094. if (((updatedRows == null)
  5095. || (updatedRows.Length < 1))) {
  5096. return updatedRows;
  5097. }
  5098. if (((allAddedRows == null)
  5099. || (allAddedRows.Count < 1))) {
  5100. return updatedRows;
  5101. }
  5102. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  5103. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  5104. global::System.Data.DataRow row = updatedRows[i];
  5105. if ((allAddedRows.Contains(row) == false)) {
  5106. realUpdatedRows.Add(row);
  5107. }
  5108. }
  5109. return realUpdatedRows.ToArray();
  5110. }
  5111. /// <summary>
  5112. ///Update all changes to the dataset.
  5113. ///</summary>
  5114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5116. public virtual int UpdateAll(Yurevich_INTERNET_PRODAZHIDataSet dataSet) {
  5117. if ((dataSet == null)) {
  5118. throw new global::System.ArgumentNullException("dataSet");
  5119. }
  5120. if ((dataSet.HasChanges() == false)) {
  5121. return 0;
  5122. }
  5123. if (((this._доставкаTableAdapter != null)
  5124. && (this.MatchTableAdapterConnection(this._доставкаTableAdapter.Connection) == false))) {
  5125. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5126. "r, должны использовать одинаковую строку подключения.");
  5127. }
  5128. if (((this._заказыTableAdapter != null)
  5129. && (this.MatchTableAdapterConnection(this._заказыTableAdapter.Connection) == false))) {
  5130. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5131. "r, должны использовать одинаковую строку подключения.");
  5132. }
  5133. if (((this._интернет_магазиныTableAdapter != null)
  5134. && (this.MatchTableAdapterConnection(this._интернет_магазиныTableAdapter.Connection) == false))) {
  5135. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5136. "r, должны использовать одинаковую строку подключения.");
  5137. }
  5138. if (((this._магазины_ТоварыTableAdapter != null)
  5139. && (this.MatchTableAdapterConnection(this._магазины_ТоварыTableAdapter.Connection) == false))) {
  5140. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5141. "r, должны использовать одинаковую строку подключения.");
  5142. }
  5143. if (((this._товарыTableAdapter != null)
  5144. && (this.MatchTableAdapterConnection(this._товарыTableAdapter.Connection) == false))) {
  5145. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  5146. "r, должны использовать одинаковую строку подключения.");
  5147. }
  5148. global::System.Data.IDbConnection workConnection = this.Connection;
  5149. if ((workConnection == null)) {
  5150. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  5151. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  5152. }
  5153. bool workConnOpened = false;
  5154. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  5155. == global::System.Data.ConnectionState.Broken)) {
  5156. workConnection.Close();
  5157. }
  5158. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  5159. workConnection.Open();
  5160. workConnOpened = true;
  5161. }
  5162. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  5163. if ((workTransaction == null)) {
  5164. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  5165. "и или текущее состояние не позволяет начать транзакцию.");
  5166. }
  5167. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  5168. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  5169. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  5170. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  5171. int result = 0;
  5172. global::System.Data.DataSet backupDataSet = null;
  5173. if (this.BackupDataSetBeforeUpdate) {
  5174. backupDataSet = new global::System.Data.DataSet();
  5175. backupDataSet.Merge(dataSet);
  5176. }
  5177. try {
  5178. // ---- Prepare for update -----------
  5179. //
  5180. if ((this._доставкаTableAdapter != null)) {
  5181. revertConnections.Add(this._доставкаTableAdapter, this._доставкаTableAdapter.Connection);
  5182. this._доставкаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5183. this._доставкаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5184. if (this._доставкаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5185. this._доставкаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5186. adaptersWithAcceptChangesDuringUpdate.Add(this._доставкаTableAdapter.Adapter);
  5187. }
  5188. }
  5189. if ((this._заказыTableAdapter != null)) {
  5190. revertConnections.Add(this._заказыTableAdapter, this._заказыTableAdapter.Connection);
  5191. this._заказыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5192. this._заказыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5193. if (this._заказыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5194. this._заказыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5195. adaptersWithAcceptChangesDuringUpdate.Add(this._заказыTableAdapter.Adapter);
  5196. }
  5197. }
  5198. if ((this._интернет_магазиныTableAdapter != null)) {
  5199. revertConnections.Add(this._интернет_магазиныTableAdapter, this._интернет_магазиныTableAdapter.Connection);
  5200. this._интернет_магазиныTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5201. this._интернет_магазиныTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5202. if (this._интернет_магазиныTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5203. this._интернет_магазиныTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5204. adaptersWithAcceptChangesDuringUpdate.Add(this._интернет_магазиныTableAdapter.Adapter);
  5205. }
  5206. }
  5207. if ((this._магазины_ТоварыTableAdapter != null)) {
  5208. revertConnections.Add(this._магазины_ТоварыTableAdapter, this._магазины_ТоварыTableAdapter.Connection);
  5209. this._магазины_ТоварыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5210. this._магазины_ТоварыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5211. if (this._магазины_ТоварыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5212. this._магазины_ТоварыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5213. adaptersWithAcceptChangesDuringUpdate.Add(this._магазины_ТоварыTableAdapter.Adapter);
  5214. }
  5215. }
  5216. if ((this._товарыTableAdapter != null)) {
  5217. revertConnections.Add(this._товарыTableAdapter, this._товарыTableAdapter.Connection);
  5218. this._товарыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  5219. this._товарыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  5220. if (this._товарыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  5221. this._товарыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  5222. adaptersWithAcceptChangesDuringUpdate.Add(this._товарыTableAdapter.Adapter);
  5223. }
  5224. }
  5225. //
  5226. //---- Perform updates -----------
  5227. //
  5228. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  5229. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  5230. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  5231. }
  5232. else {
  5233. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  5234. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  5235. }
  5236. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  5237. //
  5238. //---- Commit updates -----------
  5239. //
  5240. workTransaction.Commit();
  5241. if ((0 < allAddedRows.Count)) {
  5242. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  5243. allAddedRows.CopyTo(rows);
  5244. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5245. global::System.Data.DataRow row = rows[i];
  5246. row.AcceptChanges();
  5247. }
  5248. }
  5249. if ((0 < allChangedRows.Count)) {
  5250. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  5251. allChangedRows.CopyTo(rows);
  5252. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5253. global::System.Data.DataRow row = rows[i];
  5254. row.AcceptChanges();
  5255. }
  5256. }
  5257. }
  5258. catch (global::System.Exception ex) {
  5259. workTransaction.Rollback();
  5260. // ---- Restore the dataset -----------
  5261. if (this.BackupDataSetBeforeUpdate) {
  5262. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  5263. dataSet.Clear();
  5264. dataSet.Merge(backupDataSet);
  5265. }
  5266. else {
  5267. if ((0 < allAddedRows.Count)) {
  5268. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  5269. allAddedRows.CopyTo(rows);
  5270. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  5271. global::System.Data.DataRow row = rows[i];
  5272. row.AcceptChanges();
  5273. row.SetAdded();
  5274. }
  5275. }
  5276. }
  5277. throw ex;
  5278. }
  5279. finally {
  5280. if (workConnOpened) {
  5281. workConnection.Close();
  5282. }
  5283. if ((this._доставкаTableAdapter != null)) {
  5284. this._доставкаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._доставкаTableAdapter]));
  5285. this._доставкаTableAdapter.Transaction = null;
  5286. }
  5287. if ((this._заказыTableAdapter != null)) {
  5288. this._заказыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._заказыTableAdapter]));
  5289. this._заказыTableAdapter.Transaction = null;
  5290. }
  5291. if ((this._интернет_магазиныTableAdapter != null)) {
  5292. this._интернет_магазиныTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._интернет_магазиныTableAdapter]));
  5293. this._интернет_магазиныTableAdapter.Transaction = null;
  5294. }
  5295. if ((this._магазины_ТоварыTableAdapter != null)) {
  5296. this._магазины_ТоварыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._магазины_ТоварыTableAdapter]));
  5297. this._магазины_ТоварыTableAdapter.Transaction = null;
  5298. }
  5299. if ((this._товарыTableAdapter != null)) {
  5300. this._товарыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._товарыTableAdapter]));
  5301. this._товарыTableAdapter.Transaction = null;
  5302. }
  5303. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  5304. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  5305. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  5306. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  5307. global::System.Data.Common.DataAdapter adapter = adapters[i];
  5308. adapter.AcceptChangesDuringUpdate = true;
  5309. }
  5310. }
  5311. }
  5312. return result;
  5313. }
  5314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5316. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  5317. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  5318. }
  5319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5321. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  5322. if ((this._connection != null)) {
  5323. return true;
  5324. }
  5325. if (((this.Connection == null)
  5326. || (inputConnection == null))) {
  5327. return true;
  5328. }
  5329. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  5330. return true;
  5331. }
  5332. return false;
  5333. }
  5334. /// <summary>
  5335. ///Update Order Option
  5336. ///</summary>
  5337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5338. public enum UpdateOrderOption {
  5339. InsertUpdateDelete = 0,
  5340. UpdateInsertDelete = 1,
  5341. }
  5342. /// <summary>
  5343. ///Used to sort self-referenced table's rows
  5344. ///</summary>
  5345. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5346. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  5347. private global::System.Data.DataRelation _relation;
  5348. private int _childFirst;
  5349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5351. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  5352. this._relation = relation;
  5353. if (childFirst) {
  5354. this._childFirst = -1;
  5355. }
  5356. else {
  5357. this._childFirst = 1;
  5358. }
  5359. }
  5360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5362. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  5363. global::System.Diagnostics.Debug.Assert((row != null));
  5364. global::System.Data.DataRow root = row;
  5365. distance = 0;
  5366. 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>();
  5367. traversedRows[row] = row;
  5368. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5369. for (
  5370. ; ((parent != null)
  5371. && (traversedRows.ContainsKey(parent) == false));
  5372. ) {
  5373. distance = (distance + 1);
  5374. root = parent;
  5375. traversedRows[parent] = parent;
  5376. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  5377. }
  5378. if ((distance == 0)) {
  5379. traversedRows.Clear();
  5380. traversedRows[row] = row;
  5381. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5382. for (
  5383. ; ((parent != null)
  5384. && (traversedRows.ContainsKey(parent) == false));
  5385. ) {
  5386. distance = (distance + 1);
  5387. root = parent;
  5388. traversedRows[parent] = parent;
  5389. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  5390. }
  5391. }
  5392. return root;
  5393. }
  5394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5396. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  5397. if (object.ReferenceEquals(row1, row2)) {
  5398. return 0;
  5399. }
  5400. if ((row1 == null)) {
  5401. return -1;
  5402. }
  5403. if ((row2 == null)) {
  5404. return 1;
  5405. }
  5406. int distance1 = 0;
  5407. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  5408. int distance2 = 0;
  5409. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  5410. if (object.ReferenceEquals(root1, root2)) {
  5411. return (this._childFirst * distance1.CompareTo(distance2));
  5412. }
  5413. else {
  5414. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  5415. && (root2.Table != null)));
  5416. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  5417. return -1;
  5418. }
  5419. else {
  5420. return 1;
  5421. }
  5422. }
  5423. }
  5424. }
  5425. }
  5426. }
  5427. #pragma warning restore 1591