PostavkaTovarovDataSet.Designer.cs 652 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace WindowsFormsApp1Индивидуально {
  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("PostavkaTovarovDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class PostavkaTovarovDataSet : 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 ТоварыDataTable tableТовары;
  28. private View_1DataTable tableView_1;
  29. private Запрос_ВнеплановаяПоставкаDataTable tableЗапрос_ВнеплановаяПоставка;
  30. private _Запрос_Заказы_ДоговораЗаказовDataTable _tableЗапрос_Заказы_ДоговораЗаказов;
  31. private Запрос_ПлановаяПоставкаDataTable tableЗапрос_ПлановаяПоставка;
  32. private Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable tableЗапрос_ФИОЗаказавшихКерамическиеИзделия;
  33. private Запрос_ФИОЗаказавшихМебельDataTable tableЗапрос_ФИОЗаказавшихМебель;
  34. private global::System.Data.DataRelation relationFK_Заказы_ДоговорЗаказа;
  35. private global::System.Data.DataRelation relationFK_Заказы_Заказчик;
  36. private global::System.Data.DataRelation relationFK_Заказы_Отгрузка;
  37. private global::System.Data.DataRelation relationFK_Заказы_Товары;
  38. private global::System.Data.DataRelation relationFK_ОтгрузкаТовара_Отгрузка;
  39. private global::System.Data.DataRelation relationFK_ОтгрузкаТовара_Товары;
  40. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  41. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  42. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  43. public PostavkaTovarovDataSet() {
  44. this.BeginInit();
  45. this.InitClass();
  46. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  47. base.Tables.CollectionChanged += schemaChangedHandler;
  48. base.Relations.CollectionChanged += schemaChangedHandler;
  49. this.EndInit();
  50. }
  51. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  52. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  53. protected PostavkaTovarovDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  54. base(info, context, false) {
  55. if ((this.IsBinarySerialized(info, context) == true)) {
  56. this.InitVars(false);
  57. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  58. this.Tables.CollectionChanged += schemaChangedHandler1;
  59. this.Relations.CollectionChanged += schemaChangedHandler1;
  60. return;
  61. }
  62. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  63. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  64. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  65. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  66. if ((ds.Tables["ДоговорЗаказа"] != null)) {
  67. base.Tables.Add(new ДоговорЗаказаDataTable(ds.Tables["ДоговорЗаказа"]));
  68. }
  69. if ((ds.Tables["Заказчик"] != null)) {
  70. base.Tables.Add(new ЗаказчикDataTable(ds.Tables["Заказчик"]));
  71. }
  72. if ((ds.Tables["Заказы"] != null)) {
  73. base.Tables.Add(new ЗаказыDataTable(ds.Tables["Заказы"]));
  74. }
  75. if ((ds.Tables["Отгрузка"] != null)) {
  76. base.Tables.Add(new ОтгрузкаDataTable(ds.Tables["Отгрузка"]));
  77. }
  78. if ((ds.Tables["ОтгрузкаТовара"] != null)) {
  79. base.Tables.Add(new ОтгрузкаТовараDataTable(ds.Tables["ОтгрузкаТовара"]));
  80. }
  81. if ((ds.Tables["Товары"] != null)) {
  82. base.Tables.Add(new ТоварыDataTable(ds.Tables["Товары"]));
  83. }
  84. if ((ds.Tables["View_1"] != null)) {
  85. base.Tables.Add(new View_1DataTable(ds.Tables["View_1"]));
  86. }
  87. if ((ds.Tables["Запрос_ВнеплановаяПоставка"] != null)) {
  88. base.Tables.Add(new Запрос_ВнеплановаяПоставкаDataTable(ds.Tables["Запрос_ВнеплановаяПоставка"]));
  89. }
  90. if ((ds.Tables["Запрос_Заказы+ДоговораЗаказов"] != null)) {
  91. base.Tables.Add(new _Запрос_Заказы_ДоговораЗаказовDataTable(ds.Tables["Запрос_Заказы+ДоговораЗаказов"]));
  92. }
  93. if ((ds.Tables["Запрос_ПлановаяПоставка"] != null)) {
  94. base.Tables.Add(new Запрос_ПлановаяПоставкаDataTable(ds.Tables["Запрос_ПлановаяПоставка"]));
  95. }
  96. if ((ds.Tables["Запрос_ФИОЗаказавшихКерамическиеИзделия"] != null)) {
  97. base.Tables.Add(new Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable(ds.Tables["Запрос_ФИОЗаказавшихКерамическиеИзделия"]));
  98. }
  99. if ((ds.Tables["Запрос_ФИОЗаказавшихМебель"] != null)) {
  100. base.Tables.Add(new Запрос_ФИОЗаказавшихМебельDataTable(ds.Tables["Запрос_ФИОЗаказавшихМебель"]));
  101. }
  102. this.DataSetName = ds.DataSetName;
  103. this.Prefix = ds.Prefix;
  104. this.Namespace = ds.Namespace;
  105. this.Locale = ds.Locale;
  106. this.CaseSensitive = ds.CaseSensitive;
  107. this.EnforceConstraints = ds.EnforceConstraints;
  108. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  109. this.InitVars();
  110. }
  111. else {
  112. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  113. }
  114. this.GetSerializationData(info, context);
  115. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  116. base.Tables.CollectionChanged += schemaChangedHandler;
  117. this.Relations.CollectionChanged += schemaChangedHandler;
  118. }
  119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  121. [global::System.ComponentModel.Browsable(false)]
  122. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  123. public ДоговорЗаказаDataTable ДоговорЗаказа {
  124. get {
  125. return this.tableДоговорЗаказа;
  126. }
  127. }
  128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  130. [global::System.ComponentModel.Browsable(false)]
  131. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  132. public ЗаказчикDataTable Заказчик {
  133. get {
  134. return this.tableЗаказчик;
  135. }
  136. }
  137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  139. [global::System.ComponentModel.Browsable(false)]
  140. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  141. public ЗаказыDataTable Заказы {
  142. get {
  143. return this.tableЗаказы;
  144. }
  145. }
  146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  148. [global::System.ComponentModel.Browsable(false)]
  149. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  150. public ОтгрузкаDataTable Отгрузка {
  151. get {
  152. return this.tableОтгрузка;
  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.Browsable(false)]
  158. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  159. public ОтгрузкаТовараDataTable ОтгрузкаТовара {
  160. get {
  161. return this.tableОтгрузкаТовара;
  162. }
  163. }
  164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  166. [global::System.ComponentModel.Browsable(false)]
  167. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  168. public ТоварыDataTable Товары {
  169. get {
  170. return this.tableТовары;
  171. }
  172. }
  173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  175. [global::System.ComponentModel.Browsable(false)]
  176. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  177. public View_1DataTable View_1 {
  178. get {
  179. return this.tableView_1;
  180. }
  181. }
  182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  184. [global::System.ComponentModel.Browsable(false)]
  185. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  186. public Запрос_ВнеплановаяПоставкаDataTable Запрос_ВнеплановаяПоставка {
  187. get {
  188. return this.tableЗапрос_ВнеплановаяПоставка;
  189. }
  190. }
  191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  193. [global::System.ComponentModel.Browsable(false)]
  194. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  195. public _Запрос_Заказы_ДоговораЗаказовDataTable _Запрос_Заказы_ДоговораЗаказов {
  196. get {
  197. return this._tableЗапрос_Заказы_ДоговораЗаказов;
  198. }
  199. }
  200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  202. [global::System.ComponentModel.Browsable(false)]
  203. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  204. public Запрос_ПлановаяПоставкаDataTable Запрос_ПлановаяПоставка {
  205. get {
  206. return this.tableЗапрос_ПлановаяПоставка;
  207. }
  208. }
  209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  211. [global::System.ComponentModel.Browsable(false)]
  212. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  213. public Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable Запрос_ФИОЗаказавшихКерамическиеИзделия {
  214. get {
  215. return this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия;
  216. }
  217. }
  218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  220. [global::System.ComponentModel.Browsable(false)]
  221. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  222. public Запрос_ФИОЗаказавшихМебельDataTable Запрос_ФИОЗаказавшихМебель {
  223. get {
  224. return this.tableЗапрос_ФИОЗаказавшихМебель;
  225. }
  226. }
  227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  229. [global::System.ComponentModel.BrowsableAttribute(true)]
  230. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  231. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  232. get {
  233. return this._schemaSerializationMode;
  234. }
  235. set {
  236. this._schemaSerializationMode = value;
  237. }
  238. }
  239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  241. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  242. public new global::System.Data.DataTableCollection Tables {
  243. get {
  244. return base.Tables;
  245. }
  246. }
  247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  249. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  250. public new global::System.Data.DataRelationCollection Relations {
  251. get {
  252. return base.Relations;
  253. }
  254. }
  255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  257. protected override void InitializeDerivedDataSet() {
  258. this.BeginInit();
  259. this.InitClass();
  260. this.EndInit();
  261. }
  262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  264. public override global::System.Data.DataSet Clone() {
  265. PostavkaTovarovDataSet cln = ((PostavkaTovarovDataSet)(base.Clone()));
  266. cln.InitVars();
  267. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  268. return cln;
  269. }
  270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  272. protected override bool ShouldSerializeTables() {
  273. return false;
  274. }
  275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  277. protected override bool ShouldSerializeRelations() {
  278. return false;
  279. }
  280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  282. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  283. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  284. this.Reset();
  285. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  286. ds.ReadXml(reader);
  287. if ((ds.Tables["ДоговорЗаказа"] != null)) {
  288. base.Tables.Add(new ДоговорЗаказаDataTable(ds.Tables["ДоговорЗаказа"]));
  289. }
  290. if ((ds.Tables["Заказчик"] != null)) {
  291. base.Tables.Add(new ЗаказчикDataTable(ds.Tables["Заказчик"]));
  292. }
  293. if ((ds.Tables["Заказы"] != null)) {
  294. base.Tables.Add(new ЗаказыDataTable(ds.Tables["Заказы"]));
  295. }
  296. if ((ds.Tables["Отгрузка"] != null)) {
  297. base.Tables.Add(new ОтгрузкаDataTable(ds.Tables["Отгрузка"]));
  298. }
  299. if ((ds.Tables["ОтгрузкаТовара"] != null)) {
  300. base.Tables.Add(new ОтгрузкаТовараDataTable(ds.Tables["ОтгрузкаТовара"]));
  301. }
  302. if ((ds.Tables["Товары"] != null)) {
  303. base.Tables.Add(new ТоварыDataTable(ds.Tables["Товары"]));
  304. }
  305. if ((ds.Tables["View_1"] != null)) {
  306. base.Tables.Add(new View_1DataTable(ds.Tables["View_1"]));
  307. }
  308. if ((ds.Tables["Запрос_ВнеплановаяПоставка"] != null)) {
  309. base.Tables.Add(new Запрос_ВнеплановаяПоставкаDataTable(ds.Tables["Запрос_ВнеплановаяПоставка"]));
  310. }
  311. if ((ds.Tables["Запрос_Заказы+ДоговораЗаказов"] != null)) {
  312. base.Tables.Add(new _Запрос_Заказы_ДоговораЗаказовDataTable(ds.Tables["Запрос_Заказы+ДоговораЗаказов"]));
  313. }
  314. if ((ds.Tables["Запрос_ПлановаяПоставка"] != null)) {
  315. base.Tables.Add(new Запрос_ПлановаяПоставкаDataTable(ds.Tables["Запрос_ПлановаяПоставка"]));
  316. }
  317. if ((ds.Tables["Запрос_ФИОЗаказавшихКерамическиеИзделия"] != null)) {
  318. base.Tables.Add(new Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable(ds.Tables["Запрос_ФИОЗаказавшихКерамическиеИзделия"]));
  319. }
  320. if ((ds.Tables["Запрос_ФИОЗаказавшихМебель"] != null)) {
  321. base.Tables.Add(new Запрос_ФИОЗаказавшихМебельDataTable(ds.Tables["Запрос_ФИОЗаказавшихМебель"]));
  322. }
  323. this.DataSetName = ds.DataSetName;
  324. this.Prefix = ds.Prefix;
  325. this.Namespace = ds.Namespace;
  326. this.Locale = ds.Locale;
  327. this.CaseSensitive = ds.CaseSensitive;
  328. this.EnforceConstraints = ds.EnforceConstraints;
  329. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  330. this.InitVars();
  331. }
  332. else {
  333. this.ReadXml(reader);
  334. this.InitVars();
  335. }
  336. }
  337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  339. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  340. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  341. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  342. stream.Position = 0;
  343. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  344. }
  345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  347. internal void InitVars() {
  348. this.InitVars(true);
  349. }
  350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  352. internal void InitVars(bool initTable) {
  353. this.tableДоговорЗаказа = ((ДоговорЗаказаDataTable)(base.Tables["ДоговорЗаказа"]));
  354. if ((initTable == true)) {
  355. if ((this.tableДоговорЗаказа != null)) {
  356. this.tableДоговорЗаказа.InitVars();
  357. }
  358. }
  359. this.tableЗаказчик = ((ЗаказчикDataTable)(base.Tables["Заказчик"]));
  360. if ((initTable == true)) {
  361. if ((this.tableЗаказчик != null)) {
  362. this.tableЗаказчик.InitVars();
  363. }
  364. }
  365. this.tableЗаказы = ((ЗаказыDataTable)(base.Tables["Заказы"]));
  366. if ((initTable == true)) {
  367. if ((this.tableЗаказы != null)) {
  368. this.tableЗаказы.InitVars();
  369. }
  370. }
  371. this.tableОтгрузка = ((ОтгрузкаDataTable)(base.Tables["Отгрузка"]));
  372. if ((initTable == true)) {
  373. if ((this.tableОтгрузка != null)) {
  374. this.tableОтгрузка.InitVars();
  375. }
  376. }
  377. this.tableОтгрузкаТовара = ((ОтгрузкаТовараDataTable)(base.Tables["ОтгрузкаТовара"]));
  378. if ((initTable == true)) {
  379. if ((this.tableОтгрузкаТовара != null)) {
  380. this.tableОтгрузкаТовара.InitVars();
  381. }
  382. }
  383. this.tableТовары = ((ТоварыDataTable)(base.Tables["Товары"]));
  384. if ((initTable == true)) {
  385. if ((this.tableТовары != null)) {
  386. this.tableТовары.InitVars();
  387. }
  388. }
  389. this.tableView_1 = ((View_1DataTable)(base.Tables["View_1"]));
  390. if ((initTable == true)) {
  391. if ((this.tableView_1 != null)) {
  392. this.tableView_1.InitVars();
  393. }
  394. }
  395. this.tableЗапрос_ВнеплановаяПоставка = ((Запрос_ВнеплановаяПоставкаDataTable)(base.Tables["Запрос_ВнеплановаяПоставка"]));
  396. if ((initTable == true)) {
  397. if ((this.tableЗапрос_ВнеплановаяПоставка != null)) {
  398. this.tableЗапрос_ВнеплановаяПоставка.InitVars();
  399. }
  400. }
  401. this._tableЗапрос_Заказы_ДоговораЗаказов = ((_Запрос_Заказы_ДоговораЗаказовDataTable)(base.Tables["Запрос_Заказы+ДоговораЗаказов"]));
  402. if ((initTable == true)) {
  403. if ((this._tableЗапрос_Заказы_ДоговораЗаказов != null)) {
  404. this._tableЗапрос_Заказы_ДоговораЗаказов.InitVars();
  405. }
  406. }
  407. this.tableЗапрос_ПлановаяПоставка = ((Запрос_ПлановаяПоставкаDataTable)(base.Tables["Запрос_ПлановаяПоставка"]));
  408. if ((initTable == true)) {
  409. if ((this.tableЗапрос_ПлановаяПоставка != null)) {
  410. this.tableЗапрос_ПлановаяПоставка.InitVars();
  411. }
  412. }
  413. this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия = ((Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable)(base.Tables["Запрос_ФИОЗаказавшихКерамическиеИзделия"]));
  414. if ((initTable == true)) {
  415. if ((this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия != null)) {
  416. this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия.InitVars();
  417. }
  418. }
  419. this.tableЗапрос_ФИОЗаказавшихМебель = ((Запрос_ФИОЗаказавшихМебельDataTable)(base.Tables["Запрос_ФИОЗаказавшихМебель"]));
  420. if ((initTable == true)) {
  421. if ((this.tableЗапрос_ФИОЗаказавшихМебель != null)) {
  422. this.tableЗапрос_ФИОЗаказавшихМебель.InitVars();
  423. }
  424. }
  425. this.relationFK_Заказы_ДоговорЗаказа = this.Relations["FK_Заказы_ДоговорЗаказа"];
  426. this.relationFK_Заказы_Заказчик = this.Relations["FK_Заказы_Заказчик"];
  427. this.relationFK_Заказы_Отгрузка = this.Relations["FK_Заказы_Отгрузка"];
  428. this.relationFK_Заказы_Товары = this.Relations["FK_Заказы_Товары"];
  429. this.relationFK_ОтгрузкаТовара_Отгрузка = this.Relations["FK_ОтгрузкаТовара_Отгрузка"];
  430. this.relationFK_ОтгрузкаТовара_Товары = this.Relations["FK_ОтгрузкаТовара_Товары"];
  431. }
  432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  434. private void InitClass() {
  435. this.DataSetName = "PostavkaTovarovDataSet";
  436. this.Prefix = "";
  437. this.Namespace = "http://tempuri.org/PostavkaTovarovDataSet.xsd";
  438. this.EnforceConstraints = true;
  439. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  440. this.tableДоговорЗаказа = new ДоговорЗаказаDataTable();
  441. base.Tables.Add(this.tableДоговорЗаказа);
  442. this.tableЗаказчик = new ЗаказчикDataTable();
  443. base.Tables.Add(this.tableЗаказчик);
  444. this.tableЗаказы = new ЗаказыDataTable();
  445. base.Tables.Add(this.tableЗаказы);
  446. this.tableОтгрузка = new ОтгрузкаDataTable();
  447. base.Tables.Add(this.tableОтгрузка);
  448. this.tableОтгрузкаТовара = new ОтгрузкаТовараDataTable();
  449. base.Tables.Add(this.tableОтгрузкаТовара);
  450. this.tableТовары = new ТоварыDataTable();
  451. base.Tables.Add(this.tableТовары);
  452. this.tableView_1 = new View_1DataTable();
  453. base.Tables.Add(this.tableView_1);
  454. this.tableЗапрос_ВнеплановаяПоставка = new Запрос_ВнеплановаяПоставкаDataTable();
  455. base.Tables.Add(this.tableЗапрос_ВнеплановаяПоставка);
  456. this._tableЗапрос_Заказы_ДоговораЗаказов = new _Запрос_Заказы_ДоговораЗаказовDataTable();
  457. base.Tables.Add(this._tableЗапрос_Заказы_ДоговораЗаказов);
  458. this.tableЗапрос_ПлановаяПоставка = new Запрос_ПлановаяПоставкаDataTable();
  459. base.Tables.Add(this.tableЗапрос_ПлановаяПоставка);
  460. this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия = new Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable();
  461. base.Tables.Add(this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия);
  462. this.tableЗапрос_ФИОЗаказавшихМебель = new Запрос_ФИОЗаказавшихМебельDataTable();
  463. base.Tables.Add(this.tableЗапрос_ФИОЗаказавшихМебель);
  464. this.relationFK_Заказы_ДоговорЗаказа = new global::System.Data.DataRelation("FK_Заказы_ДоговорЗаказа", new global::System.Data.DataColumn[] {
  465. this.tableДоговорЗаказа.КодДоговораColumn}, new global::System.Data.DataColumn[] {
  466. this.tableЗаказы.КодДоговораColumn}, false);
  467. this.Relations.Add(this.relationFK_Заказы_ДоговорЗаказа);
  468. this.relationFK_Заказы_Заказчик = new global::System.Data.DataRelation("FK_Заказы_Заказчик", new global::System.Data.DataColumn[] {
  469. this.tableЗаказчик.КодЗаказчикаColumn}, new global::System.Data.DataColumn[] {
  470. this.tableЗаказы.КодЗаказчикаColumn}, false);
  471. this.Relations.Add(this.relationFK_Заказы_Заказчик);
  472. this.relationFK_Заказы_Отгрузка = new global::System.Data.DataRelation("FK_Заказы_Отгрузка", new global::System.Data.DataColumn[] {
  473. this.tableОтгрузка.КодОтгрузкиColumn}, new global::System.Data.DataColumn[] {
  474. this.tableЗаказы.КодОтгрузкиColumn}, false);
  475. this.Relations.Add(this.relationFK_Заказы_Отгрузка);
  476. this.relationFK_Заказы_Товары = new global::System.Data.DataRelation("FK_Заказы_Товары", new global::System.Data.DataColumn[] {
  477. this.tableТовары.КодТовараColumn}, new global::System.Data.DataColumn[] {
  478. this.tableЗаказы.КодТовараColumn}, false);
  479. this.Relations.Add(this.relationFK_Заказы_Товары);
  480. this.relationFK_ОтгрузкаТовара_Отгрузка = new global::System.Data.DataRelation("FK_ОтгрузкаТовара_Отгрузка", new global::System.Data.DataColumn[] {
  481. this.tableОтгрузка.КодОтгрузкиColumn}, new global::System.Data.DataColumn[] {
  482. this.tableОтгрузкаТовара.КодОтгрузкиColumn}, false);
  483. this.Relations.Add(this.relationFK_ОтгрузкаТовара_Отгрузка);
  484. this.relationFK_ОтгрузкаТовара_Товары = new global::System.Data.DataRelation("FK_ОтгрузкаТовара_Товары", new global::System.Data.DataColumn[] {
  485. this.tableТовары.КодТовараColumn}, new global::System.Data.DataColumn[] {
  486. this.tableОтгрузкаТовара.КодТовараColumn}, false);
  487. this.Relations.Add(this.relationFK_ОтгрузкаТовара_Товары);
  488. }
  489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  491. private bool ShouldSerializeДоговорЗаказа() {
  492. return false;
  493. }
  494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  496. private bool ShouldSerializeЗаказчик() {
  497. return false;
  498. }
  499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  501. private bool ShouldSerializeЗаказы() {
  502. return false;
  503. }
  504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  506. private bool ShouldSerializeОтгрузка() {
  507. return false;
  508. }
  509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  511. private bool ShouldSerializeОтгрузкаТовара() {
  512. return false;
  513. }
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  516. private bool ShouldSerializeТовары() {
  517. return false;
  518. }
  519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  521. private bool ShouldSerializeView_1() {
  522. return false;
  523. }
  524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  526. private bool ShouldSerializeЗапрос_ВнеплановаяПоставка() {
  527. return false;
  528. }
  529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  531. private bool ShouldSerialize_Запрос_Заказы_ДоговораЗаказов() {
  532. return false;
  533. }
  534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  536. private bool ShouldSerializeЗапрос_ПлановаяПоставка() {
  537. return false;
  538. }
  539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  541. private bool ShouldSerializeЗапрос_ФИОЗаказавшихКерамическиеИзделия() {
  542. return false;
  543. }
  544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  546. private bool ShouldSerializeЗапрос_ФИОЗаказавшихМебель() {
  547. return false;
  548. }
  549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  551. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  552. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  553. this.InitVars();
  554. }
  555. }
  556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  558. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  559. PostavkaTovarovDataSet ds = new PostavkaTovarovDataSet();
  560. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  561. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  562. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  563. any.Namespace = ds.Namespace;
  564. sequence.Items.Add(any);
  565. type.Particle = sequence;
  566. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  567. if (xs.Contains(dsSchema.TargetNamespace)) {
  568. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  569. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  570. try {
  571. global::System.Xml.Schema.XmlSchema schema = null;
  572. dsSchema.Write(s1);
  573. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  574. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  575. s2.SetLength(0);
  576. schema.Write(s2);
  577. if ((s1.Length == s2.Length)) {
  578. s1.Position = 0;
  579. s2.Position = 0;
  580. for (; ((s1.Position != s1.Length)
  581. && (s1.ReadByte() == s2.ReadByte())); ) {
  582. ;
  583. }
  584. if ((s1.Position == s1.Length)) {
  585. return type;
  586. }
  587. }
  588. }
  589. }
  590. finally {
  591. if ((s1 != null)) {
  592. s1.Close();
  593. }
  594. if ((s2 != null)) {
  595. s2.Close();
  596. }
  597. }
  598. }
  599. xs.Add(dsSchema);
  600. return type;
  601. }
  602. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  603. public delegate void ДоговорЗаказаRowChangeEventHandler(object sender, ДоговорЗаказаRowChangeEvent e);
  604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  605. public delegate void ЗаказчикRowChangeEventHandler(object sender, ЗаказчикRowChangeEvent e);
  606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  607. public delegate void ЗаказыRowChangeEventHandler(object sender, ЗаказыRowChangeEvent e);
  608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  609. public delegate void ОтгрузкаRowChangeEventHandler(object sender, ОтгрузкаRowChangeEvent e);
  610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  611. public delegate void ОтгрузкаТовараRowChangeEventHandler(object sender, ОтгрузкаТовараRowChangeEvent e);
  612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  613. public delegate void ТоварыRowChangeEventHandler(object sender, ТоварыRowChangeEvent e);
  614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  615. public delegate void View_1RowChangeEventHandler(object sender, View_1RowChangeEvent e);
  616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  617. public delegate void Запрос_ВнеплановаяПоставкаRowChangeEventHandler(object sender, Запрос_ВнеплановаяПоставкаRowChangeEvent e);
  618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  619. public delegate void _Запрос_Заказы_ДоговораЗаказовRowChangeEventHandler(object sender, _Запрос_Заказы_ДоговораЗаказовRowChangeEvent e);
  620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  621. public delegate void Запрос_ПлановаяПоставкаRowChangeEventHandler(object sender, Запрос_ПлановаяПоставкаRowChangeEvent e);
  622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  623. public delegate void Запрос_ФИОЗаказавшихКерамическиеИзделияRowChangeEventHandler(object sender, Запрос_ФИОЗаказавшихКерамическиеИзделияRowChangeEvent e);
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  625. public delegate void Запрос_ФИОЗаказавшихМебельRowChangeEventHandler(object sender, Запрос_ФИОЗаказавшихМебельRowChangeEvent e);
  626. /// <summary>
  627. ///Represents the strongly named DataTable class.
  628. ///</summary>
  629. [global::System.Serializable()]
  630. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  631. public partial class ДоговорЗаказаDataTable : global::System.Data.TypedTableBase<ДоговорЗаказаRow> {
  632. private global::System.Data.DataColumn columnКодДоговора;
  633. private global::System.Data.DataColumn columnДатаЗаключения;
  634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  636. public ДоговорЗаказаDataTable() {
  637. this.TableName = "ДоговорЗаказа";
  638. this.BeginInit();
  639. this.InitClass();
  640. this.EndInit();
  641. }
  642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  644. internal ДоговорЗаказаDataTable(global::System.Data.DataTable table) {
  645. this.TableName = table.TableName;
  646. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  647. this.CaseSensitive = table.CaseSensitive;
  648. }
  649. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  650. this.Locale = table.Locale;
  651. }
  652. if ((table.Namespace != table.DataSet.Namespace)) {
  653. this.Namespace = table.Namespace;
  654. }
  655. this.Prefix = table.Prefix;
  656. this.MinimumCapacity = table.MinimumCapacity;
  657. }
  658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  660. protected ДоговорЗаказаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  661. base(info, context) {
  662. this.InitVars();
  663. }
  664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  666. public global::System.Data.DataColumn КодДоговораColumn {
  667. get {
  668. return this.columnКодДоговора;
  669. }
  670. }
  671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  673. public global::System.Data.DataColumn ДатаЗаключенияColumn {
  674. get {
  675. return this.columnДатаЗаключения;
  676. }
  677. }
  678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  680. [global::System.ComponentModel.Browsable(false)]
  681. public int Count {
  682. get {
  683. return this.Rows.Count;
  684. }
  685. }
  686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  688. public ДоговорЗаказаRow this[int index] {
  689. get {
  690. return ((ДоговорЗаказаRow)(this.Rows[index]));
  691. }
  692. }
  693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  694. public event ДоговорЗаказаRowChangeEventHandler ДоговорЗаказаRowChanging;
  695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  696. public event ДоговорЗаказаRowChangeEventHandler ДоговорЗаказаRowChanged;
  697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  698. public event ДоговорЗаказаRowChangeEventHandler ДоговорЗаказаRowDeleting;
  699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  700. public event ДоговорЗаказаRowChangeEventHandler ДоговорЗаказаRowDeleted;
  701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  703. public void AddДоговорЗаказаRow(ДоговорЗаказаRow row) {
  704. this.Rows.Add(row);
  705. }
  706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  708. public ДоговорЗаказаRow AddДоговорЗаказаRow(System.DateTime ДатаЗаключения) {
  709. ДоговорЗаказаRow rowДоговорЗаказаRow = ((ДоговорЗаказаRow)(this.NewRow()));
  710. object[] columnValuesArray = new object[] {
  711. null,
  712. ДатаЗаключения};
  713. rowДоговорЗаказаRow.ItemArray = columnValuesArray;
  714. this.Rows.Add(rowДоговорЗаказаRow);
  715. return rowДоговорЗаказаRow;
  716. }
  717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  719. public ДоговорЗаказаRow FindByКодДоговора(long КодДоговора) {
  720. return ((ДоговорЗаказаRow)(this.Rows.Find(new object[] {
  721. КодДоговора})));
  722. }
  723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  725. public override global::System.Data.DataTable Clone() {
  726. ДоговорЗаказаDataTable cln = ((ДоговорЗаказаDataTable)(base.Clone()));
  727. cln.InitVars();
  728. return cln;
  729. }
  730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  732. protected override global::System.Data.DataTable CreateInstance() {
  733. return new ДоговорЗаказаDataTable();
  734. }
  735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  737. internal void InitVars() {
  738. this.columnКодДоговора = base.Columns["КодДоговора"];
  739. this.columnДатаЗаключения = base.Columns["ДатаЗаключения"];
  740. }
  741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  743. private void InitClass() {
  744. this.columnКодДоговора = new global::System.Data.DataColumn("КодДоговора", typeof(long), null, global::System.Data.MappingType.Element);
  745. base.Columns.Add(this.columnКодДоговора);
  746. this.columnДатаЗаключения = new global::System.Data.DataColumn("ДатаЗаключения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  747. base.Columns.Add(this.columnДатаЗаключения);
  748. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  749. this.columnКодДоговора}, true));
  750. this.columnКодДоговора.AutoIncrement = true;
  751. this.columnКодДоговора.AutoIncrementSeed = -1;
  752. this.columnКодДоговора.AutoIncrementStep = -1;
  753. this.columnКодДоговора.AllowDBNull = false;
  754. this.columnКодДоговора.ReadOnly = true;
  755. this.columnКодДоговора.Unique = true;
  756. }
  757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  759. public ДоговорЗаказаRow NewДоговорЗаказаRow() {
  760. return ((ДоговорЗаказаRow)(this.NewRow()));
  761. }
  762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  764. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  765. return new ДоговорЗаказаRow(builder);
  766. }
  767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  769. protected override global::System.Type GetRowType() {
  770. return typeof(ДоговорЗаказаRow);
  771. }
  772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  774. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  775. base.OnRowChanged(e);
  776. if ((this.ДоговорЗаказаRowChanged != null)) {
  777. this.ДоговорЗаказаRowChanged(this, new ДоговорЗаказаRowChangeEvent(((ДоговорЗаказаRow)(e.Row)), e.Action));
  778. }
  779. }
  780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  782. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  783. base.OnRowChanging(e);
  784. if ((this.ДоговорЗаказаRowChanging != null)) {
  785. this.ДоговорЗаказаRowChanging(this, new ДоговорЗаказаRowChangeEvent(((ДоговорЗаказаRow)(e.Row)), e.Action));
  786. }
  787. }
  788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  790. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  791. base.OnRowDeleted(e);
  792. if ((this.ДоговорЗаказаRowDeleted != null)) {
  793. this.ДоговорЗаказаRowDeleted(this, new ДоговорЗаказаRowChangeEvent(((ДоговорЗаказаRow)(e.Row)), e.Action));
  794. }
  795. }
  796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  798. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  799. base.OnRowDeleting(e);
  800. if ((this.ДоговорЗаказаRowDeleting != null)) {
  801. this.ДоговорЗаказаRowDeleting(this, new ДоговорЗаказаRowChangeEvent(((ДоговорЗаказаRow)(e.Row)), e.Action));
  802. }
  803. }
  804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  806. public void RemoveДоговорЗаказаRow(ДоговорЗаказаRow row) {
  807. this.Rows.Remove(row);
  808. }
  809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  811. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  812. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  813. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  814. PostavkaTovarovDataSet ds = new PostavkaTovarovDataSet();
  815. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  816. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  817. any1.MinOccurs = new decimal(0);
  818. any1.MaxOccurs = decimal.MaxValue;
  819. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  820. sequence.Items.Add(any1);
  821. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  822. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  823. any2.MinOccurs = new decimal(1);
  824. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  825. sequence.Items.Add(any2);
  826. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  827. attribute1.Name = "namespace";
  828. attribute1.FixedValue = ds.Namespace;
  829. type.Attributes.Add(attribute1);
  830. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  831. attribute2.Name = "tableTypeName";
  832. attribute2.FixedValue = "ДоговорЗаказаDataTable";
  833. type.Attributes.Add(attribute2);
  834. type.Particle = sequence;
  835. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  836. if (xs.Contains(dsSchema.TargetNamespace)) {
  837. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  838. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  839. try {
  840. global::System.Xml.Schema.XmlSchema schema = null;
  841. dsSchema.Write(s1);
  842. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  843. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  844. s2.SetLength(0);
  845. schema.Write(s2);
  846. if ((s1.Length == s2.Length)) {
  847. s1.Position = 0;
  848. s2.Position = 0;
  849. for (; ((s1.Position != s1.Length)
  850. && (s1.ReadByte() == s2.ReadByte())); ) {
  851. ;
  852. }
  853. if ((s1.Position == s1.Length)) {
  854. return type;
  855. }
  856. }
  857. }
  858. }
  859. finally {
  860. if ((s1 != null)) {
  861. s1.Close();
  862. }
  863. if ((s2 != null)) {
  864. s2.Close();
  865. }
  866. }
  867. }
  868. xs.Add(dsSchema);
  869. return type;
  870. }
  871. }
  872. /// <summary>
  873. ///Represents the strongly named DataTable class.
  874. ///</summary>
  875. [global::System.Serializable()]
  876. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  877. public partial class ЗаказчикDataTable : global::System.Data.TypedTableBase<ЗаказчикRow> {
  878. private global::System.Data.DataColumn columnКодЗаказчика;
  879. private global::System.Data.DataColumn columnФИО;
  880. private global::System.Data.DataColumn columnТелефон;
  881. private global::System.Data.DataColumn columnАдрес;
  882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  884. public ЗаказчикDataTable() {
  885. this.TableName = "Заказчик";
  886. this.BeginInit();
  887. this.InitClass();
  888. this.EndInit();
  889. }
  890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  892. internal ЗаказчикDataTable(global::System.Data.DataTable table) {
  893. this.TableName = table.TableName;
  894. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  895. this.CaseSensitive = table.CaseSensitive;
  896. }
  897. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  898. this.Locale = table.Locale;
  899. }
  900. if ((table.Namespace != table.DataSet.Namespace)) {
  901. this.Namespace = table.Namespace;
  902. }
  903. this.Prefix = table.Prefix;
  904. this.MinimumCapacity = table.MinimumCapacity;
  905. }
  906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  908. protected ЗаказчикDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  909. base(info, context) {
  910. this.InitVars();
  911. }
  912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  914. public global::System.Data.DataColumn КодЗаказчикаColumn {
  915. get {
  916. return this.columnКодЗаказчика;
  917. }
  918. }
  919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  921. public global::System.Data.DataColumn ФИОColumn {
  922. get {
  923. return this.columnФИО;
  924. }
  925. }
  926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  928. public global::System.Data.DataColumn ТелефонColumn {
  929. get {
  930. return this.columnТелефон;
  931. }
  932. }
  933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  935. public global::System.Data.DataColumn АдресColumn {
  936. get {
  937. return this.columnАдрес;
  938. }
  939. }
  940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  942. [global::System.ComponentModel.Browsable(false)]
  943. public int Count {
  944. get {
  945. return this.Rows.Count;
  946. }
  947. }
  948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  950. public ЗаказчикRow this[int index] {
  951. get {
  952. return ((ЗаказчикRow)(this.Rows[index]));
  953. }
  954. }
  955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  956. public event ЗаказчикRowChangeEventHandler ЗаказчикRowChanging;
  957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  958. public event ЗаказчикRowChangeEventHandler ЗаказчикRowChanged;
  959. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  960. public event ЗаказчикRowChangeEventHandler ЗаказчикRowDeleting;
  961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  962. public event ЗаказчикRowChangeEventHandler ЗаказчикRowDeleted;
  963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  965. public void AddЗаказчикRow(ЗаказчикRow row) {
  966. this.Rows.Add(row);
  967. }
  968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  970. public ЗаказчикRow AddЗаказчикRow(string ФИО, string Телефон, string Адрес) {
  971. ЗаказчикRow rowЗаказчикRow = ((ЗаказчикRow)(this.NewRow()));
  972. object[] columnValuesArray = new object[] {
  973. null,
  974. ФИО,
  975. Телефон,
  976. Адрес};
  977. rowЗаказчикRow.ItemArray = columnValuesArray;
  978. this.Rows.Add(rowЗаказчикRow);
  979. return rowЗаказчикRow;
  980. }
  981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  983. public ЗаказчикRow FindByКодЗаказчика(long КодЗаказчика) {
  984. return ((ЗаказчикRow)(this.Rows.Find(new object[] {
  985. КодЗаказчика})));
  986. }
  987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  989. public override global::System.Data.DataTable Clone() {
  990. ЗаказчикDataTable cln = ((ЗаказчикDataTable)(base.Clone()));
  991. cln.InitVars();
  992. return cln;
  993. }
  994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  996. protected override global::System.Data.DataTable CreateInstance() {
  997. return new ЗаказчикDataTable();
  998. }
  999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1001. internal void InitVars() {
  1002. this.columnКодЗаказчика = base.Columns["КодЗаказчика"];
  1003. this.columnФИО = base.Columns["ФИО"];
  1004. this.columnТелефон = base.Columns["Телефон"];
  1005. this.columnАдрес = base.Columns["Адрес"];
  1006. }
  1007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1009. private void InitClass() {
  1010. this.columnКодЗаказчика = new global::System.Data.DataColumn("КодЗаказчика", typeof(long), null, global::System.Data.MappingType.Element);
  1011. base.Columns.Add(this.columnКодЗаказчика);
  1012. this.columnФИО = new global::System.Data.DataColumn("ФИО", typeof(string), null, global::System.Data.MappingType.Element);
  1013. base.Columns.Add(this.columnФИО);
  1014. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  1015. base.Columns.Add(this.columnТелефон);
  1016. this.columnАдрес = new global::System.Data.DataColumn("Адрес", typeof(string), null, global::System.Data.MappingType.Element);
  1017. base.Columns.Add(this.columnАдрес);
  1018. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1019. this.columnКодЗаказчика}, true));
  1020. this.columnКодЗаказчика.AutoIncrement = true;
  1021. this.columnКодЗаказчика.AutoIncrementSeed = -1;
  1022. this.columnКодЗаказчика.AutoIncrementStep = -1;
  1023. this.columnКодЗаказчика.AllowDBNull = false;
  1024. this.columnКодЗаказчика.ReadOnly = true;
  1025. this.columnКодЗаказчика.Unique = true;
  1026. this.columnФИО.MaxLength = 100;
  1027. this.columnТелефон.MaxLength = 11;
  1028. this.columnАдрес.MaxLength = 100;
  1029. }
  1030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1032. public ЗаказчикRow NewЗаказчикRow() {
  1033. return ((ЗаказчикRow)(this.NewRow()));
  1034. }
  1035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1037. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1038. return new ЗаказчикRow(builder);
  1039. }
  1040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1042. protected override global::System.Type GetRowType() {
  1043. return typeof(ЗаказчикRow);
  1044. }
  1045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1047. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1048. base.OnRowChanged(e);
  1049. if ((this.ЗаказчикRowChanged != null)) {
  1050. this.ЗаказчикRowChanged(this, new ЗаказчикRowChangeEvent(((ЗаказчикRow)(e.Row)), e.Action));
  1051. }
  1052. }
  1053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1055. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1056. base.OnRowChanging(e);
  1057. if ((this.ЗаказчикRowChanging != null)) {
  1058. this.ЗаказчикRowChanging(this, new ЗаказчикRowChangeEvent(((ЗаказчикRow)(e.Row)), e.Action));
  1059. }
  1060. }
  1061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1063. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1064. base.OnRowDeleted(e);
  1065. if ((this.ЗаказчикRowDeleted != null)) {
  1066. this.ЗаказчикRowDeleted(this, new ЗаказчикRowChangeEvent(((ЗаказчикRow)(e.Row)), e.Action));
  1067. }
  1068. }
  1069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1071. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1072. base.OnRowDeleting(e);
  1073. if ((this.ЗаказчикRowDeleting != null)) {
  1074. this.ЗаказчикRowDeleting(this, new ЗаказчикRowChangeEvent(((ЗаказчикRow)(e.Row)), e.Action));
  1075. }
  1076. }
  1077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1079. public void RemoveЗаказчикRow(ЗаказчикRow row) {
  1080. this.Rows.Remove(row);
  1081. }
  1082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1084. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1085. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1086. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1087. PostavkaTovarovDataSet ds = new PostavkaTovarovDataSet();
  1088. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1089. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1090. any1.MinOccurs = new decimal(0);
  1091. any1.MaxOccurs = decimal.MaxValue;
  1092. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1093. sequence.Items.Add(any1);
  1094. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1095. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1096. any2.MinOccurs = new decimal(1);
  1097. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1098. sequence.Items.Add(any2);
  1099. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1100. attribute1.Name = "namespace";
  1101. attribute1.FixedValue = ds.Namespace;
  1102. type.Attributes.Add(attribute1);
  1103. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1104. attribute2.Name = "tableTypeName";
  1105. attribute2.FixedValue = "ЗаказчикDataTable";
  1106. type.Attributes.Add(attribute2);
  1107. type.Particle = sequence;
  1108. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1109. if (xs.Contains(dsSchema.TargetNamespace)) {
  1110. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1111. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1112. try {
  1113. global::System.Xml.Schema.XmlSchema schema = null;
  1114. dsSchema.Write(s1);
  1115. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1116. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1117. s2.SetLength(0);
  1118. schema.Write(s2);
  1119. if ((s1.Length == s2.Length)) {
  1120. s1.Position = 0;
  1121. s2.Position = 0;
  1122. for (; ((s1.Position != s1.Length)
  1123. && (s1.ReadByte() == s2.ReadByte())); ) {
  1124. ;
  1125. }
  1126. if ((s1.Position == s1.Length)) {
  1127. return type;
  1128. }
  1129. }
  1130. }
  1131. }
  1132. finally {
  1133. if ((s1 != null)) {
  1134. s1.Close();
  1135. }
  1136. if ((s2 != null)) {
  1137. s2.Close();
  1138. }
  1139. }
  1140. }
  1141. xs.Add(dsSchema);
  1142. return type;
  1143. }
  1144. }
  1145. /// <summary>
  1146. ///Represents the strongly named DataTable class.
  1147. ///</summary>
  1148. [global::System.Serializable()]
  1149. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1150. public partial class ЗаказыDataTable : global::System.Data.TypedTableBase<ЗаказыRow> {
  1151. private global::System.Data.DataColumn columnКодЗаказа;
  1152. private global::System.Data.DataColumn columnНаименованиеЗаказа;
  1153. private global::System.Data.DataColumn columnПлановаяПоставка;
  1154. private global::System.Data.DataColumn columnКодТовара;
  1155. private global::System.Data.DataColumn columnКодЗаказчика;
  1156. private global::System.Data.DataColumn columnКодДоговора;
  1157. private global::System.Data.DataColumn columnКодОтгрузки;
  1158. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1159. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1160. public ЗаказыDataTable() {
  1161. this.TableName = "Заказы";
  1162. this.BeginInit();
  1163. this.InitClass();
  1164. this.EndInit();
  1165. }
  1166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1168. internal ЗаказыDataTable(global::System.Data.DataTable table) {
  1169. this.TableName = table.TableName;
  1170. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1171. this.CaseSensitive = table.CaseSensitive;
  1172. }
  1173. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1174. this.Locale = table.Locale;
  1175. }
  1176. if ((table.Namespace != table.DataSet.Namespace)) {
  1177. this.Namespace = table.Namespace;
  1178. }
  1179. this.Prefix = table.Prefix;
  1180. this.MinimumCapacity = table.MinimumCapacity;
  1181. }
  1182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1184. protected ЗаказыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1185. base(info, context) {
  1186. this.InitVars();
  1187. }
  1188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1190. public global::System.Data.DataColumn КодЗаказаColumn {
  1191. get {
  1192. return this.columnКодЗаказа;
  1193. }
  1194. }
  1195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1197. public global::System.Data.DataColumn НаименованиеЗаказаColumn {
  1198. get {
  1199. return this.columnНаименованиеЗаказа;
  1200. }
  1201. }
  1202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1204. public global::System.Data.DataColumn ПлановаяПоставкаColumn {
  1205. get {
  1206. return this.columnПлановаяПоставка;
  1207. }
  1208. }
  1209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1211. public global::System.Data.DataColumn КодТовараColumn {
  1212. get {
  1213. return this.columnКодТовара;
  1214. }
  1215. }
  1216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1218. public global::System.Data.DataColumn КодЗаказчикаColumn {
  1219. get {
  1220. return this.columnКодЗаказчика;
  1221. }
  1222. }
  1223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1225. public global::System.Data.DataColumn КодДоговораColumn {
  1226. get {
  1227. return this.columnКодДоговора;
  1228. }
  1229. }
  1230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1232. public global::System.Data.DataColumn КодОтгрузкиColumn {
  1233. get {
  1234. return this.columnКодОтгрузки;
  1235. }
  1236. }
  1237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1239. [global::System.ComponentModel.Browsable(false)]
  1240. public int Count {
  1241. get {
  1242. return this.Rows.Count;
  1243. }
  1244. }
  1245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1247. public ЗаказыRow this[int index] {
  1248. get {
  1249. return ((ЗаказыRow)(this.Rows[index]));
  1250. }
  1251. }
  1252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1253. public event ЗаказыRowChangeEventHandler ЗаказыRowChanging;
  1254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1255. public event ЗаказыRowChangeEventHandler ЗаказыRowChanged;
  1256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1257. public event ЗаказыRowChangeEventHandler ЗаказыRowDeleting;
  1258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1259. public event ЗаказыRowChangeEventHandler ЗаказыRowDeleted;
  1260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1262. public void AddЗаказыRow(ЗаказыRow row) {
  1263. this.Rows.Add(row);
  1264. }
  1265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1267. public ЗаказыRow AddЗаказыRow(string НаименованиеЗаказа, bool ПлановаяПоставка, ТоварыRow parentТоварыRowByFK_Заказы_Товары, ЗаказчикRow parentЗаказчикRowByFK_Заказы_Заказчик, ДоговорЗаказаRow parentДоговорЗаказаRowByFK_Заказы_ДоговорЗаказа, ОтгрузкаRow parentОтгрузкаRowByFK_Заказы_Отгрузка) {
  1268. ЗаказыRow rowЗаказыRow = ((ЗаказыRow)(this.NewRow()));
  1269. object[] columnValuesArray = new object[] {
  1270. null,
  1271. НаименованиеЗаказа,
  1272. ПлановаяПоставка,
  1273. null,
  1274. null,
  1275. null,
  1276. null};
  1277. if ((parentТоварыRowByFK_Заказы_Товары != null)) {
  1278. columnValuesArray[3] = parentТоварыRowByFK_Заказы_Товары[0];
  1279. }
  1280. if ((parentЗаказчикRowByFK_Заказы_Заказчик != null)) {
  1281. columnValuesArray[4] = parentЗаказчикRowByFK_Заказы_Заказчик[0];
  1282. }
  1283. if ((parentДоговорЗаказаRowByFK_Заказы_ДоговорЗаказа != null)) {
  1284. columnValuesArray[5] = parentДоговорЗаказаRowByFK_Заказы_ДоговорЗаказа[0];
  1285. }
  1286. if ((parentОтгрузкаRowByFK_Заказы_Отгрузка != null)) {
  1287. columnValuesArray[6] = parentОтгрузкаRowByFK_Заказы_Отгрузка[0];
  1288. }
  1289. rowЗаказыRow.ItemArray = columnValuesArray;
  1290. this.Rows.Add(rowЗаказыRow);
  1291. return rowЗаказыRow;
  1292. }
  1293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1295. public ЗаказыRow FindByКодЗаказа(long КодЗаказа) {
  1296. return ((ЗаказыRow)(this.Rows.Find(new object[] {
  1297. КодЗаказа})));
  1298. }
  1299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1301. public override global::System.Data.DataTable Clone() {
  1302. ЗаказыDataTable cln = ((ЗаказыDataTable)(base.Clone()));
  1303. cln.InitVars();
  1304. return cln;
  1305. }
  1306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1308. protected override global::System.Data.DataTable CreateInstance() {
  1309. return new ЗаказыDataTable();
  1310. }
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1313. internal void InitVars() {
  1314. this.columnКодЗаказа = base.Columns["КодЗаказа"];
  1315. this.columnНаименованиеЗаказа = base.Columns["НаименованиеЗаказа"];
  1316. this.columnПлановаяПоставка = base.Columns["ПлановаяПоставка"];
  1317. this.columnКодТовара = base.Columns["КодТовара"];
  1318. this.columnКодЗаказчика = base.Columns["КодЗаказчика"];
  1319. this.columnКодДоговора = base.Columns["КодДоговора"];
  1320. this.columnКодОтгрузки = base.Columns["КодОтгрузки"];
  1321. }
  1322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1324. private void InitClass() {
  1325. this.columnКодЗаказа = new global::System.Data.DataColumn("КодЗаказа", typeof(long), null, global::System.Data.MappingType.Element);
  1326. base.Columns.Add(this.columnКодЗаказа);
  1327. this.columnНаименованиеЗаказа = new global::System.Data.DataColumn("НаименованиеЗаказа", typeof(string), null, global::System.Data.MappingType.Element);
  1328. base.Columns.Add(this.columnНаименованиеЗаказа);
  1329. this.columnПлановаяПоставка = new global::System.Data.DataColumn("ПлановаяПоставка", typeof(bool), null, global::System.Data.MappingType.Element);
  1330. base.Columns.Add(this.columnПлановаяПоставка);
  1331. this.columnКодТовара = new global::System.Data.DataColumn("КодТовара", typeof(long), null, global::System.Data.MappingType.Element);
  1332. base.Columns.Add(this.columnКодТовара);
  1333. this.columnКодЗаказчика = new global::System.Data.DataColumn("КодЗаказчика", typeof(long), null, global::System.Data.MappingType.Element);
  1334. base.Columns.Add(this.columnКодЗаказчика);
  1335. this.columnКодДоговора = new global::System.Data.DataColumn("КодДоговора", typeof(long), null, global::System.Data.MappingType.Element);
  1336. base.Columns.Add(this.columnКодДоговора);
  1337. this.columnКодОтгрузки = new global::System.Data.DataColumn("КодОтгрузки", typeof(long), null, global::System.Data.MappingType.Element);
  1338. base.Columns.Add(this.columnКодОтгрузки);
  1339. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1340. this.columnКодЗаказа}, true));
  1341. this.columnКодЗаказа.AutoIncrement = true;
  1342. this.columnКодЗаказа.AutoIncrementSeed = -1;
  1343. this.columnКодЗаказа.AutoIncrementStep = -1;
  1344. this.columnКодЗаказа.AllowDBNull = false;
  1345. this.columnКодЗаказа.ReadOnly = true;
  1346. this.columnКодЗаказа.Unique = true;
  1347. this.columnНаименованиеЗаказа.MaxLength = 2147483647;
  1348. }
  1349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1351. public ЗаказыRow NewЗаказыRow() {
  1352. return ((ЗаказыRow)(this.NewRow()));
  1353. }
  1354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1356. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1357. return new ЗаказыRow(builder);
  1358. }
  1359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1361. protected override global::System.Type GetRowType() {
  1362. return typeof(ЗаказыRow);
  1363. }
  1364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1366. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1367. base.OnRowChanged(e);
  1368. if ((this.ЗаказыRowChanged != null)) {
  1369. this.ЗаказыRowChanged(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1370. }
  1371. }
  1372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1374. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1375. base.OnRowChanging(e);
  1376. if ((this.ЗаказыRowChanging != null)) {
  1377. this.ЗаказыRowChanging(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1378. }
  1379. }
  1380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1382. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1383. base.OnRowDeleted(e);
  1384. if ((this.ЗаказыRowDeleted != null)) {
  1385. this.ЗаказыRowDeleted(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1386. }
  1387. }
  1388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1390. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1391. base.OnRowDeleting(e);
  1392. if ((this.ЗаказыRowDeleting != null)) {
  1393. this.ЗаказыRowDeleting(this, new ЗаказыRowChangeEvent(((ЗаказыRow)(e.Row)), e.Action));
  1394. }
  1395. }
  1396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1398. public void RemoveЗаказыRow(ЗаказыRow row) {
  1399. this.Rows.Remove(row);
  1400. }
  1401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1403. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1404. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1405. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1406. PostavkaTovarovDataSet ds = new PostavkaTovarovDataSet();
  1407. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1408. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1409. any1.MinOccurs = new decimal(0);
  1410. any1.MaxOccurs = decimal.MaxValue;
  1411. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1412. sequence.Items.Add(any1);
  1413. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1414. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1415. any2.MinOccurs = new decimal(1);
  1416. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1417. sequence.Items.Add(any2);
  1418. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1419. attribute1.Name = "namespace";
  1420. attribute1.FixedValue = ds.Namespace;
  1421. type.Attributes.Add(attribute1);
  1422. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1423. attribute2.Name = "tableTypeName";
  1424. attribute2.FixedValue = "ЗаказыDataTable";
  1425. type.Attributes.Add(attribute2);
  1426. type.Particle = sequence;
  1427. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1428. if (xs.Contains(dsSchema.TargetNamespace)) {
  1429. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1430. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1431. try {
  1432. global::System.Xml.Schema.XmlSchema schema = null;
  1433. dsSchema.Write(s1);
  1434. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1435. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1436. s2.SetLength(0);
  1437. schema.Write(s2);
  1438. if ((s1.Length == s2.Length)) {
  1439. s1.Position = 0;
  1440. s2.Position = 0;
  1441. for (; ((s1.Position != s1.Length)
  1442. && (s1.ReadByte() == s2.ReadByte())); ) {
  1443. ;
  1444. }
  1445. if ((s1.Position == s1.Length)) {
  1446. return type;
  1447. }
  1448. }
  1449. }
  1450. }
  1451. finally {
  1452. if ((s1 != null)) {
  1453. s1.Close();
  1454. }
  1455. if ((s2 != null)) {
  1456. s2.Close();
  1457. }
  1458. }
  1459. }
  1460. xs.Add(dsSchema);
  1461. return type;
  1462. }
  1463. }
  1464. /// <summary>
  1465. ///Represents the strongly named DataTable class.
  1466. ///</summary>
  1467. [global::System.Serializable()]
  1468. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1469. public partial class ОтгрузкаDataTable : global::System.Data.TypedTableBase<ОтгрузкаRow> {
  1470. private global::System.Data.DataColumn columnКодОтгрузки;
  1471. private global::System.Data.DataColumn columnДатаОтгрузки;
  1472. private global::System.Data.DataColumn columnОтгруженоТовара;
  1473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1475. public ОтгрузкаDataTable() {
  1476. this.TableName = "Отгрузка";
  1477. this.BeginInit();
  1478. this.InitClass();
  1479. this.EndInit();
  1480. }
  1481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1483. internal ОтгрузкаDataTable(global::System.Data.DataTable table) {
  1484. this.TableName = table.TableName;
  1485. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1486. this.CaseSensitive = table.CaseSensitive;
  1487. }
  1488. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1489. this.Locale = table.Locale;
  1490. }
  1491. if ((table.Namespace != table.DataSet.Namespace)) {
  1492. this.Namespace = table.Namespace;
  1493. }
  1494. this.Prefix = table.Prefix;
  1495. this.MinimumCapacity = table.MinimumCapacity;
  1496. }
  1497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1499. protected ОтгрузкаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1500. base(info, context) {
  1501. this.InitVars();
  1502. }
  1503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1505. public global::System.Data.DataColumn КодОтгрузкиColumn {
  1506. get {
  1507. return this.columnКодОтгрузки;
  1508. }
  1509. }
  1510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1512. public global::System.Data.DataColumn ДатаОтгрузкиColumn {
  1513. get {
  1514. return this.columnДатаОтгрузки;
  1515. }
  1516. }
  1517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1519. public global::System.Data.DataColumn ОтгруженоТовараColumn {
  1520. get {
  1521. return this.columnОтгруженоТовара;
  1522. }
  1523. }
  1524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1526. [global::System.ComponentModel.Browsable(false)]
  1527. public int Count {
  1528. get {
  1529. return this.Rows.Count;
  1530. }
  1531. }
  1532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1534. public ОтгрузкаRow this[int index] {
  1535. get {
  1536. return ((ОтгрузкаRow)(this.Rows[index]));
  1537. }
  1538. }
  1539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1540. public event ОтгрузкаRowChangeEventHandler ОтгрузкаRowChanging;
  1541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1542. public event ОтгрузкаRowChangeEventHandler ОтгрузкаRowChanged;
  1543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1544. public event ОтгрузкаRowChangeEventHandler ОтгрузкаRowDeleting;
  1545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1546. public event ОтгрузкаRowChangeEventHandler ОтгрузкаRowDeleted;
  1547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1549. public void AddОтгрузкаRow(ОтгрузкаRow row) {
  1550. this.Rows.Add(row);
  1551. }
  1552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1554. public ОтгрузкаRow AddОтгрузкаRow(System.DateTime ДатаОтгрузки, int ОтгруженоТовара) {
  1555. ОтгрузкаRow rowОтгрузкаRow = ((ОтгрузкаRow)(this.NewRow()));
  1556. object[] columnValuesArray = new object[] {
  1557. null,
  1558. ДатаОтгрузки,
  1559. ОтгруженоТовара};
  1560. rowОтгрузкаRow.ItemArray = columnValuesArray;
  1561. this.Rows.Add(rowОтгрузкаRow);
  1562. return rowОтгрузкаRow;
  1563. }
  1564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1566. public ОтгрузкаRow FindByКодОтгрузки(long КодОтгрузки) {
  1567. return ((ОтгрузкаRow)(this.Rows.Find(new object[] {
  1568. КодОтгрузки})));
  1569. }
  1570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1572. public override global::System.Data.DataTable Clone() {
  1573. ОтгрузкаDataTable cln = ((ОтгрузкаDataTable)(base.Clone()));
  1574. cln.InitVars();
  1575. return cln;
  1576. }
  1577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1579. protected override global::System.Data.DataTable CreateInstance() {
  1580. return new ОтгрузкаDataTable();
  1581. }
  1582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1584. internal void InitVars() {
  1585. this.columnКодОтгрузки = base.Columns["КодОтгрузки"];
  1586. this.columnДатаОтгрузки = base.Columns["ДатаОтгрузки"];
  1587. this.columnОтгруженоТовара = base.Columns["ОтгруженоТовара"];
  1588. }
  1589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1591. private void InitClass() {
  1592. this.columnКодОтгрузки = new global::System.Data.DataColumn("КодОтгрузки", typeof(long), null, global::System.Data.MappingType.Element);
  1593. base.Columns.Add(this.columnКодОтгрузки);
  1594. this.columnДатаОтгрузки = new global::System.Data.DataColumn("ДатаОтгрузки", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1595. base.Columns.Add(this.columnДатаОтгрузки);
  1596. this.columnОтгруженоТовара = new global::System.Data.DataColumn("ОтгруженоТовара", typeof(int), null, global::System.Data.MappingType.Element);
  1597. base.Columns.Add(this.columnОтгруженоТовара);
  1598. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1599. this.columnКодОтгрузки}, true));
  1600. this.columnКодОтгрузки.AutoIncrement = true;
  1601. this.columnКодОтгрузки.AutoIncrementSeed = -1;
  1602. this.columnКодОтгрузки.AutoIncrementStep = -1;
  1603. this.columnКодОтгрузки.AllowDBNull = false;
  1604. this.columnКодОтгрузки.ReadOnly = true;
  1605. this.columnКодОтгрузки.Unique = true;
  1606. }
  1607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1609. public ОтгрузкаRow NewОтгрузкаRow() {
  1610. return ((ОтгрузкаRow)(this.NewRow()));
  1611. }
  1612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1614. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1615. return new ОтгрузкаRow(builder);
  1616. }
  1617. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1619. protected override global::System.Type GetRowType() {
  1620. return typeof(ОтгрузкаRow);
  1621. }
  1622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1624. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1625. base.OnRowChanged(e);
  1626. if ((this.ОтгрузкаRowChanged != null)) {
  1627. this.ОтгрузкаRowChanged(this, new ОтгрузкаRowChangeEvent(((ОтгрузкаRow)(e.Row)), e.Action));
  1628. }
  1629. }
  1630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1632. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1633. base.OnRowChanging(e);
  1634. if ((this.ОтгрузкаRowChanging != null)) {
  1635. this.ОтгрузкаRowChanging(this, new ОтгрузкаRowChangeEvent(((ОтгрузкаRow)(e.Row)), e.Action));
  1636. }
  1637. }
  1638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1640. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1641. base.OnRowDeleted(e);
  1642. if ((this.ОтгрузкаRowDeleted != null)) {
  1643. this.ОтгрузкаRowDeleted(this, new ОтгрузкаRowChangeEvent(((ОтгрузкаRow)(e.Row)), e.Action));
  1644. }
  1645. }
  1646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1648. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1649. base.OnRowDeleting(e);
  1650. if ((this.ОтгрузкаRowDeleting != null)) {
  1651. this.ОтгрузкаRowDeleting(this, new ОтгрузкаRowChangeEvent(((ОтгрузкаRow)(e.Row)), e.Action));
  1652. }
  1653. }
  1654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1656. public void RemoveОтгрузкаRow(ОтгрузкаRow row) {
  1657. this.Rows.Remove(row);
  1658. }
  1659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1661. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1662. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1663. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1664. PostavkaTovarovDataSet ds = new PostavkaTovarovDataSet();
  1665. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1666. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1667. any1.MinOccurs = new decimal(0);
  1668. any1.MaxOccurs = decimal.MaxValue;
  1669. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1670. sequence.Items.Add(any1);
  1671. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1672. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1673. any2.MinOccurs = new decimal(1);
  1674. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1675. sequence.Items.Add(any2);
  1676. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1677. attribute1.Name = "namespace";
  1678. attribute1.FixedValue = ds.Namespace;
  1679. type.Attributes.Add(attribute1);
  1680. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1681. attribute2.Name = "tableTypeName";
  1682. attribute2.FixedValue = "ОтгрузкаDataTable";
  1683. type.Attributes.Add(attribute2);
  1684. type.Particle = sequence;
  1685. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1686. if (xs.Contains(dsSchema.TargetNamespace)) {
  1687. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1688. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1689. try {
  1690. global::System.Xml.Schema.XmlSchema schema = null;
  1691. dsSchema.Write(s1);
  1692. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1693. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1694. s2.SetLength(0);
  1695. schema.Write(s2);
  1696. if ((s1.Length == s2.Length)) {
  1697. s1.Position = 0;
  1698. s2.Position = 0;
  1699. for (; ((s1.Position != s1.Length)
  1700. && (s1.ReadByte() == s2.ReadByte())); ) {
  1701. ;
  1702. }
  1703. if ((s1.Position == s1.Length)) {
  1704. return type;
  1705. }
  1706. }
  1707. }
  1708. }
  1709. finally {
  1710. if ((s1 != null)) {
  1711. s1.Close();
  1712. }
  1713. if ((s2 != null)) {
  1714. s2.Close();
  1715. }
  1716. }
  1717. }
  1718. xs.Add(dsSchema);
  1719. return type;
  1720. }
  1721. }
  1722. /// <summary>
  1723. ///Represents the strongly named DataTable class.
  1724. ///</summary>
  1725. [global::System.Serializable()]
  1726. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1727. public partial class ОтгрузкаТовараDataTable : global::System.Data.TypedTableBase<ОтгрузкаТовараRow> {
  1728. private global::System.Data.DataColumn columnКодОтгрузкаТовара;
  1729. private global::System.Data.DataColumn columnКодТовара;
  1730. private global::System.Data.DataColumn columnКодОтгрузки;
  1731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1733. public ОтгрузкаТовараDataTable() {
  1734. this.TableName = "ОтгрузкаТовара";
  1735. this.BeginInit();
  1736. this.InitClass();
  1737. this.EndInit();
  1738. }
  1739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1741. internal ОтгрузкаТовараDataTable(global::System.Data.DataTable table) {
  1742. this.TableName = table.TableName;
  1743. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1744. this.CaseSensitive = table.CaseSensitive;
  1745. }
  1746. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1747. this.Locale = table.Locale;
  1748. }
  1749. if ((table.Namespace != table.DataSet.Namespace)) {
  1750. this.Namespace = table.Namespace;
  1751. }
  1752. this.Prefix = table.Prefix;
  1753. this.MinimumCapacity = table.MinimumCapacity;
  1754. }
  1755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1757. protected ОтгрузкаТовараDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1758. base(info, context) {
  1759. this.InitVars();
  1760. }
  1761. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1762. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1763. public global::System.Data.DataColumn КодОтгрузкаТовараColumn {
  1764. get {
  1765. return this.columnКодОтгрузкаТовара;
  1766. }
  1767. }
  1768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1770. public global::System.Data.DataColumn КодТовараColumn {
  1771. get {
  1772. return this.columnКодТовара;
  1773. }
  1774. }
  1775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1777. public global::System.Data.DataColumn КодОтгрузкиColumn {
  1778. get {
  1779. return this.columnКодОтгрузки;
  1780. }
  1781. }
  1782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1784. [global::System.ComponentModel.Browsable(false)]
  1785. public int Count {
  1786. get {
  1787. return this.Rows.Count;
  1788. }
  1789. }
  1790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1792. public ОтгрузкаТовараRow this[int index] {
  1793. get {
  1794. return ((ОтгрузкаТовараRow)(this.Rows[index]));
  1795. }
  1796. }
  1797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1798. public event ОтгрузкаТовараRowChangeEventHandler ОтгрузкаТовараRowChanging;
  1799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1800. public event ОтгрузкаТовараRowChangeEventHandler ОтгрузкаТовараRowChanged;
  1801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1802. public event ОтгрузкаТовараRowChangeEventHandler ОтгрузкаТовараRowDeleting;
  1803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1804. public event ОтгрузкаТовараRowChangeEventHandler ОтгрузкаТовараRowDeleted;
  1805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1807. public void AddОтгрузкаТовараRow(ОтгрузкаТовараRow row) {
  1808. this.Rows.Add(row);
  1809. }
  1810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1812. public ОтгрузкаТовараRow AddОтгрузкаТовараRow(ТоварыRow parentТоварыRowByFK_ОтгрузкаТовара_Товары, ОтгрузкаRow parentОтгрузкаRowByFK_ОтгрузкаТовара_Отгрузка) {
  1813. ОтгрузкаТовараRow rowОтгрузкаТовараRow = ((ОтгрузкаТовараRow)(this.NewRow()));
  1814. object[] columnValuesArray = new object[] {
  1815. null,
  1816. null,
  1817. null};
  1818. if ((parentТоварыRowByFK_ОтгрузкаТовара_Товары != null)) {
  1819. columnValuesArray[1] = parentТоварыRowByFK_ОтгрузкаТовара_Товары[0];
  1820. }
  1821. if ((parentОтгрузкаRowByFK_ОтгрузкаТовара_Отгрузка != null)) {
  1822. columnValuesArray[2] = parentОтгрузкаRowByFK_ОтгрузкаТовара_Отгрузка[0];
  1823. }
  1824. rowОтгрузкаТовараRow.ItemArray = columnValuesArray;
  1825. this.Rows.Add(rowОтгрузкаТовараRow);
  1826. return rowОтгрузкаТовараRow;
  1827. }
  1828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1830. public ОтгрузкаТовараRow FindByКодОтгрузкаТовара(long КодОтгрузкаТовара) {
  1831. return ((ОтгрузкаТовараRow)(this.Rows.Find(new object[] {
  1832. КодОтгрузкаТовара})));
  1833. }
  1834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1836. public override global::System.Data.DataTable Clone() {
  1837. ОтгрузкаТовараDataTable cln = ((ОтгрузкаТовараDataTable)(base.Clone()));
  1838. cln.InitVars();
  1839. return cln;
  1840. }
  1841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1843. protected override global::System.Data.DataTable CreateInstance() {
  1844. return new ОтгрузкаТовараDataTable();
  1845. }
  1846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1848. internal void InitVars() {
  1849. this.columnКодОтгрузкаТовара = base.Columns["КодОтгрузкаТовара"];
  1850. this.columnКодТовара = base.Columns["КодТовара"];
  1851. this.columnКодОтгрузки = base.Columns["КодОтгрузки"];
  1852. }
  1853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1855. private void InitClass() {
  1856. this.columnКодОтгрузкаТовара = new global::System.Data.DataColumn("КодОтгрузкаТовара", typeof(long), null, global::System.Data.MappingType.Element);
  1857. base.Columns.Add(this.columnКодОтгрузкаТовара);
  1858. this.columnКодТовара = new global::System.Data.DataColumn("КодТовара", typeof(long), null, global::System.Data.MappingType.Element);
  1859. base.Columns.Add(this.columnКодТовара);
  1860. this.columnКодОтгрузки = new global::System.Data.DataColumn("КодОтгрузки", typeof(long), null, global::System.Data.MappingType.Element);
  1861. base.Columns.Add(this.columnКодОтгрузки);
  1862. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1863. this.columnКодОтгрузкаТовара}, true));
  1864. this.columnКодОтгрузкаТовара.AutoIncrement = true;
  1865. this.columnКодОтгрузкаТовара.AutoIncrementSeed = -1;
  1866. this.columnКодОтгрузкаТовара.AutoIncrementStep = -1;
  1867. this.columnКодОтгрузкаТовара.AllowDBNull = false;
  1868. this.columnКодОтгрузкаТовара.ReadOnly = true;
  1869. this.columnКодОтгрузкаТовара.Unique = true;
  1870. }
  1871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1873. public ОтгрузкаТовараRow NewОтгрузкаТовараRow() {
  1874. return ((ОтгрузкаТовараRow)(this.NewRow()));
  1875. }
  1876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1878. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1879. return new ОтгрузкаТовараRow(builder);
  1880. }
  1881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1883. protected override global::System.Type GetRowType() {
  1884. return typeof(ОтгрузкаТовараRow);
  1885. }
  1886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1888. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1889. base.OnRowChanged(e);
  1890. if ((this.ОтгрузкаТовараRowChanged != null)) {
  1891. this.ОтгрузкаТовараRowChanged(this, new ОтгрузкаТовараRowChangeEvent(((ОтгрузкаТовараRow)(e.Row)), e.Action));
  1892. }
  1893. }
  1894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1896. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1897. base.OnRowChanging(e);
  1898. if ((this.ОтгрузкаТовараRowChanging != null)) {
  1899. this.ОтгрузкаТовараRowChanging(this, new ОтгрузкаТовараRowChangeEvent(((ОтгрузкаТовараRow)(e.Row)), e.Action));
  1900. }
  1901. }
  1902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1904. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1905. base.OnRowDeleted(e);
  1906. if ((this.ОтгрузкаТовараRowDeleted != null)) {
  1907. this.ОтгрузкаТовараRowDeleted(this, new ОтгрузкаТовараRowChangeEvent(((ОтгрузкаТовараRow)(e.Row)), e.Action));
  1908. }
  1909. }
  1910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1912. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1913. base.OnRowDeleting(e);
  1914. if ((this.ОтгрузкаТовараRowDeleting != null)) {
  1915. this.ОтгрузкаТовараRowDeleting(this, new ОтгрузкаТовараRowChangeEvent(((ОтгрузкаТовараRow)(e.Row)), e.Action));
  1916. }
  1917. }
  1918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1920. public void RemoveОтгрузкаТовараRow(ОтгрузкаТовараRow row) {
  1921. this.Rows.Remove(row);
  1922. }
  1923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1925. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1926. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1927. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1928. PostavkaTovarovDataSet ds = new PostavkaTovarovDataSet();
  1929. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1930. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1931. any1.MinOccurs = new decimal(0);
  1932. any1.MaxOccurs = decimal.MaxValue;
  1933. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1934. sequence.Items.Add(any1);
  1935. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1936. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1937. any2.MinOccurs = new decimal(1);
  1938. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1939. sequence.Items.Add(any2);
  1940. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1941. attribute1.Name = "namespace";
  1942. attribute1.FixedValue = ds.Namespace;
  1943. type.Attributes.Add(attribute1);
  1944. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1945. attribute2.Name = "tableTypeName";
  1946. attribute2.FixedValue = "ОтгрузкаТовараDataTable";
  1947. type.Attributes.Add(attribute2);
  1948. type.Particle = sequence;
  1949. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1950. if (xs.Contains(dsSchema.TargetNamespace)) {
  1951. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1952. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1953. try {
  1954. global::System.Xml.Schema.XmlSchema schema = null;
  1955. dsSchema.Write(s1);
  1956. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1957. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1958. s2.SetLength(0);
  1959. schema.Write(s2);
  1960. if ((s1.Length == s2.Length)) {
  1961. s1.Position = 0;
  1962. s2.Position = 0;
  1963. for (; ((s1.Position != s1.Length)
  1964. && (s1.ReadByte() == s2.ReadByte())); ) {
  1965. ;
  1966. }
  1967. if ((s1.Position == s1.Length)) {
  1968. return type;
  1969. }
  1970. }
  1971. }
  1972. }
  1973. finally {
  1974. if ((s1 != null)) {
  1975. s1.Close();
  1976. }
  1977. if ((s2 != null)) {
  1978. s2.Close();
  1979. }
  1980. }
  1981. }
  1982. xs.Add(dsSchema);
  1983. return type;
  1984. }
  1985. }
  1986. /// <summary>
  1987. ///Represents the strongly named DataTable class.
  1988. ///</summary>
  1989. [global::System.Serializable()]
  1990. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1991. public partial class ТоварыDataTable : global::System.Data.TypedTableBase<ТоварыRow> {
  1992. private global::System.Data.DataColumn columnКодТовара;
  1993. private global::System.Data.DataColumn columnНаименованиеТовара;
  1994. private global::System.Data.DataColumn columnЦенаТовара;
  1995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1997. public ТоварыDataTable() {
  1998. this.TableName = "Товары";
  1999. this.BeginInit();
  2000. this.InitClass();
  2001. this.EndInit();
  2002. }
  2003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2005. internal ТоварыDataTable(global::System.Data.DataTable table) {
  2006. this.TableName = table.TableName;
  2007. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2008. this.CaseSensitive = table.CaseSensitive;
  2009. }
  2010. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2011. this.Locale = table.Locale;
  2012. }
  2013. if ((table.Namespace != table.DataSet.Namespace)) {
  2014. this.Namespace = table.Namespace;
  2015. }
  2016. this.Prefix = table.Prefix;
  2017. this.MinimumCapacity = table.MinimumCapacity;
  2018. }
  2019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2021. protected ТоварыDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2022. base(info, context) {
  2023. this.InitVars();
  2024. }
  2025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2027. public global::System.Data.DataColumn КодТовараColumn {
  2028. get {
  2029. return this.columnКодТовара;
  2030. }
  2031. }
  2032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2034. public global::System.Data.DataColumn НаименованиеТовараColumn {
  2035. get {
  2036. return this.columnНаименованиеТовара;
  2037. }
  2038. }
  2039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2041. public global::System.Data.DataColumn ЦенаТовараColumn {
  2042. get {
  2043. return this.columnЦенаТовара;
  2044. }
  2045. }
  2046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2048. [global::System.ComponentModel.Browsable(false)]
  2049. public int Count {
  2050. get {
  2051. return this.Rows.Count;
  2052. }
  2053. }
  2054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2056. public ТоварыRow this[int index] {
  2057. get {
  2058. return ((ТоварыRow)(this.Rows[index]));
  2059. }
  2060. }
  2061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2062. public event ТоварыRowChangeEventHandler ТоварыRowChanging;
  2063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2064. public event ТоварыRowChangeEventHandler ТоварыRowChanged;
  2065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2066. public event ТоварыRowChangeEventHandler ТоварыRowDeleting;
  2067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2068. public event ТоварыRowChangeEventHandler ТоварыRowDeleted;
  2069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2071. public void AddТоварыRow(ТоварыRow row) {
  2072. this.Rows.Add(row);
  2073. }
  2074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2076. public ТоварыRow AddТоварыRow(string НаименованиеТовара, decimal ЦенаТовара) {
  2077. ТоварыRow rowТоварыRow = ((ТоварыRow)(this.NewRow()));
  2078. object[] columnValuesArray = new object[] {
  2079. null,
  2080. НаименованиеТовара,
  2081. ЦенаТовара};
  2082. rowТоварыRow.ItemArray = columnValuesArray;
  2083. this.Rows.Add(rowТоварыRow);
  2084. return rowТоварыRow;
  2085. }
  2086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2088. public ТоварыRow FindByКодТовара(long КодТовара) {
  2089. return ((ТоварыRow)(this.Rows.Find(new object[] {
  2090. КодТовара})));
  2091. }
  2092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2094. public override global::System.Data.DataTable Clone() {
  2095. ТоварыDataTable cln = ((ТоварыDataTable)(base.Clone()));
  2096. cln.InitVars();
  2097. return cln;
  2098. }
  2099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2101. protected override global::System.Data.DataTable CreateInstance() {
  2102. return new ТоварыDataTable();
  2103. }
  2104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2106. internal void InitVars() {
  2107. this.columnКодТовара = base.Columns["КодТовара"];
  2108. this.columnНаименованиеТовара = base.Columns["НаименованиеТовара"];
  2109. this.columnЦенаТовара = base.Columns["ЦенаТовара"];
  2110. }
  2111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2113. private void InitClass() {
  2114. this.columnКодТовара = new global::System.Data.DataColumn("КодТовара", typeof(long), null, global::System.Data.MappingType.Element);
  2115. base.Columns.Add(this.columnКодТовара);
  2116. this.columnНаименованиеТовара = new global::System.Data.DataColumn("НаименованиеТовара", typeof(string), null, global::System.Data.MappingType.Element);
  2117. base.Columns.Add(this.columnНаименованиеТовара);
  2118. this.columnЦенаТовара = new global::System.Data.DataColumn("ЦенаТовара", typeof(decimal), null, global::System.Data.MappingType.Element);
  2119. base.Columns.Add(this.columnЦенаТовара);
  2120. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2121. this.columnКодТовара}, true));
  2122. this.columnКодТовара.AutoIncrement = true;
  2123. this.columnКодТовара.AutoIncrementSeed = -1;
  2124. this.columnКодТовара.AutoIncrementStep = -1;
  2125. this.columnКодТовара.AllowDBNull = false;
  2126. this.columnКодТовара.ReadOnly = true;
  2127. this.columnКодТовара.Unique = true;
  2128. this.columnНаименованиеТовара.MaxLength = 50;
  2129. }
  2130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2132. public ТоварыRow NewТоварыRow() {
  2133. return ((ТоварыRow)(this.NewRow()));
  2134. }
  2135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2137. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2138. return new ТоварыRow(builder);
  2139. }
  2140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2142. protected override global::System.Type GetRowType() {
  2143. return typeof(ТоварыRow);
  2144. }
  2145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2147. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2148. base.OnRowChanged(e);
  2149. if ((this.ТоварыRowChanged != null)) {
  2150. this.ТоварыRowChanged(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  2151. }
  2152. }
  2153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2155. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2156. base.OnRowChanging(e);
  2157. if ((this.ТоварыRowChanging != null)) {
  2158. this.ТоварыRowChanging(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  2159. }
  2160. }
  2161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2163. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2164. base.OnRowDeleted(e);
  2165. if ((this.ТоварыRowDeleted != null)) {
  2166. this.ТоварыRowDeleted(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  2167. }
  2168. }
  2169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2171. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2172. base.OnRowDeleting(e);
  2173. if ((this.ТоварыRowDeleting != null)) {
  2174. this.ТоварыRowDeleting(this, new ТоварыRowChangeEvent(((ТоварыRow)(e.Row)), e.Action));
  2175. }
  2176. }
  2177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2179. public void RemoveТоварыRow(ТоварыRow row) {
  2180. this.Rows.Remove(row);
  2181. }
  2182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2184. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2185. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2186. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2187. PostavkaTovarovDataSet ds = new PostavkaTovarovDataSet();
  2188. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2189. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2190. any1.MinOccurs = new decimal(0);
  2191. any1.MaxOccurs = decimal.MaxValue;
  2192. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2193. sequence.Items.Add(any1);
  2194. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2195. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2196. any2.MinOccurs = new decimal(1);
  2197. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2198. sequence.Items.Add(any2);
  2199. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2200. attribute1.Name = "namespace";
  2201. attribute1.FixedValue = ds.Namespace;
  2202. type.Attributes.Add(attribute1);
  2203. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2204. attribute2.Name = "tableTypeName";
  2205. attribute2.FixedValue = "ТоварыDataTable";
  2206. type.Attributes.Add(attribute2);
  2207. type.Particle = sequence;
  2208. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2209. if (xs.Contains(dsSchema.TargetNamespace)) {
  2210. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2211. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2212. try {
  2213. global::System.Xml.Schema.XmlSchema schema = null;
  2214. dsSchema.Write(s1);
  2215. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2216. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2217. s2.SetLength(0);
  2218. schema.Write(s2);
  2219. if ((s1.Length == s2.Length)) {
  2220. s1.Position = 0;
  2221. s2.Position = 0;
  2222. for (; ((s1.Position != s1.Length)
  2223. && (s1.ReadByte() == s2.ReadByte())); ) {
  2224. ;
  2225. }
  2226. if ((s1.Position == s1.Length)) {
  2227. return type;
  2228. }
  2229. }
  2230. }
  2231. }
  2232. finally {
  2233. if ((s1 != null)) {
  2234. s1.Close();
  2235. }
  2236. if ((s2 != null)) {
  2237. s2.Close();
  2238. }
  2239. }
  2240. }
  2241. xs.Add(dsSchema);
  2242. return type;
  2243. }
  2244. }
  2245. /// <summary>
  2246. ///Represents the strongly named DataTable class.
  2247. ///</summary>
  2248. [global::System.Serializable()]
  2249. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2250. public partial class View_1DataTable : global::System.Data.TypedTableBase<View_1Row> {
  2251. private global::System.Data.DataColumn columnКодДоговора;
  2252. private global::System.Data.DataColumn columnКодЗаказчика;
  2253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2255. public View_1DataTable() {
  2256. this.TableName = "View_1";
  2257. this.BeginInit();
  2258. this.InitClass();
  2259. this.EndInit();
  2260. }
  2261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2263. internal View_1DataTable(global::System.Data.DataTable table) {
  2264. this.TableName = table.TableName;
  2265. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2266. this.CaseSensitive = table.CaseSensitive;
  2267. }
  2268. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2269. this.Locale = table.Locale;
  2270. }
  2271. if ((table.Namespace != table.DataSet.Namespace)) {
  2272. this.Namespace = table.Namespace;
  2273. }
  2274. this.Prefix = table.Prefix;
  2275. this.MinimumCapacity = table.MinimumCapacity;
  2276. }
  2277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2279. protected View_1DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2280. base(info, context) {
  2281. this.InitVars();
  2282. }
  2283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2285. public global::System.Data.DataColumn КодДоговораColumn {
  2286. get {
  2287. return this.columnКодДоговора;
  2288. }
  2289. }
  2290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2292. public global::System.Data.DataColumn КодЗаказчикаColumn {
  2293. get {
  2294. return this.columnКодЗаказчика;
  2295. }
  2296. }
  2297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2299. [global::System.ComponentModel.Browsable(false)]
  2300. public int Count {
  2301. get {
  2302. return this.Rows.Count;
  2303. }
  2304. }
  2305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2307. public View_1Row this[int index] {
  2308. get {
  2309. return ((View_1Row)(this.Rows[index]));
  2310. }
  2311. }
  2312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2313. public event View_1RowChangeEventHandler View_1RowChanging;
  2314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2315. public event View_1RowChangeEventHandler View_1RowChanged;
  2316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2317. public event View_1RowChangeEventHandler View_1RowDeleting;
  2318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2319. public event View_1RowChangeEventHandler View_1RowDeleted;
  2320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2322. public void AddView_1Row(View_1Row row) {
  2323. this.Rows.Add(row);
  2324. }
  2325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2327. public View_1Row AddView_1Row(long КодДоговора, long КодЗаказчика) {
  2328. View_1Row rowView_1Row = ((View_1Row)(this.NewRow()));
  2329. object[] columnValuesArray = new object[] {
  2330. КодДоговора,
  2331. КодЗаказчика};
  2332. rowView_1Row.ItemArray = columnValuesArray;
  2333. this.Rows.Add(rowView_1Row);
  2334. return rowView_1Row;
  2335. }
  2336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2338. public override global::System.Data.DataTable Clone() {
  2339. View_1DataTable cln = ((View_1DataTable)(base.Clone()));
  2340. cln.InitVars();
  2341. return cln;
  2342. }
  2343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2345. protected override global::System.Data.DataTable CreateInstance() {
  2346. return new View_1DataTable();
  2347. }
  2348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2350. internal void InitVars() {
  2351. this.columnКодДоговора = base.Columns["КодДоговора"];
  2352. this.columnКодЗаказчика = base.Columns["КодЗаказчика"];
  2353. }
  2354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2355. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2356. private void InitClass() {
  2357. this.columnКодДоговора = new global::System.Data.DataColumn("КодДоговора", typeof(long), null, global::System.Data.MappingType.Element);
  2358. base.Columns.Add(this.columnКодДоговора);
  2359. this.columnКодЗаказчика = new global::System.Data.DataColumn("КодЗаказчика", typeof(long), null, global::System.Data.MappingType.Element);
  2360. base.Columns.Add(this.columnКодЗаказчика);
  2361. this.columnКодДоговора.AllowDBNull = false;
  2362. this.columnКодЗаказчика.AllowDBNull = false;
  2363. }
  2364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2366. public View_1Row NewView_1Row() {
  2367. return ((View_1Row)(this.NewRow()));
  2368. }
  2369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2371. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2372. return new View_1Row(builder);
  2373. }
  2374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2376. protected override global::System.Type GetRowType() {
  2377. return typeof(View_1Row);
  2378. }
  2379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2381. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2382. base.OnRowChanged(e);
  2383. if ((this.View_1RowChanged != null)) {
  2384. this.View_1RowChanged(this, new View_1RowChangeEvent(((View_1Row)(e.Row)), e.Action));
  2385. }
  2386. }
  2387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2389. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2390. base.OnRowChanging(e);
  2391. if ((this.View_1RowChanging != null)) {
  2392. this.View_1RowChanging(this, new View_1RowChangeEvent(((View_1Row)(e.Row)), e.Action));
  2393. }
  2394. }
  2395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2397. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2398. base.OnRowDeleted(e);
  2399. if ((this.View_1RowDeleted != null)) {
  2400. this.View_1RowDeleted(this, new View_1RowChangeEvent(((View_1Row)(e.Row)), e.Action));
  2401. }
  2402. }
  2403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2405. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2406. base.OnRowDeleting(e);
  2407. if ((this.View_1RowDeleting != null)) {
  2408. this.View_1RowDeleting(this, new View_1RowChangeEvent(((View_1Row)(e.Row)), e.Action));
  2409. }
  2410. }
  2411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2413. public void RemoveView_1Row(View_1Row row) {
  2414. this.Rows.Remove(row);
  2415. }
  2416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2418. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2419. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2420. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2421. PostavkaTovarovDataSet ds = new PostavkaTovarovDataSet();
  2422. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2423. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2424. any1.MinOccurs = new decimal(0);
  2425. any1.MaxOccurs = decimal.MaxValue;
  2426. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2427. sequence.Items.Add(any1);
  2428. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2429. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2430. any2.MinOccurs = new decimal(1);
  2431. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2432. sequence.Items.Add(any2);
  2433. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2434. attribute1.Name = "namespace";
  2435. attribute1.FixedValue = ds.Namespace;
  2436. type.Attributes.Add(attribute1);
  2437. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2438. attribute2.Name = "tableTypeName";
  2439. attribute2.FixedValue = "View_1DataTable";
  2440. type.Attributes.Add(attribute2);
  2441. type.Particle = sequence;
  2442. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2443. if (xs.Contains(dsSchema.TargetNamespace)) {
  2444. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2445. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2446. try {
  2447. global::System.Xml.Schema.XmlSchema schema = null;
  2448. dsSchema.Write(s1);
  2449. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2450. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2451. s2.SetLength(0);
  2452. schema.Write(s2);
  2453. if ((s1.Length == s2.Length)) {
  2454. s1.Position = 0;
  2455. s2.Position = 0;
  2456. for (; ((s1.Position != s1.Length)
  2457. && (s1.ReadByte() == s2.ReadByte())); ) {
  2458. ;
  2459. }
  2460. if ((s1.Position == s1.Length)) {
  2461. return type;
  2462. }
  2463. }
  2464. }
  2465. }
  2466. finally {
  2467. if ((s1 != null)) {
  2468. s1.Close();
  2469. }
  2470. if ((s2 != null)) {
  2471. s2.Close();
  2472. }
  2473. }
  2474. }
  2475. xs.Add(dsSchema);
  2476. return type;
  2477. }
  2478. }
  2479. /// <summary>
  2480. ///Represents the strongly named DataTable class.
  2481. ///</summary>
  2482. [global::System.Serializable()]
  2483. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2484. public partial class Запрос_ВнеплановаяПоставкаDataTable : global::System.Data.TypedTableBase<Запрос_ВнеплановаяПоставкаRow> {
  2485. private global::System.Data.DataColumn columnФИО;
  2486. private global::System.Data.DataColumn columnНаименованиеЗаказа;
  2487. private global::System.Data.DataColumn columnПлановаяПоставка;
  2488. private global::System.Data.DataColumn columnНаименованиеТовара;
  2489. private global::System.Data.DataColumn columnЦенаТовара;
  2490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2492. public Запрос_ВнеплановаяПоставкаDataTable() {
  2493. this.TableName = "Запрос_ВнеплановаяПоставка";
  2494. this.BeginInit();
  2495. this.InitClass();
  2496. this.EndInit();
  2497. }
  2498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2500. internal Запрос_ВнеплановаяПоставкаDataTable(global::System.Data.DataTable table) {
  2501. this.TableName = table.TableName;
  2502. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2503. this.CaseSensitive = table.CaseSensitive;
  2504. }
  2505. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2506. this.Locale = table.Locale;
  2507. }
  2508. if ((table.Namespace != table.DataSet.Namespace)) {
  2509. this.Namespace = table.Namespace;
  2510. }
  2511. this.Prefix = table.Prefix;
  2512. this.MinimumCapacity = table.MinimumCapacity;
  2513. }
  2514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2515. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2516. protected Запрос_ВнеплановаяПоставкаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2517. base(info, context) {
  2518. this.InitVars();
  2519. }
  2520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2522. public global::System.Data.DataColumn ФИОColumn {
  2523. get {
  2524. return this.columnФИО;
  2525. }
  2526. }
  2527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2529. public global::System.Data.DataColumn НаименованиеЗаказаColumn {
  2530. get {
  2531. return this.columnНаименованиеЗаказа;
  2532. }
  2533. }
  2534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2536. public global::System.Data.DataColumn ПлановаяПоставкаColumn {
  2537. get {
  2538. return this.columnПлановаяПоставка;
  2539. }
  2540. }
  2541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2543. public global::System.Data.DataColumn НаименованиеТовараColumn {
  2544. get {
  2545. return this.columnНаименованиеТовара;
  2546. }
  2547. }
  2548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2550. public global::System.Data.DataColumn ЦенаТовараColumn {
  2551. get {
  2552. return this.columnЦенаТовара;
  2553. }
  2554. }
  2555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2557. [global::System.ComponentModel.Browsable(false)]
  2558. public int Count {
  2559. get {
  2560. return this.Rows.Count;
  2561. }
  2562. }
  2563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2565. public Запрос_ВнеплановаяПоставкаRow this[int index] {
  2566. get {
  2567. return ((Запрос_ВнеплановаяПоставкаRow)(this.Rows[index]));
  2568. }
  2569. }
  2570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2571. public event Запрос_ВнеплановаяПоставкаRowChangeEventHandler Запрос_ВнеплановаяПоставкаRowChanging;
  2572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2573. public event Запрос_ВнеплановаяПоставкаRowChangeEventHandler Запрос_ВнеплановаяПоставкаRowChanged;
  2574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2575. public event Запрос_ВнеплановаяПоставкаRowChangeEventHandler Запрос_ВнеплановаяПоставкаRowDeleting;
  2576. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2577. public event Запрос_ВнеплановаяПоставкаRowChangeEventHandler Запрос_ВнеплановаяПоставкаRowDeleted;
  2578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2580. public void AddЗапрос_ВнеплановаяПоставкаRow(Запрос_ВнеплановаяПоставкаRow row) {
  2581. this.Rows.Add(row);
  2582. }
  2583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2585. public Запрос_ВнеплановаяПоставкаRow AddЗапрос_ВнеплановаяПоставкаRow(string ФИО, string НаименованиеЗаказа, bool ПлановаяПоставка, string НаименованиеТовара, decimal ЦенаТовара) {
  2586. Запрос_ВнеплановаяПоставкаRow rowЗапрос_ВнеплановаяПоставкаRow = ((Запрос_ВнеплановаяПоставкаRow)(this.NewRow()));
  2587. object[] columnValuesArray = new object[] {
  2588. ФИО,
  2589. НаименованиеЗаказа,
  2590. ПлановаяПоставка,
  2591. НаименованиеТовара,
  2592. ЦенаТовара};
  2593. rowЗапрос_ВнеплановаяПоставкаRow.ItemArray = columnValuesArray;
  2594. this.Rows.Add(rowЗапрос_ВнеплановаяПоставкаRow);
  2595. return rowЗапрос_ВнеплановаяПоставкаRow;
  2596. }
  2597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2599. public override global::System.Data.DataTable Clone() {
  2600. Запрос_ВнеплановаяПоставкаDataTable cln = ((Запрос_ВнеплановаяПоставкаDataTable)(base.Clone()));
  2601. cln.InitVars();
  2602. return cln;
  2603. }
  2604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2606. protected override global::System.Data.DataTable CreateInstance() {
  2607. return new Запрос_ВнеплановаяПоставкаDataTable();
  2608. }
  2609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2611. internal void InitVars() {
  2612. this.columnФИО = base.Columns["ФИО"];
  2613. this.columnНаименованиеЗаказа = base.Columns["НаименованиеЗаказа"];
  2614. this.columnПлановаяПоставка = base.Columns["ПлановаяПоставка"];
  2615. this.columnНаименованиеТовара = base.Columns["НаименованиеТовара"];
  2616. this.columnЦенаТовара = base.Columns["ЦенаТовара"];
  2617. }
  2618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2620. private void InitClass() {
  2621. this.columnФИО = new global::System.Data.DataColumn("ФИО", typeof(string), null, global::System.Data.MappingType.Element);
  2622. base.Columns.Add(this.columnФИО);
  2623. this.columnНаименованиеЗаказа = new global::System.Data.DataColumn("НаименованиеЗаказа", typeof(string), null, global::System.Data.MappingType.Element);
  2624. base.Columns.Add(this.columnНаименованиеЗаказа);
  2625. this.columnПлановаяПоставка = new global::System.Data.DataColumn("ПлановаяПоставка", typeof(bool), null, global::System.Data.MappingType.Element);
  2626. base.Columns.Add(this.columnПлановаяПоставка);
  2627. this.columnНаименованиеТовара = new global::System.Data.DataColumn("НаименованиеТовара", typeof(string), null, global::System.Data.MappingType.Element);
  2628. base.Columns.Add(this.columnНаименованиеТовара);
  2629. this.columnЦенаТовара = new global::System.Data.DataColumn("ЦенаТовара", typeof(decimal), null, global::System.Data.MappingType.Element);
  2630. base.Columns.Add(this.columnЦенаТовара);
  2631. this.columnФИО.MaxLength = 100;
  2632. this.columnНаименованиеЗаказа.MaxLength = 2147483647;
  2633. this.columnНаименованиеТовара.MaxLength = 50;
  2634. }
  2635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2637. public Запрос_ВнеплановаяПоставкаRow NewЗапрос_ВнеплановаяПоставкаRow() {
  2638. return ((Запрос_ВнеплановаяПоставкаRow)(this.NewRow()));
  2639. }
  2640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2642. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2643. return new Запрос_ВнеплановаяПоставкаRow(builder);
  2644. }
  2645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2647. protected override global::System.Type GetRowType() {
  2648. return typeof(Запрос_ВнеплановаяПоставкаRow);
  2649. }
  2650. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2652. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2653. base.OnRowChanged(e);
  2654. if ((this.Запрос_ВнеплановаяПоставкаRowChanged != null)) {
  2655. this.Запрос_ВнеплановаяПоставкаRowChanged(this, new Запрос_ВнеплановаяПоставкаRowChangeEvent(((Запрос_ВнеплановаяПоставкаRow)(e.Row)), e.Action));
  2656. }
  2657. }
  2658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2660. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2661. base.OnRowChanging(e);
  2662. if ((this.Запрос_ВнеплановаяПоставкаRowChanging != null)) {
  2663. this.Запрос_ВнеплановаяПоставкаRowChanging(this, new Запрос_ВнеплановаяПоставкаRowChangeEvent(((Запрос_ВнеплановаяПоставкаRow)(e.Row)), e.Action));
  2664. }
  2665. }
  2666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2668. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2669. base.OnRowDeleted(e);
  2670. if ((this.Запрос_ВнеплановаяПоставкаRowDeleted != null)) {
  2671. this.Запрос_ВнеплановаяПоставкаRowDeleted(this, new Запрос_ВнеплановаяПоставкаRowChangeEvent(((Запрос_ВнеплановаяПоставкаRow)(e.Row)), e.Action));
  2672. }
  2673. }
  2674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2676. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2677. base.OnRowDeleting(e);
  2678. if ((this.Запрос_ВнеплановаяПоставкаRowDeleting != null)) {
  2679. this.Запрос_ВнеплановаяПоставкаRowDeleting(this, new Запрос_ВнеплановаяПоставкаRowChangeEvent(((Запрос_ВнеплановаяПоставкаRow)(e.Row)), e.Action));
  2680. }
  2681. }
  2682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2684. public void RemoveЗапрос_ВнеплановаяПоставкаRow(Запрос_ВнеплановаяПоставкаRow row) {
  2685. this.Rows.Remove(row);
  2686. }
  2687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2689. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2690. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2691. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2692. PostavkaTovarovDataSet ds = new PostavkaTovarovDataSet();
  2693. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2694. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2695. any1.MinOccurs = new decimal(0);
  2696. any1.MaxOccurs = decimal.MaxValue;
  2697. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2698. sequence.Items.Add(any1);
  2699. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2700. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2701. any2.MinOccurs = new decimal(1);
  2702. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2703. sequence.Items.Add(any2);
  2704. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2705. attribute1.Name = "namespace";
  2706. attribute1.FixedValue = ds.Namespace;
  2707. type.Attributes.Add(attribute1);
  2708. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2709. attribute2.Name = "tableTypeName";
  2710. attribute2.FixedValue = "Запрос_ВнеплановаяПоставкаDataTable";
  2711. type.Attributes.Add(attribute2);
  2712. type.Particle = sequence;
  2713. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2714. if (xs.Contains(dsSchema.TargetNamespace)) {
  2715. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2716. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2717. try {
  2718. global::System.Xml.Schema.XmlSchema schema = null;
  2719. dsSchema.Write(s1);
  2720. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2721. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2722. s2.SetLength(0);
  2723. schema.Write(s2);
  2724. if ((s1.Length == s2.Length)) {
  2725. s1.Position = 0;
  2726. s2.Position = 0;
  2727. for (; ((s1.Position != s1.Length)
  2728. && (s1.ReadByte() == s2.ReadByte())); ) {
  2729. ;
  2730. }
  2731. if ((s1.Position == s1.Length)) {
  2732. return type;
  2733. }
  2734. }
  2735. }
  2736. }
  2737. finally {
  2738. if ((s1 != null)) {
  2739. s1.Close();
  2740. }
  2741. if ((s2 != null)) {
  2742. s2.Close();
  2743. }
  2744. }
  2745. }
  2746. xs.Add(dsSchema);
  2747. return type;
  2748. }
  2749. }
  2750. /// <summary>
  2751. ///Represents the strongly named DataTable class.
  2752. ///</summary>
  2753. [global::System.Serializable()]
  2754. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2755. public partial class _Запрос_Заказы_ДоговораЗаказовDataTable : global::System.Data.TypedTableBase<_Запрос_Заказы_ДоговораЗаказовRow> {
  2756. private global::System.Data.DataColumn columnКодЗаказчика;
  2757. private global::System.Data.DataColumn columnКодЗаказа;
  2758. private global::System.Data.DataColumn columnНаименованиеЗаказа;
  2759. private global::System.Data.DataColumn columnКодТовара;
  2760. private global::System.Data.DataColumn columnКодДоговора;
  2761. private global::System.Data.DataColumn columnДатаЗаключения;
  2762. private global::System.Data.DataColumn columnПлановаяПоставка;
  2763. private global::System.Data.DataColumn columnКодОтгрузки;
  2764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2766. public _Запрос_Заказы_ДоговораЗаказовDataTable() {
  2767. this.TableName = "Запрос_Заказы+ДоговораЗаказов";
  2768. this.BeginInit();
  2769. this.InitClass();
  2770. this.EndInit();
  2771. }
  2772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2774. internal _Запрос_Заказы_ДоговораЗаказовDataTable(global::System.Data.DataTable table) {
  2775. this.TableName = table.TableName;
  2776. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2777. this.CaseSensitive = table.CaseSensitive;
  2778. }
  2779. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2780. this.Locale = table.Locale;
  2781. }
  2782. if ((table.Namespace != table.DataSet.Namespace)) {
  2783. this.Namespace = table.Namespace;
  2784. }
  2785. this.Prefix = table.Prefix;
  2786. this.MinimumCapacity = table.MinimumCapacity;
  2787. }
  2788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2790. protected _Запрос_Заказы_ДоговораЗаказовDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2791. base(info, context) {
  2792. this.InitVars();
  2793. }
  2794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2796. public global::System.Data.DataColumn КодЗаказчикаColumn {
  2797. get {
  2798. return this.columnКодЗаказчика;
  2799. }
  2800. }
  2801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2803. public global::System.Data.DataColumn КодЗаказаColumn {
  2804. get {
  2805. return this.columnКодЗаказа;
  2806. }
  2807. }
  2808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2810. public global::System.Data.DataColumn НаименованиеЗаказаColumn {
  2811. get {
  2812. return this.columnНаименованиеЗаказа;
  2813. }
  2814. }
  2815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2817. public global::System.Data.DataColumn КодТовараColumn {
  2818. get {
  2819. return this.columnКодТовара;
  2820. }
  2821. }
  2822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2824. public global::System.Data.DataColumn КодДоговораColumn {
  2825. get {
  2826. return this.columnКодДоговора;
  2827. }
  2828. }
  2829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2831. public global::System.Data.DataColumn ДатаЗаключенияColumn {
  2832. get {
  2833. return this.columnДатаЗаключения;
  2834. }
  2835. }
  2836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2838. public global::System.Data.DataColumn ПлановаяПоставкаColumn {
  2839. get {
  2840. return this.columnПлановаяПоставка;
  2841. }
  2842. }
  2843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2845. public global::System.Data.DataColumn КодОтгрузкиColumn {
  2846. get {
  2847. return this.columnКодОтгрузки;
  2848. }
  2849. }
  2850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2852. [global::System.ComponentModel.Browsable(false)]
  2853. public int Count {
  2854. get {
  2855. return this.Rows.Count;
  2856. }
  2857. }
  2858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2860. public _Запрос_Заказы_ДоговораЗаказовRow this[int index] {
  2861. get {
  2862. return ((_Запрос_Заказы_ДоговораЗаказовRow)(this.Rows[index]));
  2863. }
  2864. }
  2865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2866. public event _Запрос_Заказы_ДоговораЗаказовRowChangeEventHandler _Запрос_Заказы_ДоговораЗаказовRowChanging;
  2867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2868. public event _Запрос_Заказы_ДоговораЗаказовRowChangeEventHandler _Запрос_Заказы_ДоговораЗаказовRowChanged;
  2869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2870. public event _Запрос_Заказы_ДоговораЗаказовRowChangeEventHandler _Запрос_Заказы_ДоговораЗаказовRowDeleting;
  2871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2872. public event _Запрос_Заказы_ДоговораЗаказовRowChangeEventHandler _Запрос_Заказы_ДоговораЗаказовRowDeleted;
  2873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2875. public void Add_Запрос_Заказы_ДоговораЗаказовRow(_Запрос_Заказы_ДоговораЗаказовRow row) {
  2876. this.Rows.Add(row);
  2877. }
  2878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2880. public _Запрос_Заказы_ДоговораЗаказовRow Add_Запрос_Заказы_ДоговораЗаказовRow(long КодЗаказчика, long КодЗаказа, string НаименованиеЗаказа, long КодТовара, long КодДоговора, System.DateTime ДатаЗаключения, bool ПлановаяПоставка, long КодОтгрузки) {
  2881. _Запрос_Заказы_ДоговораЗаказовRow row_Запрос_Заказы_ДоговораЗаказовRow = ((_Запрос_Заказы_ДоговораЗаказовRow)(this.NewRow()));
  2882. object[] columnValuesArray = new object[] {
  2883. КодЗаказчика,
  2884. КодЗаказа,
  2885. НаименованиеЗаказа,
  2886. КодТовара,
  2887. КодДоговора,
  2888. ДатаЗаключения,
  2889. ПлановаяПоставка,
  2890. КодОтгрузки};
  2891. row_Запрос_Заказы_ДоговораЗаказовRow.ItemArray = columnValuesArray;
  2892. this.Rows.Add(row_Запрос_Заказы_ДоговораЗаказовRow);
  2893. return row_Запрос_Заказы_ДоговораЗаказовRow;
  2894. }
  2895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2897. public _Запрос_Заказы_ДоговораЗаказовRow FindByКодЗаказаКодДоговора(long КодЗаказа, long КодДоговора) {
  2898. return ((_Запрос_Заказы_ДоговораЗаказовRow)(this.Rows.Find(new object[] {
  2899. КодЗаказа,
  2900. КодДоговора})));
  2901. }
  2902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2904. public override global::System.Data.DataTable Clone() {
  2905. _Запрос_Заказы_ДоговораЗаказовDataTable cln = ((_Запрос_Заказы_ДоговораЗаказовDataTable)(base.Clone()));
  2906. cln.InitVars();
  2907. return cln;
  2908. }
  2909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2911. protected override global::System.Data.DataTable CreateInstance() {
  2912. return new _Запрос_Заказы_ДоговораЗаказовDataTable();
  2913. }
  2914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2916. internal void InitVars() {
  2917. this.columnКодЗаказчика = base.Columns["КодЗаказчика"];
  2918. this.columnКодЗаказа = base.Columns["КодЗаказа"];
  2919. this.columnНаименованиеЗаказа = base.Columns["НаименованиеЗаказа"];
  2920. this.columnКодТовара = base.Columns["КодТовара"];
  2921. this.columnКодДоговора = base.Columns["КодДоговора"];
  2922. this.columnДатаЗаключения = base.Columns["ДатаЗаключения"];
  2923. this.columnПлановаяПоставка = base.Columns["ПлановаяПоставка"];
  2924. this.columnКодОтгрузки = base.Columns["КодОтгрузки"];
  2925. }
  2926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2928. private void InitClass() {
  2929. this.columnКодЗаказчика = new global::System.Data.DataColumn("КодЗаказчика", typeof(long), null, global::System.Data.MappingType.Element);
  2930. base.Columns.Add(this.columnКодЗаказчика);
  2931. this.columnКодЗаказа = new global::System.Data.DataColumn("КодЗаказа", typeof(long), null, global::System.Data.MappingType.Element);
  2932. base.Columns.Add(this.columnКодЗаказа);
  2933. this.columnНаименованиеЗаказа = new global::System.Data.DataColumn("НаименованиеЗаказа", typeof(string), null, global::System.Data.MappingType.Element);
  2934. base.Columns.Add(this.columnНаименованиеЗаказа);
  2935. this.columnКодТовара = new global::System.Data.DataColumn("КодТовара", typeof(long), null, global::System.Data.MappingType.Element);
  2936. base.Columns.Add(this.columnКодТовара);
  2937. this.columnКодДоговора = new global::System.Data.DataColumn("КодДоговора", typeof(long), null, global::System.Data.MappingType.Element);
  2938. base.Columns.Add(this.columnКодДоговора);
  2939. this.columnДатаЗаключения = new global::System.Data.DataColumn("ДатаЗаключения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2940. base.Columns.Add(this.columnДатаЗаключения);
  2941. this.columnПлановаяПоставка = new global::System.Data.DataColumn("ПлановаяПоставка", typeof(bool), null, global::System.Data.MappingType.Element);
  2942. base.Columns.Add(this.columnПлановаяПоставка);
  2943. this.columnКодОтгрузки = new global::System.Data.DataColumn("КодОтгрузки", typeof(long), null, global::System.Data.MappingType.Element);
  2944. base.Columns.Add(this.columnКодОтгрузки);
  2945. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2946. this.columnКодЗаказа,
  2947. this.columnКодДоговора}, true));
  2948. this.columnКодЗаказа.AllowDBNull = false;
  2949. this.columnНаименованиеЗаказа.MaxLength = 2147483647;
  2950. this.columnКодДоговора.AllowDBNull = false;
  2951. this.ExtendedProperties.Add("Generator_TableVarName", "_tableЗапрос_Заказы_ДоговораЗаказов");
  2952. this.ExtendedProperties.Add("Generator_UserTableName", "Запрос_Заказы+ДоговораЗаказов");
  2953. }
  2954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2956. public _Запрос_Заказы_ДоговораЗаказовRow New_Запрос_Заказы_ДоговораЗаказовRow() {
  2957. return ((_Запрос_Заказы_ДоговораЗаказовRow)(this.NewRow()));
  2958. }
  2959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2961. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2962. return new _Запрос_Заказы_ДоговораЗаказовRow(builder);
  2963. }
  2964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2966. protected override global::System.Type GetRowType() {
  2967. return typeof(_Запрос_Заказы_ДоговораЗаказовRow);
  2968. }
  2969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2971. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2972. base.OnRowChanged(e);
  2973. if ((this._Запрос_Заказы_ДоговораЗаказовRowChanged != null)) {
  2974. this._Запрос_Заказы_ДоговораЗаказовRowChanged(this, new _Запрос_Заказы_ДоговораЗаказовRowChangeEvent(((_Запрос_Заказы_ДоговораЗаказовRow)(e.Row)), e.Action));
  2975. }
  2976. }
  2977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2979. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2980. base.OnRowChanging(e);
  2981. if ((this._Запрос_Заказы_ДоговораЗаказовRowChanging != null)) {
  2982. this._Запрос_Заказы_ДоговораЗаказовRowChanging(this, new _Запрос_Заказы_ДоговораЗаказовRowChangeEvent(((_Запрос_Заказы_ДоговораЗаказовRow)(e.Row)), e.Action));
  2983. }
  2984. }
  2985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2987. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2988. base.OnRowDeleted(e);
  2989. if ((this._Запрос_Заказы_ДоговораЗаказовRowDeleted != null)) {
  2990. this._Запрос_Заказы_ДоговораЗаказовRowDeleted(this, new _Запрос_Заказы_ДоговораЗаказовRowChangeEvent(((_Запрос_Заказы_ДоговораЗаказовRow)(e.Row)), e.Action));
  2991. }
  2992. }
  2993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2995. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2996. base.OnRowDeleting(e);
  2997. if ((this._Запрос_Заказы_ДоговораЗаказовRowDeleting != null)) {
  2998. this._Запрос_Заказы_ДоговораЗаказовRowDeleting(this, new _Запрос_Заказы_ДоговораЗаказовRowChangeEvent(((_Запрос_Заказы_ДоговораЗаказовRow)(e.Row)), e.Action));
  2999. }
  3000. }
  3001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3003. public void Remove_Запрос_Заказы_ДоговораЗаказовRow(_Запрос_Заказы_ДоговораЗаказовRow row) {
  3004. this.Rows.Remove(row);
  3005. }
  3006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3008. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3009. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3010. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3011. PostavkaTovarovDataSet ds = new PostavkaTovarovDataSet();
  3012. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3013. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3014. any1.MinOccurs = new decimal(0);
  3015. any1.MaxOccurs = decimal.MaxValue;
  3016. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3017. sequence.Items.Add(any1);
  3018. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3019. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3020. any2.MinOccurs = new decimal(1);
  3021. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3022. sequence.Items.Add(any2);
  3023. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3024. attribute1.Name = "namespace";
  3025. attribute1.FixedValue = ds.Namespace;
  3026. type.Attributes.Add(attribute1);
  3027. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3028. attribute2.Name = "tableTypeName";
  3029. attribute2.FixedValue = "_Запрос_Заказы_ДоговораЗаказовDataTable";
  3030. type.Attributes.Add(attribute2);
  3031. type.Particle = sequence;
  3032. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3033. if (xs.Contains(dsSchema.TargetNamespace)) {
  3034. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3035. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3036. try {
  3037. global::System.Xml.Schema.XmlSchema schema = null;
  3038. dsSchema.Write(s1);
  3039. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3040. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3041. s2.SetLength(0);
  3042. schema.Write(s2);
  3043. if ((s1.Length == s2.Length)) {
  3044. s1.Position = 0;
  3045. s2.Position = 0;
  3046. for (; ((s1.Position != s1.Length)
  3047. && (s1.ReadByte() == s2.ReadByte())); ) {
  3048. ;
  3049. }
  3050. if ((s1.Position == s1.Length)) {
  3051. return type;
  3052. }
  3053. }
  3054. }
  3055. }
  3056. finally {
  3057. if ((s1 != null)) {
  3058. s1.Close();
  3059. }
  3060. if ((s2 != null)) {
  3061. s2.Close();
  3062. }
  3063. }
  3064. }
  3065. xs.Add(dsSchema);
  3066. return type;
  3067. }
  3068. }
  3069. /// <summary>
  3070. ///Represents the strongly named DataTable class.
  3071. ///</summary>
  3072. [global::System.Serializable()]
  3073. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3074. public partial class Запрос_ПлановаяПоставкаDataTable : global::System.Data.TypedTableBase<Запрос_ПлановаяПоставкаRow> {
  3075. private global::System.Data.DataColumn columnФИО;
  3076. private global::System.Data.DataColumn columnНаименованиеЗаказа;
  3077. private global::System.Data.DataColumn columnНаименованиеТовара;
  3078. private global::System.Data.DataColumn columnЦенаТовара;
  3079. private global::System.Data.DataColumn columnПлановаяПоставка;
  3080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3082. public Запрос_ПлановаяПоставкаDataTable() {
  3083. this.TableName = "Запрос_ПлановаяПоставка";
  3084. this.BeginInit();
  3085. this.InitClass();
  3086. this.EndInit();
  3087. }
  3088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3090. internal Запрос_ПлановаяПоставкаDataTable(global::System.Data.DataTable table) {
  3091. this.TableName = table.TableName;
  3092. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3093. this.CaseSensitive = table.CaseSensitive;
  3094. }
  3095. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3096. this.Locale = table.Locale;
  3097. }
  3098. if ((table.Namespace != table.DataSet.Namespace)) {
  3099. this.Namespace = table.Namespace;
  3100. }
  3101. this.Prefix = table.Prefix;
  3102. this.MinimumCapacity = table.MinimumCapacity;
  3103. }
  3104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3106. protected Запрос_ПлановаяПоставкаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3107. base(info, context) {
  3108. this.InitVars();
  3109. }
  3110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3112. public global::System.Data.DataColumn ФИОColumn {
  3113. get {
  3114. return this.columnФИО;
  3115. }
  3116. }
  3117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3119. public global::System.Data.DataColumn НаименованиеЗаказаColumn {
  3120. get {
  3121. return this.columnНаименованиеЗаказа;
  3122. }
  3123. }
  3124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3126. public global::System.Data.DataColumn НаименованиеТовараColumn {
  3127. get {
  3128. return this.columnНаименованиеТовара;
  3129. }
  3130. }
  3131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3133. public global::System.Data.DataColumn ЦенаТовараColumn {
  3134. get {
  3135. return this.columnЦенаТовара;
  3136. }
  3137. }
  3138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3140. public global::System.Data.DataColumn ПлановаяПоставкаColumn {
  3141. get {
  3142. return this.columnПлановаяПоставка;
  3143. }
  3144. }
  3145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3147. [global::System.ComponentModel.Browsable(false)]
  3148. public int Count {
  3149. get {
  3150. return this.Rows.Count;
  3151. }
  3152. }
  3153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3155. public Запрос_ПлановаяПоставкаRow this[int index] {
  3156. get {
  3157. return ((Запрос_ПлановаяПоставкаRow)(this.Rows[index]));
  3158. }
  3159. }
  3160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3161. public event Запрос_ПлановаяПоставкаRowChangeEventHandler Запрос_ПлановаяПоставкаRowChanging;
  3162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3163. public event Запрос_ПлановаяПоставкаRowChangeEventHandler Запрос_ПлановаяПоставкаRowChanged;
  3164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3165. public event Запрос_ПлановаяПоставкаRowChangeEventHandler Запрос_ПлановаяПоставкаRowDeleting;
  3166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3167. public event Запрос_ПлановаяПоставкаRowChangeEventHandler Запрос_ПлановаяПоставкаRowDeleted;
  3168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3170. public void AddЗапрос_ПлановаяПоставкаRow(Запрос_ПлановаяПоставкаRow row) {
  3171. this.Rows.Add(row);
  3172. }
  3173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3175. public Запрос_ПлановаяПоставкаRow AddЗапрос_ПлановаяПоставкаRow(string ФИО, string НаименованиеЗаказа, string НаименованиеТовара, decimal ЦенаТовара, bool ПлановаяПоставка) {
  3176. Запрос_ПлановаяПоставкаRow rowЗапрос_ПлановаяПоставкаRow = ((Запрос_ПлановаяПоставкаRow)(this.NewRow()));
  3177. object[] columnValuesArray = new object[] {
  3178. ФИО,
  3179. НаименованиеЗаказа,
  3180. НаименованиеТовара,
  3181. ЦенаТовара,
  3182. ПлановаяПоставка};
  3183. rowЗапрос_ПлановаяПоставкаRow.ItemArray = columnValuesArray;
  3184. this.Rows.Add(rowЗапрос_ПлановаяПоставкаRow);
  3185. return rowЗапрос_ПлановаяПоставкаRow;
  3186. }
  3187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3189. public override global::System.Data.DataTable Clone() {
  3190. Запрос_ПлановаяПоставкаDataTable cln = ((Запрос_ПлановаяПоставкаDataTable)(base.Clone()));
  3191. cln.InitVars();
  3192. return cln;
  3193. }
  3194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3196. protected override global::System.Data.DataTable CreateInstance() {
  3197. return new Запрос_ПлановаяПоставкаDataTable();
  3198. }
  3199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3201. internal void InitVars() {
  3202. this.columnФИО = base.Columns["ФИО"];
  3203. this.columnНаименованиеЗаказа = base.Columns["НаименованиеЗаказа"];
  3204. this.columnНаименованиеТовара = base.Columns["НаименованиеТовара"];
  3205. this.columnЦенаТовара = base.Columns["ЦенаТовара"];
  3206. this.columnПлановаяПоставка = base.Columns["ПлановаяПоставка"];
  3207. }
  3208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3210. private void InitClass() {
  3211. this.columnФИО = new global::System.Data.DataColumn("ФИО", typeof(string), null, global::System.Data.MappingType.Element);
  3212. base.Columns.Add(this.columnФИО);
  3213. this.columnНаименованиеЗаказа = new global::System.Data.DataColumn("НаименованиеЗаказа", typeof(string), null, global::System.Data.MappingType.Element);
  3214. base.Columns.Add(this.columnНаименованиеЗаказа);
  3215. this.columnНаименованиеТовара = new global::System.Data.DataColumn("НаименованиеТовара", typeof(string), null, global::System.Data.MappingType.Element);
  3216. base.Columns.Add(this.columnНаименованиеТовара);
  3217. this.columnЦенаТовара = new global::System.Data.DataColumn("ЦенаТовара", typeof(decimal), null, global::System.Data.MappingType.Element);
  3218. base.Columns.Add(this.columnЦенаТовара);
  3219. this.columnПлановаяПоставка = new global::System.Data.DataColumn("ПлановаяПоставка", typeof(bool), null, global::System.Data.MappingType.Element);
  3220. base.Columns.Add(this.columnПлановаяПоставка);
  3221. this.columnФИО.MaxLength = 100;
  3222. this.columnНаименованиеЗаказа.MaxLength = 2147483647;
  3223. this.columnНаименованиеТовара.MaxLength = 50;
  3224. }
  3225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3227. public Запрос_ПлановаяПоставкаRow NewЗапрос_ПлановаяПоставкаRow() {
  3228. return ((Запрос_ПлановаяПоставкаRow)(this.NewRow()));
  3229. }
  3230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3232. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3233. return new Запрос_ПлановаяПоставкаRow(builder);
  3234. }
  3235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3237. protected override global::System.Type GetRowType() {
  3238. return typeof(Запрос_ПлановаяПоставкаRow);
  3239. }
  3240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3242. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3243. base.OnRowChanged(e);
  3244. if ((this.Запрос_ПлановаяПоставкаRowChanged != null)) {
  3245. this.Запрос_ПлановаяПоставкаRowChanged(this, new Запрос_ПлановаяПоставкаRowChangeEvent(((Запрос_ПлановаяПоставкаRow)(e.Row)), e.Action));
  3246. }
  3247. }
  3248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3250. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3251. base.OnRowChanging(e);
  3252. if ((this.Запрос_ПлановаяПоставкаRowChanging != null)) {
  3253. this.Запрос_ПлановаяПоставкаRowChanging(this, new Запрос_ПлановаяПоставкаRowChangeEvent(((Запрос_ПлановаяПоставкаRow)(e.Row)), e.Action));
  3254. }
  3255. }
  3256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3258. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3259. base.OnRowDeleted(e);
  3260. if ((this.Запрос_ПлановаяПоставкаRowDeleted != null)) {
  3261. this.Запрос_ПлановаяПоставкаRowDeleted(this, new Запрос_ПлановаяПоставкаRowChangeEvent(((Запрос_ПлановаяПоставкаRow)(e.Row)), e.Action));
  3262. }
  3263. }
  3264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3266. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3267. base.OnRowDeleting(e);
  3268. if ((this.Запрос_ПлановаяПоставкаRowDeleting != null)) {
  3269. this.Запрос_ПлановаяПоставкаRowDeleting(this, new Запрос_ПлановаяПоставкаRowChangeEvent(((Запрос_ПлановаяПоставкаRow)(e.Row)), e.Action));
  3270. }
  3271. }
  3272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3274. public void RemoveЗапрос_ПлановаяПоставкаRow(Запрос_ПлановаяПоставкаRow row) {
  3275. this.Rows.Remove(row);
  3276. }
  3277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3279. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3280. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3281. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3282. PostavkaTovarovDataSet ds = new PostavkaTovarovDataSet();
  3283. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3284. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3285. any1.MinOccurs = new decimal(0);
  3286. any1.MaxOccurs = decimal.MaxValue;
  3287. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3288. sequence.Items.Add(any1);
  3289. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3290. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3291. any2.MinOccurs = new decimal(1);
  3292. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3293. sequence.Items.Add(any2);
  3294. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3295. attribute1.Name = "namespace";
  3296. attribute1.FixedValue = ds.Namespace;
  3297. type.Attributes.Add(attribute1);
  3298. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3299. attribute2.Name = "tableTypeName";
  3300. attribute2.FixedValue = "Запрос_ПлановаяПоставкаDataTable";
  3301. type.Attributes.Add(attribute2);
  3302. type.Particle = sequence;
  3303. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3304. if (xs.Contains(dsSchema.TargetNamespace)) {
  3305. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3306. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3307. try {
  3308. global::System.Xml.Schema.XmlSchema schema = null;
  3309. dsSchema.Write(s1);
  3310. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3311. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3312. s2.SetLength(0);
  3313. schema.Write(s2);
  3314. if ((s1.Length == s2.Length)) {
  3315. s1.Position = 0;
  3316. s2.Position = 0;
  3317. for (; ((s1.Position != s1.Length)
  3318. && (s1.ReadByte() == s2.ReadByte())); ) {
  3319. ;
  3320. }
  3321. if ((s1.Position == s1.Length)) {
  3322. return type;
  3323. }
  3324. }
  3325. }
  3326. }
  3327. finally {
  3328. if ((s1 != null)) {
  3329. s1.Close();
  3330. }
  3331. if ((s2 != null)) {
  3332. s2.Close();
  3333. }
  3334. }
  3335. }
  3336. xs.Add(dsSchema);
  3337. return type;
  3338. }
  3339. }
  3340. /// <summary>
  3341. ///Represents the strongly named DataTable class.
  3342. ///</summary>
  3343. [global::System.Serializable()]
  3344. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3345. public partial class Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable : global::System.Data.TypedTableBase<Запрос_ФИОЗаказавшихКерамическиеИзделияRow> {
  3346. private global::System.Data.DataColumn columnНаименованиеТовара;
  3347. private global::System.Data.DataColumn columnНаименованиеЗаказа;
  3348. private global::System.Data.DataColumn columnФИО;
  3349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3351. public Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable() {
  3352. this.TableName = "Запрос_ФИОЗаказавшихКерамическиеИзделия";
  3353. this.BeginInit();
  3354. this.InitClass();
  3355. this.EndInit();
  3356. }
  3357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3359. internal Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable(global::System.Data.DataTable table) {
  3360. this.TableName = table.TableName;
  3361. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3362. this.CaseSensitive = table.CaseSensitive;
  3363. }
  3364. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3365. this.Locale = table.Locale;
  3366. }
  3367. if ((table.Namespace != table.DataSet.Namespace)) {
  3368. this.Namespace = table.Namespace;
  3369. }
  3370. this.Prefix = table.Prefix;
  3371. this.MinimumCapacity = table.MinimumCapacity;
  3372. }
  3373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3375. protected Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3376. base(info, context) {
  3377. this.InitVars();
  3378. }
  3379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3381. public global::System.Data.DataColumn НаименованиеТовараColumn {
  3382. get {
  3383. return this.columnНаименованиеТовара;
  3384. }
  3385. }
  3386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3388. public global::System.Data.DataColumn НаименованиеЗаказаColumn {
  3389. get {
  3390. return this.columnНаименованиеЗаказа;
  3391. }
  3392. }
  3393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3395. public global::System.Data.DataColumn ФИОColumn {
  3396. get {
  3397. return this.columnФИО;
  3398. }
  3399. }
  3400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3402. [global::System.ComponentModel.Browsable(false)]
  3403. public int Count {
  3404. get {
  3405. return this.Rows.Count;
  3406. }
  3407. }
  3408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3410. public Запрос_ФИОЗаказавшихКерамическиеИзделияRow this[int index] {
  3411. get {
  3412. return ((Запрос_ФИОЗаказавшихКерамическиеИзделияRow)(this.Rows[index]));
  3413. }
  3414. }
  3415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3416. public event Запрос_ФИОЗаказавшихКерамическиеИзделияRowChangeEventHandler Запрос_ФИОЗаказавшихКерамическиеИзделияRowChanging;
  3417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3418. public event Запрос_ФИОЗаказавшихКерамическиеИзделияRowChangeEventHandler Запрос_ФИОЗаказавшихКерамическиеИзделияRowChanged;
  3419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3420. public event Запрос_ФИОЗаказавшихКерамическиеИзделияRowChangeEventHandler Запрос_ФИОЗаказавшихКерамическиеИзделияRowDeleting;
  3421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3422. public event Запрос_ФИОЗаказавшихКерамическиеИзделияRowChangeEventHandler Запрос_ФИОЗаказавшихКерамическиеИзделияRowDeleted;
  3423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3425. public void AddЗапрос_ФИОЗаказавшихКерамическиеИзделияRow(Запрос_ФИОЗаказавшихКерамическиеИзделияRow row) {
  3426. this.Rows.Add(row);
  3427. }
  3428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3430. public Запрос_ФИОЗаказавшихКерамическиеИзделияRow AddЗапрос_ФИОЗаказавшихКерамическиеИзделияRow(string НаименованиеТовара, string НаименованиеЗаказа, string ФИО) {
  3431. Запрос_ФИОЗаказавшихКерамическиеИзделияRow rowЗапрос_ФИОЗаказавшихКерамическиеИзделияRow = ((Запрос_ФИОЗаказавшихКерамическиеИзделияRow)(this.NewRow()));
  3432. object[] columnValuesArray = new object[] {
  3433. НаименованиеТовара,
  3434. НаименованиеЗаказа,
  3435. ФИО};
  3436. rowЗапрос_ФИОЗаказавшихКерамическиеИзделияRow.ItemArray = columnValuesArray;
  3437. this.Rows.Add(rowЗапрос_ФИОЗаказавшихКерамическиеИзделияRow);
  3438. return rowЗапрос_ФИОЗаказавшихКерамическиеИзделияRow;
  3439. }
  3440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3442. public override global::System.Data.DataTable Clone() {
  3443. Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable cln = ((Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable)(base.Clone()));
  3444. cln.InitVars();
  3445. return cln;
  3446. }
  3447. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3448. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3449. protected override global::System.Data.DataTable CreateInstance() {
  3450. return new Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable();
  3451. }
  3452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3454. internal void InitVars() {
  3455. this.columnНаименованиеТовара = base.Columns["НаименованиеТовара"];
  3456. this.columnНаименованиеЗаказа = base.Columns["НаименованиеЗаказа"];
  3457. this.columnФИО = base.Columns["ФИО"];
  3458. }
  3459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3461. private void InitClass() {
  3462. this.columnНаименованиеТовара = new global::System.Data.DataColumn("НаименованиеТовара", typeof(string), null, global::System.Data.MappingType.Element);
  3463. base.Columns.Add(this.columnНаименованиеТовара);
  3464. this.columnНаименованиеЗаказа = new global::System.Data.DataColumn("НаименованиеЗаказа", typeof(string), null, global::System.Data.MappingType.Element);
  3465. base.Columns.Add(this.columnНаименованиеЗаказа);
  3466. this.columnФИО = new global::System.Data.DataColumn("ФИО", typeof(string), null, global::System.Data.MappingType.Element);
  3467. base.Columns.Add(this.columnФИО);
  3468. this.columnНаименованиеТовара.MaxLength = 50;
  3469. this.columnНаименованиеЗаказа.MaxLength = 2147483647;
  3470. this.columnФИО.MaxLength = 100;
  3471. }
  3472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3474. public Запрос_ФИОЗаказавшихКерамическиеИзделияRow NewЗапрос_ФИОЗаказавшихКерамическиеИзделияRow() {
  3475. return ((Запрос_ФИОЗаказавшихКерамическиеИзделияRow)(this.NewRow()));
  3476. }
  3477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3479. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3480. return new Запрос_ФИОЗаказавшихКерамическиеИзделияRow(builder);
  3481. }
  3482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3484. protected override global::System.Type GetRowType() {
  3485. return typeof(Запрос_ФИОЗаказавшихКерамическиеИзделияRow);
  3486. }
  3487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3489. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3490. base.OnRowChanged(e);
  3491. if ((this.Запрос_ФИОЗаказавшихКерамическиеИзделияRowChanged != null)) {
  3492. this.Запрос_ФИОЗаказавшихКерамическиеИзделияRowChanged(this, new Запрос_ФИОЗаказавшихКерамическиеИзделияRowChangeEvent(((Запрос_ФИОЗаказавшихКерамическиеИзделияRow)(e.Row)), e.Action));
  3493. }
  3494. }
  3495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3497. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3498. base.OnRowChanging(e);
  3499. if ((this.Запрос_ФИОЗаказавшихКерамическиеИзделияRowChanging != null)) {
  3500. this.Запрос_ФИОЗаказавшихКерамическиеИзделияRowChanging(this, new Запрос_ФИОЗаказавшихКерамическиеИзделияRowChangeEvent(((Запрос_ФИОЗаказавшихКерамическиеИзделияRow)(e.Row)), e.Action));
  3501. }
  3502. }
  3503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3505. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3506. base.OnRowDeleted(e);
  3507. if ((this.Запрос_ФИОЗаказавшихКерамическиеИзделияRowDeleted != null)) {
  3508. this.Запрос_ФИОЗаказавшихКерамическиеИзделияRowDeleted(this, new Запрос_ФИОЗаказавшихКерамическиеИзделияRowChangeEvent(((Запрос_ФИОЗаказавшихКерамическиеИзделияRow)(e.Row)), e.Action));
  3509. }
  3510. }
  3511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3513. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3514. base.OnRowDeleting(e);
  3515. if ((this.Запрос_ФИОЗаказавшихКерамическиеИзделияRowDeleting != null)) {
  3516. this.Запрос_ФИОЗаказавшихКерамическиеИзделияRowDeleting(this, new Запрос_ФИОЗаказавшихКерамическиеИзделияRowChangeEvent(((Запрос_ФИОЗаказавшихКерамическиеИзделияRow)(e.Row)), e.Action));
  3517. }
  3518. }
  3519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3521. public void RemoveЗапрос_ФИОЗаказавшихКерамическиеИзделияRow(Запрос_ФИОЗаказавшихКерамическиеИзделияRow row) {
  3522. this.Rows.Remove(row);
  3523. }
  3524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3526. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3527. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3528. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3529. PostavkaTovarovDataSet ds = new PostavkaTovarovDataSet();
  3530. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3531. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3532. any1.MinOccurs = new decimal(0);
  3533. any1.MaxOccurs = decimal.MaxValue;
  3534. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3535. sequence.Items.Add(any1);
  3536. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3537. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3538. any2.MinOccurs = new decimal(1);
  3539. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3540. sequence.Items.Add(any2);
  3541. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3542. attribute1.Name = "namespace";
  3543. attribute1.FixedValue = ds.Namespace;
  3544. type.Attributes.Add(attribute1);
  3545. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3546. attribute2.Name = "tableTypeName";
  3547. attribute2.FixedValue = "Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable";
  3548. type.Attributes.Add(attribute2);
  3549. type.Particle = sequence;
  3550. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3551. if (xs.Contains(dsSchema.TargetNamespace)) {
  3552. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3553. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3554. try {
  3555. global::System.Xml.Schema.XmlSchema schema = null;
  3556. dsSchema.Write(s1);
  3557. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3558. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3559. s2.SetLength(0);
  3560. schema.Write(s2);
  3561. if ((s1.Length == s2.Length)) {
  3562. s1.Position = 0;
  3563. s2.Position = 0;
  3564. for (; ((s1.Position != s1.Length)
  3565. && (s1.ReadByte() == s2.ReadByte())); ) {
  3566. ;
  3567. }
  3568. if ((s1.Position == s1.Length)) {
  3569. return type;
  3570. }
  3571. }
  3572. }
  3573. }
  3574. finally {
  3575. if ((s1 != null)) {
  3576. s1.Close();
  3577. }
  3578. if ((s2 != null)) {
  3579. s2.Close();
  3580. }
  3581. }
  3582. }
  3583. xs.Add(dsSchema);
  3584. return type;
  3585. }
  3586. }
  3587. /// <summary>
  3588. ///Represents the strongly named DataTable class.
  3589. ///</summary>
  3590. [global::System.Serializable()]
  3591. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3592. public partial class Запрос_ФИОЗаказавшихМебельDataTable : global::System.Data.TypedTableBase<Запрос_ФИОЗаказавшихМебельRow> {
  3593. private global::System.Data.DataColumn columnНаименованиеТовара;
  3594. private global::System.Data.DataColumn columnНаименованиеЗаказа;
  3595. private global::System.Data.DataColumn columnФИО;
  3596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3598. public Запрос_ФИОЗаказавшихМебельDataTable() {
  3599. this.TableName = "Запрос_ФИОЗаказавшихМебель";
  3600. this.BeginInit();
  3601. this.InitClass();
  3602. this.EndInit();
  3603. }
  3604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3606. internal Запрос_ФИОЗаказавшихМебельDataTable(global::System.Data.DataTable table) {
  3607. this.TableName = table.TableName;
  3608. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3609. this.CaseSensitive = table.CaseSensitive;
  3610. }
  3611. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3612. this.Locale = table.Locale;
  3613. }
  3614. if ((table.Namespace != table.DataSet.Namespace)) {
  3615. this.Namespace = table.Namespace;
  3616. }
  3617. this.Prefix = table.Prefix;
  3618. this.MinimumCapacity = table.MinimumCapacity;
  3619. }
  3620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3622. protected Запрос_ФИОЗаказавшихМебельDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3623. base(info, context) {
  3624. this.InitVars();
  3625. }
  3626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3628. public global::System.Data.DataColumn НаименованиеТовараColumn {
  3629. get {
  3630. return this.columnНаименованиеТовара;
  3631. }
  3632. }
  3633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3635. public global::System.Data.DataColumn НаименованиеЗаказаColumn {
  3636. get {
  3637. return this.columnНаименованиеЗаказа;
  3638. }
  3639. }
  3640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3642. public global::System.Data.DataColumn ФИОColumn {
  3643. get {
  3644. return this.columnФИО;
  3645. }
  3646. }
  3647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3649. [global::System.ComponentModel.Browsable(false)]
  3650. public int Count {
  3651. get {
  3652. return this.Rows.Count;
  3653. }
  3654. }
  3655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3657. public Запрос_ФИОЗаказавшихМебельRow this[int index] {
  3658. get {
  3659. return ((Запрос_ФИОЗаказавшихМебельRow)(this.Rows[index]));
  3660. }
  3661. }
  3662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3663. public event Запрос_ФИОЗаказавшихМебельRowChangeEventHandler Запрос_ФИОЗаказавшихМебельRowChanging;
  3664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3665. public event Запрос_ФИОЗаказавшихМебельRowChangeEventHandler Запрос_ФИОЗаказавшихМебельRowChanged;
  3666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3667. public event Запрос_ФИОЗаказавшихМебельRowChangeEventHandler Запрос_ФИОЗаказавшихМебельRowDeleting;
  3668. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3669. public event Запрос_ФИОЗаказавшихМебельRowChangeEventHandler Запрос_ФИОЗаказавшихМебельRowDeleted;
  3670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3672. public void AddЗапрос_ФИОЗаказавшихМебельRow(Запрос_ФИОЗаказавшихМебельRow row) {
  3673. this.Rows.Add(row);
  3674. }
  3675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3677. public Запрос_ФИОЗаказавшихМебельRow AddЗапрос_ФИОЗаказавшихМебельRow(string НаименованиеТовара, string НаименованиеЗаказа, string ФИО) {
  3678. Запрос_ФИОЗаказавшихМебельRow rowЗапрос_ФИОЗаказавшихМебельRow = ((Запрос_ФИОЗаказавшихМебельRow)(this.NewRow()));
  3679. object[] columnValuesArray = new object[] {
  3680. НаименованиеТовара,
  3681. НаименованиеЗаказа,
  3682. ФИО};
  3683. rowЗапрос_ФИОЗаказавшихМебельRow.ItemArray = columnValuesArray;
  3684. this.Rows.Add(rowЗапрос_ФИОЗаказавшихМебельRow);
  3685. return rowЗапрос_ФИОЗаказавшихМебельRow;
  3686. }
  3687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3689. public override global::System.Data.DataTable Clone() {
  3690. Запрос_ФИОЗаказавшихМебельDataTable cln = ((Запрос_ФИОЗаказавшихМебельDataTable)(base.Clone()));
  3691. cln.InitVars();
  3692. return cln;
  3693. }
  3694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3696. protected override global::System.Data.DataTable CreateInstance() {
  3697. return new Запрос_ФИОЗаказавшихМебельDataTable();
  3698. }
  3699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3701. internal void InitVars() {
  3702. this.columnНаименованиеТовара = base.Columns["НаименованиеТовара"];
  3703. this.columnНаименованиеЗаказа = base.Columns["НаименованиеЗаказа"];
  3704. this.columnФИО = base.Columns["ФИО"];
  3705. }
  3706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3708. private void InitClass() {
  3709. this.columnНаименованиеТовара = new global::System.Data.DataColumn("НаименованиеТовара", typeof(string), null, global::System.Data.MappingType.Element);
  3710. base.Columns.Add(this.columnНаименованиеТовара);
  3711. this.columnНаименованиеЗаказа = new global::System.Data.DataColumn("НаименованиеЗаказа", typeof(string), null, global::System.Data.MappingType.Element);
  3712. base.Columns.Add(this.columnНаименованиеЗаказа);
  3713. this.columnФИО = new global::System.Data.DataColumn("ФИО", typeof(string), null, global::System.Data.MappingType.Element);
  3714. base.Columns.Add(this.columnФИО);
  3715. this.columnНаименованиеТовара.MaxLength = 50;
  3716. this.columnНаименованиеЗаказа.MaxLength = 2147483647;
  3717. this.columnФИО.MaxLength = 100;
  3718. }
  3719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3721. public Запрос_ФИОЗаказавшихМебельRow NewЗапрос_ФИОЗаказавшихМебельRow() {
  3722. return ((Запрос_ФИОЗаказавшихМебельRow)(this.NewRow()));
  3723. }
  3724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3726. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3727. return new Запрос_ФИОЗаказавшихМебельRow(builder);
  3728. }
  3729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3731. protected override global::System.Type GetRowType() {
  3732. return typeof(Запрос_ФИОЗаказавшихМебельRow);
  3733. }
  3734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3736. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3737. base.OnRowChanged(e);
  3738. if ((this.Запрос_ФИОЗаказавшихМебельRowChanged != null)) {
  3739. this.Запрос_ФИОЗаказавшихМебельRowChanged(this, new Запрос_ФИОЗаказавшихМебельRowChangeEvent(((Запрос_ФИОЗаказавшихМебельRow)(e.Row)), e.Action));
  3740. }
  3741. }
  3742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3744. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3745. base.OnRowChanging(e);
  3746. if ((this.Запрос_ФИОЗаказавшихМебельRowChanging != null)) {
  3747. this.Запрос_ФИОЗаказавшихМебельRowChanging(this, new Запрос_ФИОЗаказавшихМебельRowChangeEvent(((Запрос_ФИОЗаказавшихМебельRow)(e.Row)), e.Action));
  3748. }
  3749. }
  3750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3752. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3753. base.OnRowDeleted(e);
  3754. if ((this.Запрос_ФИОЗаказавшихМебельRowDeleted != null)) {
  3755. this.Запрос_ФИОЗаказавшихМебельRowDeleted(this, new Запрос_ФИОЗаказавшихМебельRowChangeEvent(((Запрос_ФИОЗаказавшихМебельRow)(e.Row)), e.Action));
  3756. }
  3757. }
  3758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3760. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3761. base.OnRowDeleting(e);
  3762. if ((this.Запрос_ФИОЗаказавшихМебельRowDeleting != null)) {
  3763. this.Запрос_ФИОЗаказавшихМебельRowDeleting(this, new Запрос_ФИОЗаказавшихМебельRowChangeEvent(((Запрос_ФИОЗаказавшихМебельRow)(e.Row)), e.Action));
  3764. }
  3765. }
  3766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3768. public void RemoveЗапрос_ФИОЗаказавшихМебельRow(Запрос_ФИОЗаказавшихМебельRow row) {
  3769. this.Rows.Remove(row);
  3770. }
  3771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3773. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3774. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3775. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3776. PostavkaTovarovDataSet ds = new PostavkaTovarovDataSet();
  3777. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3778. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3779. any1.MinOccurs = new decimal(0);
  3780. any1.MaxOccurs = decimal.MaxValue;
  3781. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3782. sequence.Items.Add(any1);
  3783. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3784. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3785. any2.MinOccurs = new decimal(1);
  3786. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3787. sequence.Items.Add(any2);
  3788. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3789. attribute1.Name = "namespace";
  3790. attribute1.FixedValue = ds.Namespace;
  3791. type.Attributes.Add(attribute1);
  3792. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3793. attribute2.Name = "tableTypeName";
  3794. attribute2.FixedValue = "Запрос_ФИОЗаказавшихМебельDataTable";
  3795. type.Attributes.Add(attribute2);
  3796. type.Particle = sequence;
  3797. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3798. if (xs.Contains(dsSchema.TargetNamespace)) {
  3799. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3800. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3801. try {
  3802. global::System.Xml.Schema.XmlSchema schema = null;
  3803. dsSchema.Write(s1);
  3804. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3805. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3806. s2.SetLength(0);
  3807. schema.Write(s2);
  3808. if ((s1.Length == s2.Length)) {
  3809. s1.Position = 0;
  3810. s2.Position = 0;
  3811. for (; ((s1.Position != s1.Length)
  3812. && (s1.ReadByte() == s2.ReadByte())); ) {
  3813. ;
  3814. }
  3815. if ((s1.Position == s1.Length)) {
  3816. return type;
  3817. }
  3818. }
  3819. }
  3820. }
  3821. finally {
  3822. if ((s1 != null)) {
  3823. s1.Close();
  3824. }
  3825. if ((s2 != null)) {
  3826. s2.Close();
  3827. }
  3828. }
  3829. }
  3830. xs.Add(dsSchema);
  3831. return type;
  3832. }
  3833. }
  3834. /// <summary>
  3835. ///Represents strongly named DataRow class.
  3836. ///</summary>
  3837. public partial class ДоговорЗаказаRow : global::System.Data.DataRow {
  3838. private ДоговорЗаказаDataTable tableДоговорЗаказа;
  3839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3841. internal ДоговорЗаказаRow(global::System.Data.DataRowBuilder rb) :
  3842. base(rb) {
  3843. this.tableДоговорЗаказа = ((ДоговорЗаказаDataTable)(this.Table));
  3844. }
  3845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3847. public long КодДоговора {
  3848. get {
  3849. return ((long)(this[this.tableДоговорЗаказа.КодДоговораColumn]));
  3850. }
  3851. set {
  3852. this[this.tableДоговорЗаказа.КодДоговораColumn] = value;
  3853. }
  3854. }
  3855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3857. public System.DateTime ДатаЗаключения {
  3858. get {
  3859. try {
  3860. return ((global::System.DateTime)(this[this.tableДоговорЗаказа.ДатаЗаключенияColumn]));
  3861. }
  3862. catch (global::System.InvalidCastException e) {
  3863. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаЗаключения\' в таблице \'ДоговорЗаказа\' равно DBNull.", e);
  3864. }
  3865. }
  3866. set {
  3867. this[this.tableДоговорЗаказа.ДатаЗаключенияColumn] = value;
  3868. }
  3869. }
  3870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3872. public bool IsДатаЗаключенияNull() {
  3873. return this.IsNull(this.tableДоговорЗаказа.ДатаЗаключенияColumn);
  3874. }
  3875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3877. public void SetДатаЗаключенияNull() {
  3878. this[this.tableДоговорЗаказа.ДатаЗаключенияColumn] = global::System.Convert.DBNull;
  3879. }
  3880. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3881. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3882. public ЗаказыRow[] GetЗаказыRows() {
  3883. if ((this.Table.ChildRelations["FK_Заказы_ДоговорЗаказа"] == null)) {
  3884. return new ЗаказыRow[0];
  3885. }
  3886. else {
  3887. return ((ЗаказыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказы_ДоговорЗаказа"])));
  3888. }
  3889. }
  3890. }
  3891. /// <summary>
  3892. ///Represents strongly named DataRow class.
  3893. ///</summary>
  3894. public partial class ЗаказчикRow : global::System.Data.DataRow {
  3895. private ЗаказчикDataTable tableЗаказчик;
  3896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3898. internal ЗаказчикRow(global::System.Data.DataRowBuilder rb) :
  3899. base(rb) {
  3900. this.tableЗаказчик = ((ЗаказчикDataTable)(this.Table));
  3901. }
  3902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3904. public long КодЗаказчика {
  3905. get {
  3906. return ((long)(this[this.tableЗаказчик.КодЗаказчикаColumn]));
  3907. }
  3908. set {
  3909. this[this.tableЗаказчик.КодЗаказчикаColumn] = value;
  3910. }
  3911. }
  3912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3914. public string ФИО {
  3915. get {
  3916. try {
  3917. return ((string)(this[this.tableЗаказчик.ФИОColumn]));
  3918. }
  3919. catch (global::System.InvalidCastException e) {
  3920. throw new global::System.Data.StrongTypingException("Значение для столбца \'ФИО\' в таблице \'Заказчик\' равно DBNull.", e);
  3921. }
  3922. }
  3923. set {
  3924. this[this.tableЗаказчик.ФИОColumn] = value;
  3925. }
  3926. }
  3927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3929. public string Телефон {
  3930. get {
  3931. try {
  3932. return ((string)(this[this.tableЗаказчик.ТелефонColumn]));
  3933. }
  3934. catch (global::System.InvalidCastException e) {
  3935. throw new global::System.Data.StrongTypingException("Значение для столбца \'Телефон\' в таблице \'Заказчик\' равно DBNull.", e);
  3936. }
  3937. }
  3938. set {
  3939. this[this.tableЗаказчик.ТелефонColumn] = value;
  3940. }
  3941. }
  3942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3944. public string Адрес {
  3945. get {
  3946. try {
  3947. return ((string)(this[this.tableЗаказчик.АдресColumn]));
  3948. }
  3949. catch (global::System.InvalidCastException e) {
  3950. throw new global::System.Data.StrongTypingException("Значение для столбца \'Адрес\' в таблице \'Заказчик\' равно DBNull.", e);
  3951. }
  3952. }
  3953. set {
  3954. this[this.tableЗаказчик.АдресColumn] = value;
  3955. }
  3956. }
  3957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3959. public bool IsФИОNull() {
  3960. return this.IsNull(this.tableЗаказчик.ФИОColumn);
  3961. }
  3962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3964. public void SetФИОNull() {
  3965. this[this.tableЗаказчик.ФИОColumn] = global::System.Convert.DBNull;
  3966. }
  3967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3969. public bool IsТелефонNull() {
  3970. return this.IsNull(this.tableЗаказчик.ТелефонColumn);
  3971. }
  3972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3974. public void SetТелефонNull() {
  3975. this[this.tableЗаказчик.ТелефонColumn] = global::System.Convert.DBNull;
  3976. }
  3977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3979. public bool IsАдресNull() {
  3980. return this.IsNull(this.tableЗаказчик.АдресColumn);
  3981. }
  3982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3984. public void SetАдресNull() {
  3985. this[this.tableЗаказчик.АдресColumn] = global::System.Convert.DBNull;
  3986. }
  3987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3989. public ЗаказыRow[] GetЗаказыRows() {
  3990. if ((this.Table.ChildRelations["FK_Заказы_Заказчик"] == null)) {
  3991. return new ЗаказыRow[0];
  3992. }
  3993. else {
  3994. return ((ЗаказыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказы_Заказчик"])));
  3995. }
  3996. }
  3997. }
  3998. /// <summary>
  3999. ///Represents strongly named DataRow class.
  4000. ///</summary>
  4001. public partial class ЗаказыRow : global::System.Data.DataRow {
  4002. private ЗаказыDataTable tableЗаказы;
  4003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4005. internal ЗаказыRow(global::System.Data.DataRowBuilder rb) :
  4006. base(rb) {
  4007. this.tableЗаказы = ((ЗаказыDataTable)(this.Table));
  4008. }
  4009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4011. public long КодЗаказа {
  4012. get {
  4013. return ((long)(this[this.tableЗаказы.КодЗаказаColumn]));
  4014. }
  4015. set {
  4016. this[this.tableЗаказы.КодЗаказаColumn] = value;
  4017. }
  4018. }
  4019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4021. public string НаименованиеЗаказа {
  4022. get {
  4023. try {
  4024. return ((string)(this[this.tableЗаказы.НаименованиеЗаказаColumn]));
  4025. }
  4026. catch (global::System.InvalidCastException e) {
  4027. throw new global::System.Data.StrongTypingException("Значение для столбца \'НаименованиеЗаказа\' в таблице \'Заказы\' равно DBNull.", e);
  4028. }
  4029. }
  4030. set {
  4031. this[this.tableЗаказы.НаименованиеЗаказаColumn] = value;
  4032. }
  4033. }
  4034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4036. public bool ПлановаяПоставка {
  4037. get {
  4038. try {
  4039. return ((bool)(this[this.tableЗаказы.ПлановаяПоставкаColumn]));
  4040. }
  4041. catch (global::System.InvalidCastException e) {
  4042. throw new global::System.Data.StrongTypingException("Значение для столбца \'ПлановаяПоставка\' в таблице \'Заказы\' равно DBNull.", e);
  4043. }
  4044. }
  4045. set {
  4046. this[this.tableЗаказы.ПлановаяПоставкаColumn] = value;
  4047. }
  4048. }
  4049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4051. public long КодТовара {
  4052. get {
  4053. try {
  4054. return ((long)(this[this.tableЗаказы.КодТовараColumn]));
  4055. }
  4056. catch (global::System.InvalidCastException e) {
  4057. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодТовара\' в таблице \'Заказы\' равно DBNull.", e);
  4058. }
  4059. }
  4060. set {
  4061. this[this.tableЗаказы.КодТовараColumn] = value;
  4062. }
  4063. }
  4064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4066. public long КодЗаказчика {
  4067. get {
  4068. try {
  4069. return ((long)(this[this.tableЗаказы.КодЗаказчикаColumn]));
  4070. }
  4071. catch (global::System.InvalidCastException e) {
  4072. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодЗаказчика\' в таблице \'Заказы\' равно DBNull.", e);
  4073. }
  4074. }
  4075. set {
  4076. this[this.tableЗаказы.КодЗаказчикаColumn] = value;
  4077. }
  4078. }
  4079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4081. public long КодДоговора {
  4082. get {
  4083. try {
  4084. return ((long)(this[this.tableЗаказы.КодДоговораColumn]));
  4085. }
  4086. catch (global::System.InvalidCastException e) {
  4087. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодДоговора\' в таблице \'Заказы\' равно DBNull.", e);
  4088. }
  4089. }
  4090. set {
  4091. this[this.tableЗаказы.КодДоговораColumn] = value;
  4092. }
  4093. }
  4094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4096. public long КодОтгрузки {
  4097. get {
  4098. try {
  4099. return ((long)(this[this.tableЗаказы.КодОтгрузкиColumn]));
  4100. }
  4101. catch (global::System.InvalidCastException e) {
  4102. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодОтгрузки\' в таблице \'Заказы\' равно DBNull.", e);
  4103. }
  4104. }
  4105. set {
  4106. this[this.tableЗаказы.КодОтгрузкиColumn] = value;
  4107. }
  4108. }
  4109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4111. public ДоговорЗаказаRow ДоговорЗаказаRow {
  4112. get {
  4113. return ((ДоговорЗаказаRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказы_ДоговорЗаказа"])));
  4114. }
  4115. set {
  4116. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказы_ДоговорЗаказа"]);
  4117. }
  4118. }
  4119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4121. public ЗаказчикRow ЗаказчикRow {
  4122. get {
  4123. return ((ЗаказчикRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказы_Заказчик"])));
  4124. }
  4125. set {
  4126. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказы_Заказчик"]);
  4127. }
  4128. }
  4129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4131. public ОтгрузкаRow ОтгрузкаRow {
  4132. get {
  4133. return ((ОтгрузкаRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказы_Отгрузка"])));
  4134. }
  4135. set {
  4136. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказы_Отгрузка"]);
  4137. }
  4138. }
  4139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4141. public ТоварыRow ТоварыRow {
  4142. get {
  4143. return ((ТоварыRow)(this.GetParentRow(this.Table.ParentRelations["FK_Заказы_Товары"])));
  4144. }
  4145. set {
  4146. this.SetParentRow(value, this.Table.ParentRelations["FK_Заказы_Товары"]);
  4147. }
  4148. }
  4149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4151. public bool IsНаименованиеЗаказаNull() {
  4152. return this.IsNull(this.tableЗаказы.НаименованиеЗаказаColumn);
  4153. }
  4154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4156. public void SetНаименованиеЗаказаNull() {
  4157. this[this.tableЗаказы.НаименованиеЗаказаColumn] = global::System.Convert.DBNull;
  4158. }
  4159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4161. public bool IsПлановаяПоставкаNull() {
  4162. return this.IsNull(this.tableЗаказы.ПлановаяПоставкаColumn);
  4163. }
  4164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4166. public void SetПлановаяПоставкаNull() {
  4167. this[this.tableЗаказы.ПлановаяПоставкаColumn] = global::System.Convert.DBNull;
  4168. }
  4169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4171. public bool IsКодТовараNull() {
  4172. return this.IsNull(this.tableЗаказы.КодТовараColumn);
  4173. }
  4174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4176. public void SetКодТовараNull() {
  4177. this[this.tableЗаказы.КодТовараColumn] = global::System.Convert.DBNull;
  4178. }
  4179. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4180. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4181. public bool IsКодЗаказчикаNull() {
  4182. return this.IsNull(this.tableЗаказы.КодЗаказчикаColumn);
  4183. }
  4184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4186. public void SetКодЗаказчикаNull() {
  4187. this[this.tableЗаказы.КодЗаказчикаColumn] = global::System.Convert.DBNull;
  4188. }
  4189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4191. public bool IsКодДоговораNull() {
  4192. return this.IsNull(this.tableЗаказы.КодДоговораColumn);
  4193. }
  4194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4196. public void SetКодДоговораNull() {
  4197. this[this.tableЗаказы.КодДоговораColumn] = global::System.Convert.DBNull;
  4198. }
  4199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4201. public bool IsКодОтгрузкиNull() {
  4202. return this.IsNull(this.tableЗаказы.КодОтгрузкиColumn);
  4203. }
  4204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4206. public void SetКодОтгрузкиNull() {
  4207. this[this.tableЗаказы.КодОтгрузкиColumn] = global::System.Convert.DBNull;
  4208. }
  4209. }
  4210. /// <summary>
  4211. ///Represents strongly named DataRow class.
  4212. ///</summary>
  4213. public partial class ОтгрузкаRow : global::System.Data.DataRow {
  4214. private ОтгрузкаDataTable tableОтгрузка;
  4215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4217. internal ОтгрузкаRow(global::System.Data.DataRowBuilder rb) :
  4218. base(rb) {
  4219. this.tableОтгрузка = ((ОтгрузкаDataTable)(this.Table));
  4220. }
  4221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4223. public long КодОтгрузки {
  4224. get {
  4225. return ((long)(this[this.tableОтгрузка.КодОтгрузкиColumn]));
  4226. }
  4227. set {
  4228. this[this.tableОтгрузка.КодОтгрузкиColumn] = value;
  4229. }
  4230. }
  4231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4233. public System.DateTime ДатаОтгрузки {
  4234. get {
  4235. try {
  4236. return ((global::System.DateTime)(this[this.tableОтгрузка.ДатаОтгрузкиColumn]));
  4237. }
  4238. catch (global::System.InvalidCastException e) {
  4239. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаОтгрузки\' в таблице \'Отгрузка\' равно DBNull.", e);
  4240. }
  4241. }
  4242. set {
  4243. this[this.tableОтгрузка.ДатаОтгрузкиColumn] = value;
  4244. }
  4245. }
  4246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4248. public int ОтгруженоТовара {
  4249. get {
  4250. try {
  4251. return ((int)(this[this.tableОтгрузка.ОтгруженоТовараColumn]));
  4252. }
  4253. catch (global::System.InvalidCastException e) {
  4254. throw new global::System.Data.StrongTypingException("Значение для столбца \'ОтгруженоТовара\' в таблице \'Отгрузка\' равно DBNull.", e);
  4255. }
  4256. }
  4257. set {
  4258. this[this.tableОтгрузка.ОтгруженоТовараColumn] = value;
  4259. }
  4260. }
  4261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4263. public bool IsДатаОтгрузкиNull() {
  4264. return this.IsNull(this.tableОтгрузка.ДатаОтгрузкиColumn);
  4265. }
  4266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4268. public void SetДатаОтгрузкиNull() {
  4269. this[this.tableОтгрузка.ДатаОтгрузкиColumn] = global::System.Convert.DBNull;
  4270. }
  4271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4273. public bool IsОтгруженоТовараNull() {
  4274. return this.IsNull(this.tableОтгрузка.ОтгруженоТовараColumn);
  4275. }
  4276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4278. public void SetОтгруженоТовараNull() {
  4279. this[this.tableОтгрузка.ОтгруженоТовараColumn] = global::System.Convert.DBNull;
  4280. }
  4281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4283. public ЗаказыRow[] GetЗаказыRows() {
  4284. if ((this.Table.ChildRelations["FK_Заказы_Отгрузка"] == null)) {
  4285. return new ЗаказыRow[0];
  4286. }
  4287. else {
  4288. return ((ЗаказыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказы_Отгрузка"])));
  4289. }
  4290. }
  4291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4293. public ОтгрузкаТовараRow[] GetОтгрузкаТовараRows() {
  4294. if ((this.Table.ChildRelations["FK_ОтгрузкаТовара_Отгрузка"] == null)) {
  4295. return new ОтгрузкаТовараRow[0];
  4296. }
  4297. else {
  4298. return ((ОтгрузкаТовараRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ОтгрузкаТовара_Отгрузка"])));
  4299. }
  4300. }
  4301. }
  4302. /// <summary>
  4303. ///Represents strongly named DataRow class.
  4304. ///</summary>
  4305. public partial class ОтгрузкаТовараRow : global::System.Data.DataRow {
  4306. private ОтгрузкаТовараDataTable tableОтгрузкаТовара;
  4307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4309. internal ОтгрузкаТовараRow(global::System.Data.DataRowBuilder rb) :
  4310. base(rb) {
  4311. this.tableОтгрузкаТовара = ((ОтгрузкаТовараDataTable)(this.Table));
  4312. }
  4313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4315. public long КодОтгрузкаТовара {
  4316. get {
  4317. return ((long)(this[this.tableОтгрузкаТовара.КодОтгрузкаТовараColumn]));
  4318. }
  4319. set {
  4320. this[this.tableОтгрузкаТовара.КодОтгрузкаТовараColumn] = value;
  4321. }
  4322. }
  4323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4325. public long КодТовара {
  4326. get {
  4327. try {
  4328. return ((long)(this[this.tableОтгрузкаТовара.КодТовараColumn]));
  4329. }
  4330. catch (global::System.InvalidCastException e) {
  4331. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодТовара\' в таблице \'ОтгрузкаТовара\' равно DBNull.", e);
  4332. }
  4333. }
  4334. set {
  4335. this[this.tableОтгрузкаТовара.КодТовараColumn] = value;
  4336. }
  4337. }
  4338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4340. public long КодОтгрузки {
  4341. get {
  4342. try {
  4343. return ((long)(this[this.tableОтгрузкаТовара.КодОтгрузкиColumn]));
  4344. }
  4345. catch (global::System.InvalidCastException e) {
  4346. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодОтгрузки\' в таблице \'ОтгрузкаТовара\' равно DBNull.", e);
  4347. }
  4348. }
  4349. set {
  4350. this[this.tableОтгрузкаТовара.КодОтгрузкиColumn] = value;
  4351. }
  4352. }
  4353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4355. public ОтгрузкаRow ОтгрузкаRow {
  4356. get {
  4357. return ((ОтгрузкаRow)(this.GetParentRow(this.Table.ParentRelations["FK_ОтгрузкаТовара_Отгрузка"])));
  4358. }
  4359. set {
  4360. this.SetParentRow(value, this.Table.ParentRelations["FK_ОтгрузкаТовара_Отгрузка"]);
  4361. }
  4362. }
  4363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4365. public ТоварыRow ТоварыRow {
  4366. get {
  4367. return ((ТоварыRow)(this.GetParentRow(this.Table.ParentRelations["FK_ОтгрузкаТовара_Товары"])));
  4368. }
  4369. set {
  4370. this.SetParentRow(value, this.Table.ParentRelations["FK_ОтгрузкаТовара_Товары"]);
  4371. }
  4372. }
  4373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4375. public bool IsКодТовараNull() {
  4376. return this.IsNull(this.tableОтгрузкаТовара.КодТовараColumn);
  4377. }
  4378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4380. public void SetКодТовараNull() {
  4381. this[this.tableОтгрузкаТовара.КодТовараColumn] = global::System.Convert.DBNull;
  4382. }
  4383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4385. public bool IsКодОтгрузкиNull() {
  4386. return this.IsNull(this.tableОтгрузкаТовара.КодОтгрузкиColumn);
  4387. }
  4388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4390. public void SetКодОтгрузкиNull() {
  4391. this[this.tableОтгрузкаТовара.КодОтгрузкиColumn] = global::System.Convert.DBNull;
  4392. }
  4393. }
  4394. /// <summary>
  4395. ///Represents strongly named DataRow class.
  4396. ///</summary>
  4397. public partial class ТоварыRow : global::System.Data.DataRow {
  4398. private ТоварыDataTable tableТовары;
  4399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4401. internal ТоварыRow(global::System.Data.DataRowBuilder rb) :
  4402. base(rb) {
  4403. this.tableТовары = ((ТоварыDataTable)(this.Table));
  4404. }
  4405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4407. public long КодТовара {
  4408. get {
  4409. return ((long)(this[this.tableТовары.КодТовараColumn]));
  4410. }
  4411. set {
  4412. this[this.tableТовары.КодТовараColumn] = value;
  4413. }
  4414. }
  4415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4417. public string НаименованиеТовара {
  4418. get {
  4419. try {
  4420. return ((string)(this[this.tableТовары.НаименованиеТовараColumn]));
  4421. }
  4422. catch (global::System.InvalidCastException e) {
  4423. throw new global::System.Data.StrongTypingException("Значение для столбца \'НаименованиеТовара\' в таблице \'Товары\' равно DBNull.", e);
  4424. }
  4425. }
  4426. set {
  4427. this[this.tableТовары.НаименованиеТовараColumn] = value;
  4428. }
  4429. }
  4430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4432. public decimal ЦенаТовара {
  4433. get {
  4434. try {
  4435. return ((decimal)(this[this.tableТовары.ЦенаТовараColumn]));
  4436. }
  4437. catch (global::System.InvalidCastException e) {
  4438. throw new global::System.Data.StrongTypingException("Значение для столбца \'ЦенаТовара\' в таблице \'Товары\' равно DBNull.", e);
  4439. }
  4440. }
  4441. set {
  4442. this[this.tableТовары.ЦенаТовараColumn] = value;
  4443. }
  4444. }
  4445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4447. public bool IsНаименованиеТовараNull() {
  4448. return this.IsNull(this.tableТовары.НаименованиеТовараColumn);
  4449. }
  4450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4452. public void SetНаименованиеТовараNull() {
  4453. this[this.tableТовары.НаименованиеТовараColumn] = global::System.Convert.DBNull;
  4454. }
  4455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4457. public bool IsЦенаТовараNull() {
  4458. return this.IsNull(this.tableТовары.ЦенаТовараColumn);
  4459. }
  4460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4462. public void SetЦенаТовараNull() {
  4463. this[this.tableТовары.ЦенаТовараColumn] = global::System.Convert.DBNull;
  4464. }
  4465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4467. public ЗаказыRow[] GetЗаказыRows() {
  4468. if ((this.Table.ChildRelations["FK_Заказы_Товары"] == null)) {
  4469. return new ЗаказыRow[0];
  4470. }
  4471. else {
  4472. return ((ЗаказыRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Заказы_Товары"])));
  4473. }
  4474. }
  4475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4477. public ОтгрузкаТовараRow[] GetОтгрузкаТовараRows() {
  4478. if ((this.Table.ChildRelations["FK_ОтгрузкаТовара_Товары"] == null)) {
  4479. return new ОтгрузкаТовараRow[0];
  4480. }
  4481. else {
  4482. return ((ОтгрузкаТовараRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ОтгрузкаТовара_Товары"])));
  4483. }
  4484. }
  4485. }
  4486. /// <summary>
  4487. ///Represents strongly named DataRow class.
  4488. ///</summary>
  4489. public partial class View_1Row : global::System.Data.DataRow {
  4490. private View_1DataTable tableView_1;
  4491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4493. internal View_1Row(global::System.Data.DataRowBuilder rb) :
  4494. base(rb) {
  4495. this.tableView_1 = ((View_1DataTable)(this.Table));
  4496. }
  4497. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4498. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4499. public long КодДоговора {
  4500. get {
  4501. return ((long)(this[this.tableView_1.КодДоговораColumn]));
  4502. }
  4503. set {
  4504. this[this.tableView_1.КодДоговораColumn] = value;
  4505. }
  4506. }
  4507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4509. public long КодЗаказчика {
  4510. get {
  4511. return ((long)(this[this.tableView_1.КодЗаказчикаColumn]));
  4512. }
  4513. set {
  4514. this[this.tableView_1.КодЗаказчикаColumn] = value;
  4515. }
  4516. }
  4517. }
  4518. /// <summary>
  4519. ///Represents strongly named DataRow class.
  4520. ///</summary>
  4521. public partial class Запрос_ВнеплановаяПоставкаRow : global::System.Data.DataRow {
  4522. private Запрос_ВнеплановаяПоставкаDataTable tableЗапрос_ВнеплановаяПоставка;
  4523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4525. internal Запрос_ВнеплановаяПоставкаRow(global::System.Data.DataRowBuilder rb) :
  4526. base(rb) {
  4527. this.tableЗапрос_ВнеплановаяПоставка = ((Запрос_ВнеплановаяПоставкаDataTable)(this.Table));
  4528. }
  4529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4531. public string ФИО {
  4532. get {
  4533. try {
  4534. return ((string)(this[this.tableЗапрос_ВнеплановаяПоставка.ФИОColumn]));
  4535. }
  4536. catch (global::System.InvalidCastException e) {
  4537. throw new global::System.Data.StrongTypingException("Значение для столбца \'ФИО\' в таблице \'Запрос_ВнеплановаяПоставка\' равно DBNull.", e);
  4538. }
  4539. }
  4540. set {
  4541. this[this.tableЗапрос_ВнеплановаяПоставка.ФИОColumn] = value;
  4542. }
  4543. }
  4544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4546. public string НаименованиеЗаказа {
  4547. get {
  4548. try {
  4549. return ((string)(this[this.tableЗапрос_ВнеплановаяПоставка.НаименованиеЗаказаColumn]));
  4550. }
  4551. catch (global::System.InvalidCastException e) {
  4552. throw new global::System.Data.StrongTypingException("Значение для столбца \'НаименованиеЗаказа\' в таблице \'Запрос_ВнеплановаяПоставка\' " +
  4553. "равно DBNull.", e);
  4554. }
  4555. }
  4556. set {
  4557. this[this.tableЗапрос_ВнеплановаяПоставка.НаименованиеЗаказаColumn] = value;
  4558. }
  4559. }
  4560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4562. public bool ПлановаяПоставка {
  4563. get {
  4564. try {
  4565. return ((bool)(this[this.tableЗапрос_ВнеплановаяПоставка.ПлановаяПоставкаColumn]));
  4566. }
  4567. catch (global::System.InvalidCastException e) {
  4568. throw new global::System.Data.StrongTypingException("Значение для столбца \'ПлановаяПоставка\' в таблице \'Запрос_ВнеплановаяПоставка\' ра" +
  4569. "вно DBNull.", e);
  4570. }
  4571. }
  4572. set {
  4573. this[this.tableЗапрос_ВнеплановаяПоставка.ПлановаяПоставкаColumn] = value;
  4574. }
  4575. }
  4576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4578. public string НаименованиеТовара {
  4579. get {
  4580. try {
  4581. return ((string)(this[this.tableЗапрос_ВнеплановаяПоставка.НаименованиеТовараColumn]));
  4582. }
  4583. catch (global::System.InvalidCastException e) {
  4584. throw new global::System.Data.StrongTypingException("Значение для столбца \'НаименованиеТовара\' в таблице \'Запрос_ВнеплановаяПоставка\' " +
  4585. "равно DBNull.", e);
  4586. }
  4587. }
  4588. set {
  4589. this[this.tableЗапрос_ВнеплановаяПоставка.НаименованиеТовараColumn] = value;
  4590. }
  4591. }
  4592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4594. public decimal ЦенаТовара {
  4595. get {
  4596. try {
  4597. return ((decimal)(this[this.tableЗапрос_ВнеплановаяПоставка.ЦенаТовараColumn]));
  4598. }
  4599. catch (global::System.InvalidCastException e) {
  4600. throw new global::System.Data.StrongTypingException("Значение для столбца \'ЦенаТовара\' в таблице \'Запрос_ВнеплановаяПоставка\' равно DB" +
  4601. "Null.", e);
  4602. }
  4603. }
  4604. set {
  4605. this[this.tableЗапрос_ВнеплановаяПоставка.ЦенаТовараColumn] = value;
  4606. }
  4607. }
  4608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4610. public bool IsФИОNull() {
  4611. return this.IsNull(this.tableЗапрос_ВнеплановаяПоставка.ФИОColumn);
  4612. }
  4613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4615. public void SetФИОNull() {
  4616. this[this.tableЗапрос_ВнеплановаяПоставка.ФИОColumn] = global::System.Convert.DBNull;
  4617. }
  4618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4620. public bool IsНаименованиеЗаказаNull() {
  4621. return this.IsNull(this.tableЗапрос_ВнеплановаяПоставка.НаименованиеЗаказаColumn);
  4622. }
  4623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4625. public void SetНаименованиеЗаказаNull() {
  4626. this[this.tableЗапрос_ВнеплановаяПоставка.НаименованиеЗаказаColumn] = global::System.Convert.DBNull;
  4627. }
  4628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4630. public bool IsПлановаяПоставкаNull() {
  4631. return this.IsNull(this.tableЗапрос_ВнеплановаяПоставка.ПлановаяПоставкаColumn);
  4632. }
  4633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4635. public void SetПлановаяПоставкаNull() {
  4636. this[this.tableЗапрос_ВнеплановаяПоставка.ПлановаяПоставкаColumn] = global::System.Convert.DBNull;
  4637. }
  4638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4640. public bool IsНаименованиеТовараNull() {
  4641. return this.IsNull(this.tableЗапрос_ВнеплановаяПоставка.НаименованиеТовараColumn);
  4642. }
  4643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4645. public void SetНаименованиеТовараNull() {
  4646. this[this.tableЗапрос_ВнеплановаяПоставка.НаименованиеТовараColumn] = global::System.Convert.DBNull;
  4647. }
  4648. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4650. public bool IsЦенаТовараNull() {
  4651. return this.IsNull(this.tableЗапрос_ВнеплановаяПоставка.ЦенаТовараColumn);
  4652. }
  4653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4655. public void SetЦенаТовараNull() {
  4656. this[this.tableЗапрос_ВнеплановаяПоставка.ЦенаТовараColumn] = global::System.Convert.DBNull;
  4657. }
  4658. }
  4659. /// <summary>
  4660. ///Represents strongly named DataRow class.
  4661. ///</summary>
  4662. public partial class _Запрос_Заказы_ДоговораЗаказовRow : global::System.Data.DataRow {
  4663. private _Запрос_Заказы_ДоговораЗаказовDataTable _tableЗапрос_Заказы_ДоговораЗаказов;
  4664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4666. internal _Запрос_Заказы_ДоговораЗаказовRow(global::System.Data.DataRowBuilder rb) :
  4667. base(rb) {
  4668. this._tableЗапрос_Заказы_ДоговораЗаказов = ((_Запрос_Заказы_ДоговораЗаказовDataTable)(this.Table));
  4669. }
  4670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4672. public long КодЗаказчика {
  4673. get {
  4674. try {
  4675. return ((long)(this[this._tableЗапрос_Заказы_ДоговораЗаказов.КодЗаказчикаColumn]));
  4676. }
  4677. catch (global::System.InvalidCastException e) {
  4678. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодЗаказчика\' в таблице \'Запрос_Заказы+ДоговораЗаказов\' рав" +
  4679. "но DBNull.", e);
  4680. }
  4681. }
  4682. set {
  4683. this[this._tableЗапрос_Заказы_ДоговораЗаказов.КодЗаказчикаColumn] = value;
  4684. }
  4685. }
  4686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4688. public long КодЗаказа {
  4689. get {
  4690. return ((long)(this[this._tableЗапрос_Заказы_ДоговораЗаказов.КодЗаказаColumn]));
  4691. }
  4692. set {
  4693. this[this._tableЗапрос_Заказы_ДоговораЗаказов.КодЗаказаColumn] = value;
  4694. }
  4695. }
  4696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4698. public string НаименованиеЗаказа {
  4699. get {
  4700. try {
  4701. return ((string)(this[this._tableЗапрос_Заказы_ДоговораЗаказов.НаименованиеЗаказаColumn]));
  4702. }
  4703. catch (global::System.InvalidCastException e) {
  4704. throw new global::System.Data.StrongTypingException("Значение для столбца \'НаименованиеЗаказа\' в таблице \'Запрос_Заказы+ДоговораЗаказо" +
  4705. "в\' равно DBNull.", e);
  4706. }
  4707. }
  4708. set {
  4709. this[this._tableЗапрос_Заказы_ДоговораЗаказов.НаименованиеЗаказаColumn] = value;
  4710. }
  4711. }
  4712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4714. public long КодТовара {
  4715. get {
  4716. try {
  4717. return ((long)(this[this._tableЗапрос_Заказы_ДоговораЗаказов.КодТовараColumn]));
  4718. }
  4719. catch (global::System.InvalidCastException e) {
  4720. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодТовара\' в таблице \'Запрос_Заказы+ДоговораЗаказов\' равно " +
  4721. "DBNull.", e);
  4722. }
  4723. }
  4724. set {
  4725. this[this._tableЗапрос_Заказы_ДоговораЗаказов.КодТовараColumn] = value;
  4726. }
  4727. }
  4728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4730. public long КодДоговора {
  4731. get {
  4732. return ((long)(this[this._tableЗапрос_Заказы_ДоговораЗаказов.КодДоговораColumn]));
  4733. }
  4734. set {
  4735. this[this._tableЗапрос_Заказы_ДоговораЗаказов.КодДоговораColumn] = value;
  4736. }
  4737. }
  4738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4740. public System.DateTime ДатаЗаключения {
  4741. get {
  4742. try {
  4743. return ((global::System.DateTime)(this[this._tableЗапрос_Заказы_ДоговораЗаказов.ДатаЗаключенияColumn]));
  4744. }
  4745. catch (global::System.InvalidCastException e) {
  4746. throw new global::System.Data.StrongTypingException("Значение для столбца \'ДатаЗаключения\' в таблице \'Запрос_Заказы+ДоговораЗаказов\' р" +
  4747. "авно DBNull.", e);
  4748. }
  4749. }
  4750. set {
  4751. this[this._tableЗапрос_Заказы_ДоговораЗаказов.ДатаЗаключенияColumn] = value;
  4752. }
  4753. }
  4754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4756. public bool ПлановаяПоставка {
  4757. get {
  4758. try {
  4759. return ((bool)(this[this._tableЗапрос_Заказы_ДоговораЗаказов.ПлановаяПоставкаColumn]));
  4760. }
  4761. catch (global::System.InvalidCastException e) {
  4762. throw new global::System.Data.StrongTypingException("Значение для столбца \'ПлановаяПоставка\' в таблице \'Запрос_Заказы+ДоговораЗаказов\'" +
  4763. " равно DBNull.", e);
  4764. }
  4765. }
  4766. set {
  4767. this[this._tableЗапрос_Заказы_ДоговораЗаказов.ПлановаяПоставкаColumn] = value;
  4768. }
  4769. }
  4770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4772. public long КодОтгрузки {
  4773. get {
  4774. try {
  4775. return ((long)(this[this._tableЗапрос_Заказы_ДоговораЗаказов.КодОтгрузкиColumn]));
  4776. }
  4777. catch (global::System.InvalidCastException e) {
  4778. throw new global::System.Data.StrongTypingException("Значение для столбца \'КодОтгрузки\' в таблице \'Запрос_Заказы+ДоговораЗаказов\' равн" +
  4779. "о DBNull.", e);
  4780. }
  4781. }
  4782. set {
  4783. this[this._tableЗапрос_Заказы_ДоговораЗаказов.КодОтгрузкиColumn] = value;
  4784. }
  4785. }
  4786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4788. public bool IsКодЗаказчикаNull() {
  4789. return this.IsNull(this._tableЗапрос_Заказы_ДоговораЗаказов.КодЗаказчикаColumn);
  4790. }
  4791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4793. public void SetКодЗаказчикаNull() {
  4794. this[this._tableЗапрос_Заказы_ДоговораЗаказов.КодЗаказчикаColumn] = global::System.Convert.DBNull;
  4795. }
  4796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4798. public bool IsНаименованиеЗаказаNull() {
  4799. return this.IsNull(this._tableЗапрос_Заказы_ДоговораЗаказов.НаименованиеЗаказаColumn);
  4800. }
  4801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4803. public void SetНаименованиеЗаказаNull() {
  4804. this[this._tableЗапрос_Заказы_ДоговораЗаказов.НаименованиеЗаказаColumn] = global::System.Convert.DBNull;
  4805. }
  4806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4808. public bool IsКодТовараNull() {
  4809. return this.IsNull(this._tableЗапрос_Заказы_ДоговораЗаказов.КодТовараColumn);
  4810. }
  4811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4813. public void SetКодТовараNull() {
  4814. this[this._tableЗапрос_Заказы_ДоговораЗаказов.КодТовараColumn] = global::System.Convert.DBNull;
  4815. }
  4816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4818. public bool IsДатаЗаключенияNull() {
  4819. return this.IsNull(this._tableЗапрос_Заказы_ДоговораЗаказов.ДатаЗаключенияColumn);
  4820. }
  4821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4823. public void SetДатаЗаключенияNull() {
  4824. this[this._tableЗапрос_Заказы_ДоговораЗаказов.ДатаЗаключенияColumn] = global::System.Convert.DBNull;
  4825. }
  4826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4828. public bool IsПлановаяПоставкаNull() {
  4829. return this.IsNull(this._tableЗапрос_Заказы_ДоговораЗаказов.ПлановаяПоставкаColumn);
  4830. }
  4831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4833. public void SetПлановаяПоставкаNull() {
  4834. this[this._tableЗапрос_Заказы_ДоговораЗаказов.ПлановаяПоставкаColumn] = global::System.Convert.DBNull;
  4835. }
  4836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4838. public bool IsКодОтгрузкиNull() {
  4839. return this.IsNull(this._tableЗапрос_Заказы_ДоговораЗаказов.КодОтгрузкиColumn);
  4840. }
  4841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4843. public void SetКодОтгрузкиNull() {
  4844. this[this._tableЗапрос_Заказы_ДоговораЗаказов.КодОтгрузкиColumn] = global::System.Convert.DBNull;
  4845. }
  4846. }
  4847. /// <summary>
  4848. ///Represents strongly named DataRow class.
  4849. ///</summary>
  4850. public partial class Запрос_ПлановаяПоставкаRow : global::System.Data.DataRow {
  4851. private Запрос_ПлановаяПоставкаDataTable tableЗапрос_ПлановаяПоставка;
  4852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4854. internal Запрос_ПлановаяПоставкаRow(global::System.Data.DataRowBuilder rb) :
  4855. base(rb) {
  4856. this.tableЗапрос_ПлановаяПоставка = ((Запрос_ПлановаяПоставкаDataTable)(this.Table));
  4857. }
  4858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4860. public string ФИО {
  4861. get {
  4862. try {
  4863. return ((string)(this[this.tableЗапрос_ПлановаяПоставка.ФИОColumn]));
  4864. }
  4865. catch (global::System.InvalidCastException e) {
  4866. throw new global::System.Data.StrongTypingException("Значение для столбца \'ФИО\' в таблице \'Запрос_ПлановаяПоставка\' равно DBNull.", e);
  4867. }
  4868. }
  4869. set {
  4870. this[this.tableЗапрос_ПлановаяПоставка.ФИОColumn] = value;
  4871. }
  4872. }
  4873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4875. public string НаименованиеЗаказа {
  4876. get {
  4877. try {
  4878. return ((string)(this[this.tableЗапрос_ПлановаяПоставка.НаименованиеЗаказаColumn]));
  4879. }
  4880. catch (global::System.InvalidCastException e) {
  4881. throw new global::System.Data.StrongTypingException("Значение для столбца \'НаименованиеЗаказа\' в таблице \'Запрос_ПлановаяПоставка\' рав" +
  4882. "но DBNull.", e);
  4883. }
  4884. }
  4885. set {
  4886. this[this.tableЗапрос_ПлановаяПоставка.НаименованиеЗаказаColumn] = value;
  4887. }
  4888. }
  4889. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4890. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4891. public string НаименованиеТовара {
  4892. get {
  4893. try {
  4894. return ((string)(this[this.tableЗапрос_ПлановаяПоставка.НаименованиеТовараColumn]));
  4895. }
  4896. catch (global::System.InvalidCastException e) {
  4897. throw new global::System.Data.StrongTypingException("Значение для столбца \'НаименованиеТовара\' в таблице \'Запрос_ПлановаяПоставка\' рав" +
  4898. "но DBNull.", e);
  4899. }
  4900. }
  4901. set {
  4902. this[this.tableЗапрос_ПлановаяПоставка.НаименованиеТовараColumn] = value;
  4903. }
  4904. }
  4905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4907. public decimal ЦенаТовара {
  4908. get {
  4909. try {
  4910. return ((decimal)(this[this.tableЗапрос_ПлановаяПоставка.ЦенаТовараColumn]));
  4911. }
  4912. catch (global::System.InvalidCastException e) {
  4913. throw new global::System.Data.StrongTypingException("Значение для столбца \'ЦенаТовара\' в таблице \'Запрос_ПлановаяПоставка\' равно DBNul" +
  4914. "l.", e);
  4915. }
  4916. }
  4917. set {
  4918. this[this.tableЗапрос_ПлановаяПоставка.ЦенаТовараColumn] = value;
  4919. }
  4920. }
  4921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4923. public bool ПлановаяПоставка {
  4924. get {
  4925. try {
  4926. return ((bool)(this[this.tableЗапрос_ПлановаяПоставка.ПлановаяПоставкаColumn]));
  4927. }
  4928. catch (global::System.InvalidCastException e) {
  4929. throw new global::System.Data.StrongTypingException("Значение для столбца \'ПлановаяПоставка\' в таблице \'Запрос_ПлановаяПоставка\' равно" +
  4930. " DBNull.", e);
  4931. }
  4932. }
  4933. set {
  4934. this[this.tableЗапрос_ПлановаяПоставка.ПлановаяПоставкаColumn] = value;
  4935. }
  4936. }
  4937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4939. public bool IsФИОNull() {
  4940. return this.IsNull(this.tableЗапрос_ПлановаяПоставка.ФИОColumn);
  4941. }
  4942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4944. public void SetФИОNull() {
  4945. this[this.tableЗапрос_ПлановаяПоставка.ФИОColumn] = global::System.Convert.DBNull;
  4946. }
  4947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4949. public bool IsНаименованиеЗаказаNull() {
  4950. return this.IsNull(this.tableЗапрос_ПлановаяПоставка.НаименованиеЗаказаColumn);
  4951. }
  4952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4954. public void SetНаименованиеЗаказаNull() {
  4955. this[this.tableЗапрос_ПлановаяПоставка.НаименованиеЗаказаColumn] = global::System.Convert.DBNull;
  4956. }
  4957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4959. public bool IsНаименованиеТовараNull() {
  4960. return this.IsNull(this.tableЗапрос_ПлановаяПоставка.НаименованиеТовараColumn);
  4961. }
  4962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4964. public void SetНаименованиеТовараNull() {
  4965. this[this.tableЗапрос_ПлановаяПоставка.НаименованиеТовараColumn] = global::System.Convert.DBNull;
  4966. }
  4967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4969. public bool IsЦенаТовараNull() {
  4970. return this.IsNull(this.tableЗапрос_ПлановаяПоставка.ЦенаТовараColumn);
  4971. }
  4972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4974. public void SetЦенаТовараNull() {
  4975. this[this.tableЗапрос_ПлановаяПоставка.ЦенаТовараColumn] = global::System.Convert.DBNull;
  4976. }
  4977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4979. public bool IsПлановаяПоставкаNull() {
  4980. return this.IsNull(this.tableЗапрос_ПлановаяПоставка.ПлановаяПоставкаColumn);
  4981. }
  4982. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4984. public void SetПлановаяПоставкаNull() {
  4985. this[this.tableЗапрос_ПлановаяПоставка.ПлановаяПоставкаColumn] = global::System.Convert.DBNull;
  4986. }
  4987. }
  4988. /// <summary>
  4989. ///Represents strongly named DataRow class.
  4990. ///</summary>
  4991. public partial class Запрос_ФИОЗаказавшихКерамическиеИзделияRow : global::System.Data.DataRow {
  4992. private Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable tableЗапрос_ФИОЗаказавшихКерамическиеИзделия;
  4993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4995. internal Запрос_ФИОЗаказавшихКерамическиеИзделияRow(global::System.Data.DataRowBuilder rb) :
  4996. base(rb) {
  4997. this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия = ((Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable)(this.Table));
  4998. }
  4999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5001. public string НаименованиеТовара {
  5002. get {
  5003. try {
  5004. return ((string)(this[this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия.НаименованиеТовараColumn]));
  5005. }
  5006. catch (global::System.InvalidCastException e) {
  5007. throw new global::System.Data.StrongTypingException("Значение для столбца \'НаименованиеТовара\' в таблице \'Запрос_ФИОЗаказавшихКерамиче" +
  5008. "скиеИзделия\' равно DBNull.", e);
  5009. }
  5010. }
  5011. set {
  5012. this[this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия.НаименованиеТовараColumn] = value;
  5013. }
  5014. }
  5015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5017. public string НаименованиеЗаказа {
  5018. get {
  5019. try {
  5020. return ((string)(this[this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия.НаименованиеЗаказаColumn]));
  5021. }
  5022. catch (global::System.InvalidCastException e) {
  5023. throw new global::System.Data.StrongTypingException("Значение для столбца \'НаименованиеЗаказа\' в таблице \'Запрос_ФИОЗаказавшихКерамиче" +
  5024. "скиеИзделия\' равно DBNull.", e);
  5025. }
  5026. }
  5027. set {
  5028. this[this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия.НаименованиеЗаказаColumn] = value;
  5029. }
  5030. }
  5031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5033. public string ФИО {
  5034. get {
  5035. try {
  5036. return ((string)(this[this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия.ФИОColumn]));
  5037. }
  5038. catch (global::System.InvalidCastException e) {
  5039. throw new global::System.Data.StrongTypingException("Значение для столбца \'ФИО\' в таблице \'Запрос_ФИОЗаказавшихКерамическиеИзделия\' ра" +
  5040. "вно DBNull.", e);
  5041. }
  5042. }
  5043. set {
  5044. this[this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия.ФИОColumn] = value;
  5045. }
  5046. }
  5047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5049. public bool IsНаименованиеТовараNull() {
  5050. return this.IsNull(this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия.НаименованиеТовараColumn);
  5051. }
  5052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5054. public void SetНаименованиеТовараNull() {
  5055. this[this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия.НаименованиеТовараColumn] = global::System.Convert.DBNull;
  5056. }
  5057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5059. public bool IsНаименованиеЗаказаNull() {
  5060. return this.IsNull(this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия.НаименованиеЗаказаColumn);
  5061. }
  5062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5064. public void SetНаименованиеЗаказаNull() {
  5065. this[this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия.НаименованиеЗаказаColumn] = global::System.Convert.DBNull;
  5066. }
  5067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5069. public bool IsФИОNull() {
  5070. return this.IsNull(this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия.ФИОColumn);
  5071. }
  5072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5074. public void SetФИОNull() {
  5075. this[this.tableЗапрос_ФИОЗаказавшихКерамическиеИзделия.ФИОColumn] = global::System.Convert.DBNull;
  5076. }
  5077. }
  5078. /// <summary>
  5079. ///Represents strongly named DataRow class.
  5080. ///</summary>
  5081. public partial class Запрос_ФИОЗаказавшихМебельRow : global::System.Data.DataRow {
  5082. private Запрос_ФИОЗаказавшихМебельDataTable tableЗапрос_ФИОЗаказавшихМебель;
  5083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5085. internal Запрос_ФИОЗаказавшихМебельRow(global::System.Data.DataRowBuilder rb) :
  5086. base(rb) {
  5087. this.tableЗапрос_ФИОЗаказавшихМебель = ((Запрос_ФИОЗаказавшихМебельDataTable)(this.Table));
  5088. }
  5089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5091. public string НаименованиеТовара {
  5092. get {
  5093. try {
  5094. return ((string)(this[this.tableЗапрос_ФИОЗаказавшихМебель.НаименованиеТовараColumn]));
  5095. }
  5096. catch (global::System.InvalidCastException e) {
  5097. throw new global::System.Data.StrongTypingException("Значение для столбца \'НаименованиеТовара\' в таблице \'Запрос_ФИОЗаказавшихМебель\' " +
  5098. "равно DBNull.", e);
  5099. }
  5100. }
  5101. set {
  5102. this[this.tableЗапрос_ФИОЗаказавшихМебель.НаименованиеТовараColumn] = value;
  5103. }
  5104. }
  5105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5107. public string НаименованиеЗаказа {
  5108. get {
  5109. try {
  5110. return ((string)(this[this.tableЗапрос_ФИОЗаказавшихМебель.НаименованиеЗаказаColumn]));
  5111. }
  5112. catch (global::System.InvalidCastException e) {
  5113. throw new global::System.Data.StrongTypingException("Значение для столбца \'НаименованиеЗаказа\' в таблице \'Запрос_ФИОЗаказавшихМебель\' " +
  5114. "равно DBNull.", e);
  5115. }
  5116. }
  5117. set {
  5118. this[this.tableЗапрос_ФИОЗаказавшихМебель.НаименованиеЗаказаColumn] = value;
  5119. }
  5120. }
  5121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5123. public string ФИО {
  5124. get {
  5125. try {
  5126. return ((string)(this[this.tableЗапрос_ФИОЗаказавшихМебель.ФИОColumn]));
  5127. }
  5128. catch (global::System.InvalidCastException e) {
  5129. throw new global::System.Data.StrongTypingException("Значение для столбца \'ФИО\' в таблице \'Запрос_ФИОЗаказавшихМебель\' равно DBNull.", e);
  5130. }
  5131. }
  5132. set {
  5133. this[this.tableЗапрос_ФИОЗаказавшихМебель.ФИОColumn] = value;
  5134. }
  5135. }
  5136. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5137. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5138. public bool IsНаименованиеТовараNull() {
  5139. return this.IsNull(this.tableЗапрос_ФИОЗаказавшихМебель.НаименованиеТовараColumn);
  5140. }
  5141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5143. public void SetНаименованиеТовараNull() {
  5144. this[this.tableЗапрос_ФИОЗаказавшихМебель.НаименованиеТовараColumn] = global::System.Convert.DBNull;
  5145. }
  5146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5148. public bool IsНаименованиеЗаказаNull() {
  5149. return this.IsNull(this.tableЗапрос_ФИОЗаказавшихМебель.НаименованиеЗаказаColumn);
  5150. }
  5151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5152. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5153. public void SetНаименованиеЗаказаNull() {
  5154. this[this.tableЗапрос_ФИОЗаказавшихМебель.НаименованиеЗаказаColumn] = global::System.Convert.DBNull;
  5155. }
  5156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5158. public bool IsФИОNull() {
  5159. return this.IsNull(this.tableЗапрос_ФИОЗаказавшихМебель.ФИОColumn);
  5160. }
  5161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5163. public void SetФИОNull() {
  5164. this[this.tableЗапрос_ФИОЗаказавшихМебель.ФИОColumn] = global::System.Convert.DBNull;
  5165. }
  5166. }
  5167. /// <summary>
  5168. ///Row event argument class
  5169. ///</summary>
  5170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5171. public class ДоговорЗаказаRowChangeEvent : global::System.EventArgs {
  5172. private ДоговорЗаказаRow eventRow;
  5173. private global::System.Data.DataRowAction eventAction;
  5174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5176. public ДоговорЗаказаRowChangeEvent(ДоговорЗаказаRow row, global::System.Data.DataRowAction action) {
  5177. this.eventRow = row;
  5178. this.eventAction = action;
  5179. }
  5180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5182. public ДоговорЗаказаRow Row {
  5183. get {
  5184. return this.eventRow;
  5185. }
  5186. }
  5187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5189. public global::System.Data.DataRowAction Action {
  5190. get {
  5191. return this.eventAction;
  5192. }
  5193. }
  5194. }
  5195. /// <summary>
  5196. ///Row event argument class
  5197. ///</summary>
  5198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5199. public class ЗаказчикRowChangeEvent : global::System.EventArgs {
  5200. private ЗаказчикRow eventRow;
  5201. private global::System.Data.DataRowAction eventAction;
  5202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5204. public ЗаказчикRowChangeEvent(ЗаказчикRow row, global::System.Data.DataRowAction action) {
  5205. this.eventRow = row;
  5206. this.eventAction = action;
  5207. }
  5208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5210. public ЗаказчикRow Row {
  5211. get {
  5212. return this.eventRow;
  5213. }
  5214. }
  5215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5217. public global::System.Data.DataRowAction Action {
  5218. get {
  5219. return this.eventAction;
  5220. }
  5221. }
  5222. }
  5223. /// <summary>
  5224. ///Row event argument class
  5225. ///</summary>
  5226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5227. public class ЗаказыRowChangeEvent : global::System.EventArgs {
  5228. private ЗаказыRow eventRow;
  5229. private global::System.Data.DataRowAction eventAction;
  5230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5232. public ЗаказыRowChangeEvent(ЗаказыRow row, global::System.Data.DataRowAction action) {
  5233. this.eventRow = row;
  5234. this.eventAction = action;
  5235. }
  5236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5238. public ЗаказыRow Row {
  5239. get {
  5240. return this.eventRow;
  5241. }
  5242. }
  5243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5245. public global::System.Data.DataRowAction Action {
  5246. get {
  5247. return this.eventAction;
  5248. }
  5249. }
  5250. }
  5251. /// <summary>
  5252. ///Row event argument class
  5253. ///</summary>
  5254. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5255. public class ОтгрузкаRowChangeEvent : global::System.EventArgs {
  5256. private ОтгрузкаRow eventRow;
  5257. private global::System.Data.DataRowAction eventAction;
  5258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5260. public ОтгрузкаRowChangeEvent(ОтгрузкаRow row, global::System.Data.DataRowAction action) {
  5261. this.eventRow = row;
  5262. this.eventAction = action;
  5263. }
  5264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5266. public ОтгрузкаRow Row {
  5267. get {
  5268. return this.eventRow;
  5269. }
  5270. }
  5271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5273. public global::System.Data.DataRowAction Action {
  5274. get {
  5275. return this.eventAction;
  5276. }
  5277. }
  5278. }
  5279. /// <summary>
  5280. ///Row event argument class
  5281. ///</summary>
  5282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5283. public class ОтгрузкаТовараRowChangeEvent : global::System.EventArgs {
  5284. private ОтгрузкаТовараRow eventRow;
  5285. private global::System.Data.DataRowAction eventAction;
  5286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5288. public ОтгрузкаТовараRowChangeEvent(ОтгрузкаТовараRow row, global::System.Data.DataRowAction action) {
  5289. this.eventRow = row;
  5290. this.eventAction = action;
  5291. }
  5292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5294. public ОтгрузкаТовараRow Row {
  5295. get {
  5296. return this.eventRow;
  5297. }
  5298. }
  5299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5301. public global::System.Data.DataRowAction Action {
  5302. get {
  5303. return this.eventAction;
  5304. }
  5305. }
  5306. }
  5307. /// <summary>
  5308. ///Row event argument class
  5309. ///</summary>
  5310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5311. public class ТоварыRowChangeEvent : global::System.EventArgs {
  5312. private ТоварыRow eventRow;
  5313. private global::System.Data.DataRowAction eventAction;
  5314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5316. public ТоварыRowChangeEvent(ТоварыRow row, global::System.Data.DataRowAction action) {
  5317. this.eventRow = row;
  5318. this.eventAction = action;
  5319. }
  5320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5322. public ТоварыRow Row {
  5323. get {
  5324. return this.eventRow;
  5325. }
  5326. }
  5327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5329. public global::System.Data.DataRowAction Action {
  5330. get {
  5331. return this.eventAction;
  5332. }
  5333. }
  5334. }
  5335. /// <summary>
  5336. ///Row event argument class
  5337. ///</summary>
  5338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5339. public class View_1RowChangeEvent : global::System.EventArgs {
  5340. private View_1Row eventRow;
  5341. private global::System.Data.DataRowAction eventAction;
  5342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5344. public View_1RowChangeEvent(View_1Row row, global::System.Data.DataRowAction action) {
  5345. this.eventRow = row;
  5346. this.eventAction = action;
  5347. }
  5348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5350. public View_1Row Row {
  5351. get {
  5352. return this.eventRow;
  5353. }
  5354. }
  5355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5357. public global::System.Data.DataRowAction Action {
  5358. get {
  5359. return this.eventAction;
  5360. }
  5361. }
  5362. }
  5363. /// <summary>
  5364. ///Row event argument class
  5365. ///</summary>
  5366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5367. public class Запрос_ВнеплановаяПоставкаRowChangeEvent : global::System.EventArgs {
  5368. private Запрос_ВнеплановаяПоставкаRow eventRow;
  5369. private global::System.Data.DataRowAction eventAction;
  5370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5372. public Запрос_ВнеплановаяПоставкаRowChangeEvent(Запрос_ВнеплановаяПоставкаRow row, global::System.Data.DataRowAction action) {
  5373. this.eventRow = row;
  5374. this.eventAction = action;
  5375. }
  5376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5378. public Запрос_ВнеплановаяПоставкаRow Row {
  5379. get {
  5380. return this.eventRow;
  5381. }
  5382. }
  5383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5385. public global::System.Data.DataRowAction Action {
  5386. get {
  5387. return this.eventAction;
  5388. }
  5389. }
  5390. }
  5391. /// <summary>
  5392. ///Row event argument class
  5393. ///</summary>
  5394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5395. public class _Запрос_Заказы_ДоговораЗаказовRowChangeEvent : global::System.EventArgs {
  5396. private _Запрос_Заказы_ДоговораЗаказовRow eventRow;
  5397. private global::System.Data.DataRowAction eventAction;
  5398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5400. public _Запрос_Заказы_ДоговораЗаказовRowChangeEvent(_Запрос_Заказы_ДоговораЗаказовRow row, global::System.Data.DataRowAction action) {
  5401. this.eventRow = row;
  5402. this.eventAction = action;
  5403. }
  5404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5406. public _Запрос_Заказы_ДоговораЗаказовRow Row {
  5407. get {
  5408. return this.eventRow;
  5409. }
  5410. }
  5411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5413. public global::System.Data.DataRowAction Action {
  5414. get {
  5415. return this.eventAction;
  5416. }
  5417. }
  5418. }
  5419. /// <summary>
  5420. ///Row event argument class
  5421. ///</summary>
  5422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5423. public class Запрос_ПлановаяПоставкаRowChangeEvent : global::System.EventArgs {
  5424. private Запрос_ПлановаяПоставкаRow eventRow;
  5425. private global::System.Data.DataRowAction eventAction;
  5426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5428. public Запрос_ПлановаяПоставкаRowChangeEvent(Запрос_ПлановаяПоставкаRow row, global::System.Data.DataRowAction action) {
  5429. this.eventRow = row;
  5430. this.eventAction = action;
  5431. }
  5432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5434. public Запрос_ПлановаяПоставкаRow Row {
  5435. get {
  5436. return this.eventRow;
  5437. }
  5438. }
  5439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5441. public global::System.Data.DataRowAction Action {
  5442. get {
  5443. return this.eventAction;
  5444. }
  5445. }
  5446. }
  5447. /// <summary>
  5448. ///Row event argument class
  5449. ///</summary>
  5450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5451. public class Запрос_ФИОЗаказавшихКерамическиеИзделияRowChangeEvent : global::System.EventArgs {
  5452. private Запрос_ФИОЗаказавшихКерамическиеИзделияRow eventRow;
  5453. private global::System.Data.DataRowAction eventAction;
  5454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5456. public Запрос_ФИОЗаказавшихКерамическиеИзделияRowChangeEvent(Запрос_ФИОЗаказавшихКерамическиеИзделияRow row, global::System.Data.DataRowAction action) {
  5457. this.eventRow = row;
  5458. this.eventAction = action;
  5459. }
  5460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5462. public Запрос_ФИОЗаказавшихКерамическиеИзделияRow Row {
  5463. get {
  5464. return this.eventRow;
  5465. }
  5466. }
  5467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5469. public global::System.Data.DataRowAction Action {
  5470. get {
  5471. return this.eventAction;
  5472. }
  5473. }
  5474. }
  5475. /// <summary>
  5476. ///Row event argument class
  5477. ///</summary>
  5478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5479. public class Запрос_ФИОЗаказавшихМебельRowChangeEvent : global::System.EventArgs {
  5480. private Запрос_ФИОЗаказавшихМебельRow eventRow;
  5481. private global::System.Data.DataRowAction eventAction;
  5482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5484. public Запрос_ФИОЗаказавшихМебельRowChangeEvent(Запрос_ФИОЗаказавшихМебельRow row, global::System.Data.DataRowAction action) {
  5485. this.eventRow = row;
  5486. this.eventAction = action;
  5487. }
  5488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5490. public Запрос_ФИОЗаказавшихМебельRow Row {
  5491. get {
  5492. return this.eventRow;
  5493. }
  5494. }
  5495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5497. public global::System.Data.DataRowAction Action {
  5498. get {
  5499. return this.eventAction;
  5500. }
  5501. }
  5502. }
  5503. }
  5504. }
  5505. namespace WindowsFormsApp1Индивидуально.PostavkaTovarovDataSetTableAdapters {
  5506. /// <summary>
  5507. ///Represents the connection and commands used to retrieve and save data.
  5508. ///</summary>
  5509. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5510. [global::System.ComponentModel.ToolboxItem(true)]
  5511. [global::System.ComponentModel.DataObjectAttribute(true)]
  5512. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5513. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5514. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5515. public partial class ДоговорЗаказаTableAdapter : global::System.ComponentModel.Component {
  5516. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5517. private global::System.Data.SqlClient.SqlConnection _connection;
  5518. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5519. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5520. private bool _clearBeforeFill;
  5521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5523. public ДоговорЗаказаTableAdapter() {
  5524. this.ClearBeforeFill = true;
  5525. }
  5526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5528. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5529. get {
  5530. if ((this._adapter == null)) {
  5531. this.InitAdapter();
  5532. }
  5533. return this._adapter;
  5534. }
  5535. }
  5536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5538. internal global::System.Data.SqlClient.SqlConnection Connection {
  5539. get {
  5540. if ((this._connection == null)) {
  5541. this.InitConnection();
  5542. }
  5543. return this._connection;
  5544. }
  5545. set {
  5546. this._connection = value;
  5547. if ((this.Adapter.InsertCommand != null)) {
  5548. this.Adapter.InsertCommand.Connection = value;
  5549. }
  5550. if ((this.Adapter.DeleteCommand != null)) {
  5551. this.Adapter.DeleteCommand.Connection = value;
  5552. }
  5553. if ((this.Adapter.UpdateCommand != null)) {
  5554. this.Adapter.UpdateCommand.Connection = value;
  5555. }
  5556. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5557. if ((this.CommandCollection[i] != null)) {
  5558. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5559. }
  5560. }
  5561. }
  5562. }
  5563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5565. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5566. get {
  5567. return this._transaction;
  5568. }
  5569. set {
  5570. this._transaction = value;
  5571. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5572. this.CommandCollection[i].Transaction = this._transaction;
  5573. }
  5574. if (((this.Adapter != null)
  5575. && (this.Adapter.DeleteCommand != null))) {
  5576. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5577. }
  5578. if (((this.Adapter != null)
  5579. && (this.Adapter.InsertCommand != null))) {
  5580. this.Adapter.InsertCommand.Transaction = this._transaction;
  5581. }
  5582. if (((this.Adapter != null)
  5583. && (this.Adapter.UpdateCommand != null))) {
  5584. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5585. }
  5586. }
  5587. }
  5588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5590. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5591. get {
  5592. if ((this._commandCollection == null)) {
  5593. this.InitCommandCollection();
  5594. }
  5595. return this._commandCollection;
  5596. }
  5597. }
  5598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5600. public bool ClearBeforeFill {
  5601. get {
  5602. return this._clearBeforeFill;
  5603. }
  5604. set {
  5605. this._clearBeforeFill = value;
  5606. }
  5607. }
  5608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5610. private void InitAdapter() {
  5611. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5612. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5613. tableMapping.SourceTable = "Table";
  5614. tableMapping.DataSetTable = "ДоговорЗаказа";
  5615. tableMapping.ColumnMappings.Add("КодДоговора", "КодДоговора");
  5616. tableMapping.ColumnMappings.Add("ДатаЗаключения", "ДатаЗаключения");
  5617. this._adapter.TableMappings.Add(tableMapping);
  5618. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5619. this._adapter.DeleteCommand.Connection = this.Connection;
  5620. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[ДоговорЗаказа] WHERE (([КодДоговора] = @Original_КодДоговора) " +
  5621. "AND ((@IsNull_ДатаЗаключения = 1 AND [ДатаЗаключения] IS NULL) OR ([ДатаЗаключен" +
  5622. "ия] = @Original_ДатаЗаключения)))";
  5623. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5624. 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, "", "", ""));
  5625. 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, "", "", ""));
  5626. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаЗаключения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЗаключения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5627. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5628. this._adapter.InsertCommand.Connection = this.Connection;
  5629. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ДоговорЗаказа] ([ДатаЗаключения]) VALUES (@ДатаЗаключения);\r\nS" +
  5630. "ELECT КодДоговора, ДатаЗаключения FROM ДоговорЗаказа WHERE (КодДоговора = SCOPE_" +
  5631. "IDENTITY())";
  5632. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5633. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаЗаключения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЗаключения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5634. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5635. this._adapter.UpdateCommand.Connection = this.Connection;
  5636. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ДоговорЗаказа] SET [ДатаЗаключения] = @ДатаЗаключения WHERE (([КодДоговора] = @Original_КодДоговора) AND ((@IsNull_ДатаЗаключения = 1 AND [ДатаЗаключения] IS NULL) OR ([ДатаЗаключения] = @Original_ДатаЗаключения)));
  5637. SELECT КодДоговора, ДатаЗаключения FROM ДоговорЗаказа WHERE (КодДоговора = @КодДоговора)";
  5638. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5639. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаЗаключения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЗаключения", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5640. 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, "", "", ""));
  5641. 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, "", "", ""));
  5642. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаЗаключения", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаЗаключения", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5643. 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, "", "", ""));
  5644. }
  5645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5647. private void InitConnection() {
  5648. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5649. this._connection.ConnectionString = global::WindowsFormsApp1Индивидуально.Properties.Settings.Default.PostavkaTovarovConnectionString;
  5650. }
  5651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5653. private void InitCommandCollection() {
  5654. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5655. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5656. this._commandCollection[0].Connection = this.Connection;
  5657. this._commandCollection[0].CommandText = "SELECT КодДоговора, ДатаЗаключения FROM dbo.ДоговорЗаказа";
  5658. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5659. }
  5660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5662. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5663. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5664. public virtual int Fill(PostavkaTovarovDataSet.ДоговорЗаказаDataTable dataTable) {
  5665. this.Adapter.SelectCommand = this.CommandCollection[0];
  5666. if ((this.ClearBeforeFill == true)) {
  5667. dataTable.Clear();
  5668. }
  5669. int returnValue = this.Adapter.Fill(dataTable);
  5670. return returnValue;
  5671. }
  5672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5674. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5675. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5676. public virtual PostavkaTovarovDataSet.ДоговорЗаказаDataTable GetData() {
  5677. this.Adapter.SelectCommand = this.CommandCollection[0];
  5678. PostavkaTovarovDataSet.ДоговорЗаказаDataTable dataTable = new PostavkaTovarovDataSet.ДоговорЗаказаDataTable();
  5679. this.Adapter.Fill(dataTable);
  5680. return dataTable;
  5681. }
  5682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5684. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5685. public virtual int Update(PostavkaTovarovDataSet.ДоговорЗаказаDataTable dataTable) {
  5686. return this.Adapter.Update(dataTable);
  5687. }
  5688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5690. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5691. public virtual int Update(PostavkaTovarovDataSet dataSet) {
  5692. return this.Adapter.Update(dataSet, "ДоговорЗаказа");
  5693. }
  5694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5696. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5697. public virtual int Update(global::System.Data.DataRow dataRow) {
  5698. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5699. dataRow});
  5700. }
  5701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5703. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5704. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5705. return this.Adapter.Update(dataRows);
  5706. }
  5707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5709. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5710. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5711. public virtual int Delete(long Original_КодДоговора, global::System.Nullable<global::System.DateTime> Original_ДатаЗаключения) {
  5712. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_КодДоговора));
  5713. if ((Original_ДатаЗаключения.HasValue == true)) {
  5714. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5715. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_ДатаЗаключения.Value));
  5716. }
  5717. else {
  5718. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5719. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5720. }
  5721. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5722. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5723. != global::System.Data.ConnectionState.Open)) {
  5724. this.Adapter.DeleteCommand.Connection.Open();
  5725. }
  5726. try {
  5727. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5728. return returnValue;
  5729. }
  5730. finally {
  5731. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5732. this.Adapter.DeleteCommand.Connection.Close();
  5733. }
  5734. }
  5735. }
  5736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5738. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5739. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5740. public virtual int Insert(global::System.Nullable<global::System.DateTime> ДатаЗаключения) {
  5741. if ((ДатаЗаключения.HasValue == true)) {
  5742. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(ДатаЗаключения.Value));
  5743. }
  5744. else {
  5745. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5746. }
  5747. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5748. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5749. != global::System.Data.ConnectionState.Open)) {
  5750. this.Adapter.InsertCommand.Connection.Open();
  5751. }
  5752. try {
  5753. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5754. return returnValue;
  5755. }
  5756. finally {
  5757. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5758. this.Adapter.InsertCommand.Connection.Close();
  5759. }
  5760. }
  5761. }
  5762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5764. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5765. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5766. public virtual int Update(global::System.Nullable<global::System.DateTime> ДатаЗаключения, long Original_КодДоговора, global::System.Nullable<global::System.DateTime> Original_ДатаЗаключения, long КодДоговора) {
  5767. if ((ДатаЗаключения.HasValue == true)) {
  5768. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(ДатаЗаключения.Value));
  5769. }
  5770. else {
  5771. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5772. }
  5773. this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(Original_КодДоговора));
  5774. if ((Original_ДатаЗаключения.HasValue == true)) {
  5775. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  5776. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(Original_ДатаЗаключения.Value));
  5777. }
  5778. else {
  5779. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  5780. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5781. }
  5782. this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(КодДоговора));
  5783. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5784. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5785. != global::System.Data.ConnectionState.Open)) {
  5786. this.Adapter.UpdateCommand.Connection.Open();
  5787. }
  5788. try {
  5789. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5790. return returnValue;
  5791. }
  5792. finally {
  5793. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5794. this.Adapter.UpdateCommand.Connection.Close();
  5795. }
  5796. }
  5797. }
  5798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5800. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5801. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5802. public virtual int Update(global::System.Nullable<global::System.DateTime> ДатаЗаключения, long Original_КодДоговора, global::System.Nullable<global::System.DateTime> Original_ДатаЗаключения) {
  5803. return this.Update(ДатаЗаключения, Original_КодДоговора, Original_ДатаЗаключения, Original_КодДоговора);
  5804. }
  5805. }
  5806. /// <summary>
  5807. ///Represents the connection and commands used to retrieve and save data.
  5808. ///</summary>
  5809. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5810. [global::System.ComponentModel.ToolboxItem(true)]
  5811. [global::System.ComponentModel.DataObjectAttribute(true)]
  5812. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5813. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5814. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5815. public partial class ЗаказчикTableAdapter : global::System.ComponentModel.Component {
  5816. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5817. private global::System.Data.SqlClient.SqlConnection _connection;
  5818. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5819. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5820. private bool _clearBeforeFill;
  5821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5823. public ЗаказчикTableAdapter() {
  5824. this.ClearBeforeFill = true;
  5825. }
  5826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5828. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5829. get {
  5830. if ((this._adapter == null)) {
  5831. this.InitAdapter();
  5832. }
  5833. return this._adapter;
  5834. }
  5835. }
  5836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5838. internal global::System.Data.SqlClient.SqlConnection Connection {
  5839. get {
  5840. if ((this._connection == null)) {
  5841. this.InitConnection();
  5842. }
  5843. return this._connection;
  5844. }
  5845. set {
  5846. this._connection = value;
  5847. if ((this.Adapter.InsertCommand != null)) {
  5848. this.Adapter.InsertCommand.Connection = value;
  5849. }
  5850. if ((this.Adapter.DeleteCommand != null)) {
  5851. this.Adapter.DeleteCommand.Connection = value;
  5852. }
  5853. if ((this.Adapter.UpdateCommand != null)) {
  5854. this.Adapter.UpdateCommand.Connection = value;
  5855. }
  5856. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5857. if ((this.CommandCollection[i] != null)) {
  5858. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5859. }
  5860. }
  5861. }
  5862. }
  5863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5865. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5866. get {
  5867. return this._transaction;
  5868. }
  5869. set {
  5870. this._transaction = value;
  5871. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5872. this.CommandCollection[i].Transaction = this._transaction;
  5873. }
  5874. if (((this.Adapter != null)
  5875. && (this.Adapter.DeleteCommand != null))) {
  5876. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5877. }
  5878. if (((this.Adapter != null)
  5879. && (this.Adapter.InsertCommand != null))) {
  5880. this.Adapter.InsertCommand.Transaction = this._transaction;
  5881. }
  5882. if (((this.Adapter != null)
  5883. && (this.Adapter.UpdateCommand != null))) {
  5884. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5885. }
  5886. }
  5887. }
  5888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5890. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5891. get {
  5892. if ((this._commandCollection == null)) {
  5893. this.InitCommandCollection();
  5894. }
  5895. return this._commandCollection;
  5896. }
  5897. }
  5898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5900. public bool ClearBeforeFill {
  5901. get {
  5902. return this._clearBeforeFill;
  5903. }
  5904. set {
  5905. this._clearBeforeFill = value;
  5906. }
  5907. }
  5908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5910. private void InitAdapter() {
  5911. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5912. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5913. tableMapping.SourceTable = "Table";
  5914. tableMapping.DataSetTable = "Заказчик";
  5915. tableMapping.ColumnMappings.Add("КодЗаказчика", "КодЗаказчика");
  5916. tableMapping.ColumnMappings.Add("ФИО", "ФИО");
  5917. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  5918. tableMapping.ColumnMappings.Add("Адрес", "Адрес");
  5919. this._adapter.TableMappings.Add(tableMapping);
  5920. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5921. this._adapter.DeleteCommand.Connection = this.Connection;
  5922. 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_Адрес)))";
  5923. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5924. 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, "", "", ""));
  5925. 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, "", "", ""));
  5926. 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, "", "", ""));
  5927. 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, "", "", ""));
  5928. 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, "", "", ""));
  5929. 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, "", "", ""));
  5930. 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, "", "", ""));
  5931. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5932. this._adapter.InsertCommand.Connection = this.Connection;
  5933. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Заказчик] ([ФИО], [Телефон], [Адрес]) VALUES (@ФИО, @Телефон, " +
  5934. "@Адрес);\r\nSELECT КодЗаказчика, ФИО, Телефон, Адрес FROM Заказчик WHERE (КодЗаказ" +
  5935. "чика = SCOPE_IDENTITY())";
  5936. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5937. 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, "", "", ""));
  5938. 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, "", "", ""));
  5939. 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, "", "", ""));
  5940. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5941. this._adapter.UpdateCommand.Connection = this.Connection;
  5942. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Заказчик] SET [ФИО] = @ФИО, [Телефон] = @Телефон, [Адрес] = @Адрес WHERE (([КодЗаказчика] = @Original_КодЗаказчика) AND ((@IsNull_ФИО = 1 AND [ФИО] IS NULL) OR ([ФИО] = @Original_ФИО)) AND ((@IsNull_Телефон = 1 AND [Телефон] IS NULL) OR ([Телефон] = @Original_Телефон)) AND ((@IsNull_Адрес = 1 AND [Адрес] IS NULL) OR ([Адрес] = @Original_Адрес)));
  5943. SELECT КодЗаказчика, ФИО, Телефон, Адрес FROM Заказчик WHERE (КодЗаказчика = @КодЗаказчика)";
  5944. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5945. 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, "", "", ""));
  5946. 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, "", "", ""));
  5947. 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, "", "", ""));
  5948. 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, "", "", ""));
  5949. 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, "", "", ""));
  5950. 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, "", "", ""));
  5951. 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, "", "", ""));
  5952. 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, "", "", ""));
  5953. 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, "", "", ""));
  5954. 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, "", "", ""));
  5955. 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, "", "", ""));
  5956. }
  5957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5959. private void InitConnection() {
  5960. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5961. this._connection.ConnectionString = global::WindowsFormsApp1Индивидуально.Properties.Settings.Default.PostavkaTovarovConnectionString;
  5962. }
  5963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5965. private void InitCommandCollection() {
  5966. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5967. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5968. this._commandCollection[0].Connection = this.Connection;
  5969. this._commandCollection[0].CommandText = "SELECT КодЗаказчика, ФИО, Телефон, Адрес FROM dbo.Заказчик";
  5970. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5971. }
  5972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5974. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5975. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5976. public virtual int Fill(PostavkaTovarovDataSet.ЗаказчикDataTable dataTable) {
  5977. this.Adapter.SelectCommand = this.CommandCollection[0];
  5978. if ((this.ClearBeforeFill == true)) {
  5979. dataTable.Clear();
  5980. }
  5981. int returnValue = this.Adapter.Fill(dataTable);
  5982. return returnValue;
  5983. }
  5984. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5985. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5986. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5987. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5988. public virtual PostavkaTovarovDataSet.ЗаказчикDataTable GetData() {
  5989. this.Adapter.SelectCommand = this.CommandCollection[0];
  5990. PostavkaTovarovDataSet.ЗаказчикDataTable dataTable = new PostavkaTovarovDataSet.ЗаказчикDataTable();
  5991. this.Adapter.Fill(dataTable);
  5992. return dataTable;
  5993. }
  5994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  5996. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5997. public virtual int Update(PostavkaTovarovDataSet.ЗаказчикDataTable dataTable) {
  5998. return this.Adapter.Update(dataTable);
  5999. }
  6000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6002. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6003. public virtual int Update(PostavkaTovarovDataSet dataSet) {
  6004. return this.Adapter.Update(dataSet, "Заказчик");
  6005. }
  6006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6008. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6009. public virtual int Update(global::System.Data.DataRow dataRow) {
  6010. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6011. dataRow});
  6012. }
  6013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6015. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6016. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6017. return this.Adapter.Update(dataRows);
  6018. }
  6019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6021. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6022. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6023. public virtual int Delete(long Original_КодЗаказчика, string Original_ФИО, string Original_Телефон, string Original_Адрес) {
  6024. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_КодЗаказчика));
  6025. if ((Original_ФИО == null)) {
  6026. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6027. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6028. }
  6029. else {
  6030. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6031. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_ФИО));
  6032. }
  6033. if ((Original_Телефон == null)) {
  6034. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6035. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6036. }
  6037. else {
  6038. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6039. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Телефон));
  6040. }
  6041. if ((Original_Адрес == null)) {
  6042. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6043. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6044. }
  6045. else {
  6046. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6047. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Адрес));
  6048. }
  6049. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6050. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6051. != global::System.Data.ConnectionState.Open)) {
  6052. this.Adapter.DeleteCommand.Connection.Open();
  6053. }
  6054. try {
  6055. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6056. return returnValue;
  6057. }
  6058. finally {
  6059. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6060. this.Adapter.DeleteCommand.Connection.Close();
  6061. }
  6062. }
  6063. }
  6064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6066. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6067. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6068. public virtual int Insert(string ФИО, string Телефон, string Адрес) {
  6069. if ((ФИО == null)) {
  6070. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6071. }
  6072. else {
  6073. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ФИО));
  6074. }
  6075. if ((Телефон == null)) {
  6076. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6077. }
  6078. else {
  6079. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Телефон));
  6080. }
  6081. if ((Адрес == null)) {
  6082. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6083. }
  6084. else {
  6085. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Адрес));
  6086. }
  6087. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6088. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6089. != global::System.Data.ConnectionState.Open)) {
  6090. this.Adapter.InsertCommand.Connection.Open();
  6091. }
  6092. try {
  6093. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6094. return returnValue;
  6095. }
  6096. finally {
  6097. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6098. this.Adapter.InsertCommand.Connection.Close();
  6099. }
  6100. }
  6101. }
  6102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6104. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6105. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6106. public virtual int Update(string ФИО, string Телефон, string Адрес, long Original_КодЗаказчика, string Original_ФИО, string Original_Телефон, string Original_Адрес, long КодЗаказчика) {
  6107. if ((ФИО == null)) {
  6108. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6109. }
  6110. else {
  6111. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ФИО));
  6112. }
  6113. if ((Телефон == null)) {
  6114. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6115. }
  6116. else {
  6117. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Телефон));
  6118. }
  6119. if ((Адрес == null)) {
  6120. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6121. }
  6122. else {
  6123. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Адрес));
  6124. }
  6125. this.Adapter.UpdateCommand.Parameters[3].Value = ((long)(Original_КодЗаказчика));
  6126. if ((Original_ФИО == null)) {
  6127. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(1));
  6128. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6129. }
  6130. else {
  6131. this.Adapter.UpdateCommand.Parameters[4].Value = ((object)(0));
  6132. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_ФИО));
  6133. }
  6134. if ((Original_Телефон == null)) {
  6135. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(1));
  6136. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  6137. }
  6138. else {
  6139. this.Adapter.UpdateCommand.Parameters[6].Value = ((object)(0));
  6140. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Телефон));
  6141. }
  6142. if ((Original_Адрес == null)) {
  6143. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(1));
  6144. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  6145. }
  6146. else {
  6147. this.Adapter.UpdateCommand.Parameters[8].Value = ((object)(0));
  6148. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_Адрес));
  6149. }
  6150. this.Adapter.UpdateCommand.Parameters[10].Value = ((long)(КодЗаказчика));
  6151. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6152. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6153. != global::System.Data.ConnectionState.Open)) {
  6154. this.Adapter.UpdateCommand.Connection.Open();
  6155. }
  6156. try {
  6157. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6158. return returnValue;
  6159. }
  6160. finally {
  6161. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6162. this.Adapter.UpdateCommand.Connection.Close();
  6163. }
  6164. }
  6165. }
  6166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6168. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6169. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6170. public virtual int Update(string ФИО, string Телефон, string Адрес, long Original_КодЗаказчика, string Original_ФИО, string Original_Телефон, string Original_Адрес) {
  6171. return this.Update(ФИО, Телефон, Адрес, Original_КодЗаказчика, Original_ФИО, Original_Телефон, Original_Адрес, Original_КодЗаказчика);
  6172. }
  6173. }
  6174. /// <summary>
  6175. ///Represents the connection and commands used to retrieve and save data.
  6176. ///</summary>
  6177. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6178. [global::System.ComponentModel.ToolboxItem(true)]
  6179. [global::System.ComponentModel.DataObjectAttribute(true)]
  6180. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6181. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6182. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6183. public partial class ЗаказыTableAdapter : global::System.ComponentModel.Component {
  6184. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6185. private global::System.Data.SqlClient.SqlConnection _connection;
  6186. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6187. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6188. private bool _clearBeforeFill;
  6189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6191. public ЗаказыTableAdapter() {
  6192. this.ClearBeforeFill = true;
  6193. }
  6194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6196. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6197. get {
  6198. if ((this._adapter == null)) {
  6199. this.InitAdapter();
  6200. }
  6201. return this._adapter;
  6202. }
  6203. }
  6204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6206. internal global::System.Data.SqlClient.SqlConnection Connection {
  6207. get {
  6208. if ((this._connection == null)) {
  6209. this.InitConnection();
  6210. }
  6211. return this._connection;
  6212. }
  6213. set {
  6214. this._connection = value;
  6215. if ((this.Adapter.InsertCommand != null)) {
  6216. this.Adapter.InsertCommand.Connection = value;
  6217. }
  6218. if ((this.Adapter.DeleteCommand != null)) {
  6219. this.Adapter.DeleteCommand.Connection = value;
  6220. }
  6221. if ((this.Adapter.UpdateCommand != null)) {
  6222. this.Adapter.UpdateCommand.Connection = value;
  6223. }
  6224. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6225. if ((this.CommandCollection[i] != null)) {
  6226. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6227. }
  6228. }
  6229. }
  6230. }
  6231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6233. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6234. get {
  6235. return this._transaction;
  6236. }
  6237. set {
  6238. this._transaction = value;
  6239. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6240. this.CommandCollection[i].Transaction = this._transaction;
  6241. }
  6242. if (((this.Adapter != null)
  6243. && (this.Adapter.DeleteCommand != null))) {
  6244. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6245. }
  6246. if (((this.Adapter != null)
  6247. && (this.Adapter.InsertCommand != null))) {
  6248. this.Adapter.InsertCommand.Transaction = this._transaction;
  6249. }
  6250. if (((this.Adapter != null)
  6251. && (this.Adapter.UpdateCommand != null))) {
  6252. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6253. }
  6254. }
  6255. }
  6256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6258. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6259. get {
  6260. if ((this._commandCollection == null)) {
  6261. this.InitCommandCollection();
  6262. }
  6263. return this._commandCollection;
  6264. }
  6265. }
  6266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6268. public bool ClearBeforeFill {
  6269. get {
  6270. return this._clearBeforeFill;
  6271. }
  6272. set {
  6273. this._clearBeforeFill = value;
  6274. }
  6275. }
  6276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6278. private void InitAdapter() {
  6279. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6280. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6281. tableMapping.SourceTable = "Table";
  6282. tableMapping.DataSetTable = "Заказы";
  6283. tableMapping.ColumnMappings.Add("КодЗаказа", "КодЗаказа");
  6284. tableMapping.ColumnMappings.Add("НаименованиеЗаказа", "НаименованиеЗаказа");
  6285. tableMapping.ColumnMappings.Add("ПлановаяПоставка", "ПлановаяПоставка");
  6286. tableMapping.ColumnMappings.Add("КодТовара", "КодТовара");
  6287. tableMapping.ColumnMappings.Add("КодЗаказчика", "КодЗаказчика");
  6288. tableMapping.ColumnMappings.Add("КодДоговора", "КодДоговора");
  6289. tableMapping.ColumnMappings.Add("КодОтгрузки", "КодОтгрузки");
  6290. this._adapter.TableMappings.Add(tableMapping);
  6291. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6292. this._adapter.DeleteCommand.Connection = this.Connection;
  6293. 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_КодОтгрузки)))";
  6294. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6295. 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, "", "", ""));
  6296. 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, "", "", ""));
  6297. 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, "", "", ""));
  6298. 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, "", "", ""));
  6299. 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, "", "", ""));
  6300. 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, "", "", ""));
  6301. 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, "", "", ""));
  6302. 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, "", "", ""));
  6303. 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, "", "", ""));
  6304. 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, "", "", ""));
  6305. 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, "", "", ""));
  6306. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6307. this._adapter.InsertCommand.Connection = this.Connection;
  6308. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Заказы] ([НаименованиеЗаказа], [ПлановаяПоставка], [КодТовара], [КодЗаказчика], [КодДоговора], [КодОтгрузки]) VALUES (@НаименованиеЗаказа, @ПлановаяПоставка, @КодТовара, @КодЗаказчика, @КодДоговора, @КодОтгрузки);
  6309. SELECT КодЗаказа, НаименованиеЗаказа, ПлановаяПоставка, КодТовара, КодЗаказчика, КодДоговора, КодОтгрузки FROM Заказы WHERE (КодЗаказа = SCOPE_IDENTITY())";
  6310. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6311. 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, "", "", ""));
  6312. 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, "", "", ""));
  6313. 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, "", "", ""));
  6314. 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, "", "", ""));
  6315. 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, "", "", ""));
  6316. 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, "", "", ""));
  6317. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6318. this._adapter.UpdateCommand.Connection = this.Connection;
  6319. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Заказы] SET [НаименованиеЗаказа] = @НаименованиеЗаказа, [ПлановаяПоставка] = @ПлановаяПоставка, [КодТовара] = @КодТовара, [КодЗаказчика] = @КодЗаказчика, [КодДоговора] = @КодДоговора, [КодОтгрузки] = @КодОтгрузки WHERE (([КодЗаказа] = @Original_КодЗаказа) AND ((@IsNull_ПлановаяПоставка = 1 AND [ПлановаяПоставка] IS NULL) OR ([ПлановаяПоставка] = @Original_ПлановаяПоставка)) AND ((@IsNull_КодТовара = 1 AND [КодТовара] IS NULL) OR ([КодТовара] = @Original_КодТовара)) AND ((@IsNull_КодЗаказчика = 1 AND [КодЗаказчика] IS NULL) OR ([КодЗаказчика] = @Original_КодЗаказчика)) AND ((@IsNull_КодДоговора = 1 AND [КодДоговора] IS NULL) OR ([КодДоговора] = @Original_КодДоговора)) AND ((@IsNull_КодОтгрузки = 1 AND [КодОтгрузки] IS NULL) OR ([КодОтгрузки] = @Original_КодОтгрузки)));
  6320. SELECT КодЗаказа, НаименованиеЗаказа, ПлановаяПоставка, КодТовара, КодЗаказчика, КодДоговора, КодОтгрузки FROM Заказы WHERE (КодЗаказа = @КодЗаказа)";
  6321. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6322. 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, "", "", ""));
  6323. 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, "", "", ""));
  6324. 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, "", "", ""));
  6325. 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, "", "", ""));
  6326. 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, "", "", ""));
  6327. 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, "", "", ""));
  6328. 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, "", "", ""));
  6329. 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, "", "", ""));
  6330. 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, "", "", ""));
  6331. 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, "", "", ""));
  6332. 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, "", "", ""));
  6333. 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, "", "", ""));
  6334. 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, "", "", ""));
  6335. 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, "", "", ""));
  6336. 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, "", "", ""));
  6337. 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, "", "", ""));
  6338. 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, "", "", ""));
  6339. 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, "", "", ""));
  6340. }
  6341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6343. private void InitConnection() {
  6344. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6345. this._connection.ConnectionString = global::WindowsFormsApp1Индивидуально.Properties.Settings.Default.PostavkaTovarovConnectionString;
  6346. }
  6347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6349. private void InitCommandCollection() {
  6350. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6351. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6352. this._commandCollection[0].Connection = this.Connection;
  6353. this._commandCollection[0].CommandText = "SELECT КодЗаказа, НаименованиеЗаказа, ПлановаяПоставка, КодТовара, КодЗаказчика, " +
  6354. "КодДоговора, КодОтгрузки FROM dbo.Заказы";
  6355. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6356. }
  6357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6359. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6360. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6361. public virtual int Fill(PostavkaTovarovDataSet.ЗаказыDataTable dataTable) {
  6362. this.Adapter.SelectCommand = this.CommandCollection[0];
  6363. if ((this.ClearBeforeFill == true)) {
  6364. dataTable.Clear();
  6365. }
  6366. int returnValue = this.Adapter.Fill(dataTable);
  6367. return returnValue;
  6368. }
  6369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6371. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6372. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6373. public virtual PostavkaTovarovDataSet.ЗаказыDataTable GetData() {
  6374. this.Adapter.SelectCommand = this.CommandCollection[0];
  6375. PostavkaTovarovDataSet.ЗаказыDataTable dataTable = new PostavkaTovarovDataSet.ЗаказыDataTable();
  6376. this.Adapter.Fill(dataTable);
  6377. return dataTable;
  6378. }
  6379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6381. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6382. public virtual int Update(PostavkaTovarovDataSet.ЗаказыDataTable dataTable) {
  6383. return this.Adapter.Update(dataTable);
  6384. }
  6385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6387. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6388. public virtual int Update(PostavkaTovarovDataSet dataSet) {
  6389. return this.Adapter.Update(dataSet, "Заказы");
  6390. }
  6391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6393. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6394. public virtual int Update(global::System.Data.DataRow dataRow) {
  6395. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6396. dataRow});
  6397. }
  6398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6400. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6401. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6402. return this.Adapter.Update(dataRows);
  6403. }
  6404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6406. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6407. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6408. public virtual int Delete(long Original_КодЗаказа, global::System.Nullable<bool> Original_ПлановаяПоставка, global::System.Nullable<long> Original_КодТовара, global::System.Nullable<long> Original_КодЗаказчика, global::System.Nullable<long> Original_КодДоговора, global::System.Nullable<long> Original_КодОтгрузки) {
  6409. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_КодЗаказа));
  6410. if ((Original_ПлановаяПоставка.HasValue == true)) {
  6411. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6412. this.Adapter.DeleteCommand.Parameters[2].Value = ((bool)(Original_ПлановаяПоставка.Value));
  6413. }
  6414. else {
  6415. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6416. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6417. }
  6418. if ((Original_КодТовара.HasValue == true)) {
  6419. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6420. this.Adapter.DeleteCommand.Parameters[4].Value = ((long)(Original_КодТовара.Value));
  6421. }
  6422. else {
  6423. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6424. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6425. }
  6426. if ((Original_КодЗаказчика.HasValue == true)) {
  6427. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6428. this.Adapter.DeleteCommand.Parameters[6].Value = ((long)(Original_КодЗаказчика.Value));
  6429. }
  6430. else {
  6431. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6432. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6433. }
  6434. if ((Original_КодДоговора.HasValue == true)) {
  6435. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6436. this.Adapter.DeleteCommand.Parameters[8].Value = ((long)(Original_КодДоговора.Value));
  6437. }
  6438. else {
  6439. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6440. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6441. }
  6442. if ((Original_КодОтгрузки.HasValue == true)) {
  6443. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6444. this.Adapter.DeleteCommand.Parameters[10].Value = ((long)(Original_КодОтгрузки.Value));
  6445. }
  6446. else {
  6447. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6448. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6449. }
  6450. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6451. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6452. != global::System.Data.ConnectionState.Open)) {
  6453. this.Adapter.DeleteCommand.Connection.Open();
  6454. }
  6455. try {
  6456. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6457. return returnValue;
  6458. }
  6459. finally {
  6460. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6461. this.Adapter.DeleteCommand.Connection.Close();
  6462. }
  6463. }
  6464. }
  6465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6467. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6468. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6469. public virtual int Insert(string НаименованиеЗаказа, global::System.Nullable<bool> ПлановаяПоставка, global::System.Nullable<long> КодТовара, global::System.Nullable<long> КодЗаказчика, global::System.Nullable<long> КодДоговора, global::System.Nullable<long> КодОтгрузки) {
  6470. if ((НаименованиеЗаказа == null)) {
  6471. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6472. }
  6473. else {
  6474. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(НаименованиеЗаказа));
  6475. }
  6476. if ((ПлановаяПоставка.HasValue == true)) {
  6477. this.Adapter.InsertCommand.Parameters[1].Value = ((bool)(ПлановаяПоставка.Value));
  6478. }
  6479. else {
  6480. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6481. }
  6482. if ((КодТовара.HasValue == true)) {
  6483. this.Adapter.InsertCommand.Parameters[2].Value = ((long)(КодТовара.Value));
  6484. }
  6485. else {
  6486. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6487. }
  6488. if ((КодЗаказчика.HasValue == true)) {
  6489. this.Adapter.InsertCommand.Parameters[3].Value = ((long)(КодЗаказчика.Value));
  6490. }
  6491. else {
  6492. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6493. }
  6494. if ((КодДоговора.HasValue == true)) {
  6495. this.Adapter.InsertCommand.Parameters[4].Value = ((long)(КодДоговора.Value));
  6496. }
  6497. else {
  6498. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6499. }
  6500. if ((КодОтгрузки.HasValue == true)) {
  6501. this.Adapter.InsertCommand.Parameters[5].Value = ((long)(КодОтгрузки.Value));
  6502. }
  6503. else {
  6504. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6505. }
  6506. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6507. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6508. != global::System.Data.ConnectionState.Open)) {
  6509. this.Adapter.InsertCommand.Connection.Open();
  6510. }
  6511. try {
  6512. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6513. return returnValue;
  6514. }
  6515. finally {
  6516. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6517. this.Adapter.InsertCommand.Connection.Close();
  6518. }
  6519. }
  6520. }
  6521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6523. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6524. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6525. public virtual int Update(string НаименованиеЗаказа, global::System.Nullable<bool> ПлановаяПоставка, global::System.Nullable<long> КодТовара, global::System.Nullable<long> КодЗаказчика, global::System.Nullable<long> КодДоговора, global::System.Nullable<long> КодОтгрузки, long Original_КодЗаказа, global::System.Nullable<bool> Original_ПлановаяПоставка, global::System.Nullable<long> Original_КодТовара, global::System.Nullable<long> Original_КодЗаказчика, global::System.Nullable<long> Original_КодДоговора, global::System.Nullable<long> Original_КодОтгрузки, long КодЗаказа) {
  6526. if ((НаименованиеЗаказа == null)) {
  6527. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6528. }
  6529. else {
  6530. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(НаименованиеЗаказа));
  6531. }
  6532. if ((ПлановаяПоставка.HasValue == true)) {
  6533. this.Adapter.UpdateCommand.Parameters[1].Value = ((bool)(ПлановаяПоставка.Value));
  6534. }
  6535. else {
  6536. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6537. }
  6538. if ((КодТовара.HasValue == true)) {
  6539. this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(КодТовара.Value));
  6540. }
  6541. else {
  6542. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6543. }
  6544. if ((КодЗаказчика.HasValue == true)) {
  6545. this.Adapter.UpdateCommand.Parameters[3].Value = ((long)(КодЗаказчика.Value));
  6546. }
  6547. else {
  6548. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6549. }
  6550. if ((КодДоговора.HasValue == true)) {
  6551. this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(КодДоговора.Value));
  6552. }
  6553. else {
  6554. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6555. }
  6556. if ((КодОтгрузки.HasValue == true)) {
  6557. this.Adapter.UpdateCommand.Parameters[5].Value = ((long)(КодОтгрузки.Value));
  6558. }
  6559. else {
  6560. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6561. }
  6562. this.Adapter.UpdateCommand.Parameters[6].Value = ((long)(Original_КодЗаказа));
  6563. if ((Original_ПлановаяПоставка.HasValue == true)) {
  6564. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  6565. this.Adapter.UpdateCommand.Parameters[8].Value = ((bool)(Original_ПлановаяПоставка.Value));
  6566. }
  6567. else {
  6568. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  6569. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6570. }
  6571. if ((Original_КодТовара.HasValue == true)) {
  6572. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  6573. this.Adapter.UpdateCommand.Parameters[10].Value = ((long)(Original_КодТовара.Value));
  6574. }
  6575. else {
  6576. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  6577. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  6578. }
  6579. if ((Original_КодЗаказчика.HasValue == true)) {
  6580. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  6581. this.Adapter.UpdateCommand.Parameters[12].Value = ((long)(Original_КодЗаказчика.Value));
  6582. }
  6583. else {
  6584. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  6585. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  6586. }
  6587. if ((Original_КодДоговора.HasValue == true)) {
  6588. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  6589. this.Adapter.UpdateCommand.Parameters[14].Value = ((long)(Original_КодДоговора.Value));
  6590. }
  6591. else {
  6592. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  6593. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  6594. }
  6595. if ((Original_КодОтгрузки.HasValue == true)) {
  6596. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  6597. this.Adapter.UpdateCommand.Parameters[16].Value = ((long)(Original_КодОтгрузки.Value));
  6598. }
  6599. else {
  6600. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  6601. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  6602. }
  6603. this.Adapter.UpdateCommand.Parameters[17].Value = ((long)(КодЗаказа));
  6604. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6605. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6606. != global::System.Data.ConnectionState.Open)) {
  6607. this.Adapter.UpdateCommand.Connection.Open();
  6608. }
  6609. try {
  6610. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6611. return returnValue;
  6612. }
  6613. finally {
  6614. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6615. this.Adapter.UpdateCommand.Connection.Close();
  6616. }
  6617. }
  6618. }
  6619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6621. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6622. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6623. public virtual int Update(string НаименованиеЗаказа, global::System.Nullable<bool> ПлановаяПоставка, global::System.Nullable<long> КодТовара, global::System.Nullable<long> КодЗаказчика, global::System.Nullable<long> КодДоговора, global::System.Nullable<long> КодОтгрузки, long Original_КодЗаказа, global::System.Nullable<bool> Original_ПлановаяПоставка, global::System.Nullable<long> Original_КодТовара, global::System.Nullable<long> Original_КодЗаказчика, global::System.Nullable<long> Original_КодДоговора, global::System.Nullable<long> Original_КодОтгрузки) {
  6624. return this.Update(НаименованиеЗаказа, ПлановаяПоставка, КодТовара, КодЗаказчика, КодДоговора, КодОтгрузки, Original_КодЗаказа, Original_ПлановаяПоставка, Original_КодТовара, Original_КодЗаказчика, Original_КодДоговора, Original_КодОтгрузки, Original_КодЗаказа);
  6625. }
  6626. }
  6627. /// <summary>
  6628. ///Represents the connection and commands used to retrieve and save data.
  6629. ///</summary>
  6630. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6631. [global::System.ComponentModel.ToolboxItem(true)]
  6632. [global::System.ComponentModel.DataObjectAttribute(true)]
  6633. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6634. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6635. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6636. public partial class ОтгрузкаTableAdapter : global::System.ComponentModel.Component {
  6637. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6638. private global::System.Data.SqlClient.SqlConnection _connection;
  6639. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6640. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6641. private bool _clearBeforeFill;
  6642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6644. public ОтгрузкаTableAdapter() {
  6645. this.ClearBeforeFill = true;
  6646. }
  6647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6649. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6650. get {
  6651. if ((this._adapter == null)) {
  6652. this.InitAdapter();
  6653. }
  6654. return this._adapter;
  6655. }
  6656. }
  6657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6659. internal global::System.Data.SqlClient.SqlConnection Connection {
  6660. get {
  6661. if ((this._connection == null)) {
  6662. this.InitConnection();
  6663. }
  6664. return this._connection;
  6665. }
  6666. set {
  6667. this._connection = value;
  6668. if ((this.Adapter.InsertCommand != null)) {
  6669. this.Adapter.InsertCommand.Connection = value;
  6670. }
  6671. if ((this.Adapter.DeleteCommand != null)) {
  6672. this.Adapter.DeleteCommand.Connection = value;
  6673. }
  6674. if ((this.Adapter.UpdateCommand != null)) {
  6675. this.Adapter.UpdateCommand.Connection = value;
  6676. }
  6677. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6678. if ((this.CommandCollection[i] != null)) {
  6679. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6680. }
  6681. }
  6682. }
  6683. }
  6684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6686. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6687. get {
  6688. return this._transaction;
  6689. }
  6690. set {
  6691. this._transaction = value;
  6692. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6693. this.CommandCollection[i].Transaction = this._transaction;
  6694. }
  6695. if (((this.Adapter != null)
  6696. && (this.Adapter.DeleteCommand != null))) {
  6697. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6698. }
  6699. if (((this.Adapter != null)
  6700. && (this.Adapter.InsertCommand != null))) {
  6701. this.Adapter.InsertCommand.Transaction = this._transaction;
  6702. }
  6703. if (((this.Adapter != null)
  6704. && (this.Adapter.UpdateCommand != null))) {
  6705. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6706. }
  6707. }
  6708. }
  6709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6711. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6712. get {
  6713. if ((this._commandCollection == null)) {
  6714. this.InitCommandCollection();
  6715. }
  6716. return this._commandCollection;
  6717. }
  6718. }
  6719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6721. public bool ClearBeforeFill {
  6722. get {
  6723. return this._clearBeforeFill;
  6724. }
  6725. set {
  6726. this._clearBeforeFill = value;
  6727. }
  6728. }
  6729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6731. private void InitAdapter() {
  6732. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6733. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6734. tableMapping.SourceTable = "Table";
  6735. tableMapping.DataSetTable = "Отгрузка";
  6736. tableMapping.ColumnMappings.Add("КодОтгрузки", "КодОтгрузки");
  6737. tableMapping.ColumnMappings.Add("ДатаОтгрузки", "ДатаОтгрузки");
  6738. tableMapping.ColumnMappings.Add("ОтгруженоТовара", "ОтгруженоТовара");
  6739. this._adapter.TableMappings.Add(tableMapping);
  6740. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6741. this._adapter.DeleteCommand.Connection = this.Connection;
  6742. 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_ОтгруженоТовара)))";
  6743. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6744. 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, "", "", ""));
  6745. 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, "", "", ""));
  6746. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаОтгрузки", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаОтгрузки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6747. 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, "", "", ""));
  6748. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ОтгруженоТовара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ОтгруженоТовара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6749. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6750. this._adapter.InsertCommand.Connection = this.Connection;
  6751. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Отгрузка] ([ДатаОтгрузки], [ОтгруженоТовара]) VALUES (@ДатаОтг" +
  6752. "рузки, @ОтгруженоТовара);\r\nSELECT КодОтгрузки, ДатаОтгрузки, ОтгруженоТовара FRO" +
  6753. "M Отгрузка WHERE (КодОтгрузки = SCOPE_IDENTITY())";
  6754. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6755. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаОтгрузки", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаОтгрузки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6756. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ОтгруженоТовара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ОтгруженоТовара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6757. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6758. this._adapter.UpdateCommand.Connection = this.Connection;
  6759. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Отгрузка] SET [ДатаОтгрузки] = @ДатаОтгрузки, [ОтгруженоТовара] = @ОтгруженоТовара WHERE (([КодОтгрузки] = @Original_КодОтгрузки) AND ((@IsNull_ДатаОтгрузки = 1 AND [ДатаОтгрузки] IS NULL) OR ([ДатаОтгрузки] = @Original_ДатаОтгрузки)) AND ((@IsNull_ОтгруженоТовара = 1 AND [ОтгруженоТовара] IS NULL) OR ([ОтгруженоТовара] = @Original_ОтгруженоТовара)));
  6760. SELECT КодОтгрузки, ДатаОтгрузки, ОтгруженоТовара FROM Отгрузка WHERE (КодОтгрузки = @КодОтгрузки)";
  6761. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6762. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ДатаОтгрузки", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаОтгрузки", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6763. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ОтгруженоТовара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ОтгруженоТовара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6764. 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, "", "", ""));
  6765. 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, "", "", ""));
  6766. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ДатаОтгрузки", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ДатаОтгрузки", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6767. 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, "", "", ""));
  6768. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ОтгруженоТовара", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ОтгруженоТовара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6769. 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, "", "", ""));
  6770. }
  6771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6773. private void InitConnection() {
  6774. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6775. this._connection.ConnectionString = global::WindowsFormsApp1Индивидуально.Properties.Settings.Default.PostavkaTovarovConnectionString;
  6776. }
  6777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6779. private void InitCommandCollection() {
  6780. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6781. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6782. this._commandCollection[0].Connection = this.Connection;
  6783. this._commandCollection[0].CommandText = "SELECT КодОтгрузки, ДатаОтгрузки, ОтгруженоТовара FROM dbo.Отгрузка";
  6784. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6785. }
  6786. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6788. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6789. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6790. public virtual int Fill(PostavkaTovarovDataSet.ОтгрузкаDataTable dataTable) {
  6791. this.Adapter.SelectCommand = this.CommandCollection[0];
  6792. if ((this.ClearBeforeFill == true)) {
  6793. dataTable.Clear();
  6794. }
  6795. int returnValue = this.Adapter.Fill(dataTable);
  6796. return returnValue;
  6797. }
  6798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6800. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6801. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6802. public virtual PostavkaTovarovDataSet.ОтгрузкаDataTable GetData() {
  6803. this.Adapter.SelectCommand = this.CommandCollection[0];
  6804. PostavkaTovarovDataSet.ОтгрузкаDataTable dataTable = new PostavkaTovarovDataSet.ОтгрузкаDataTable();
  6805. this.Adapter.Fill(dataTable);
  6806. return dataTable;
  6807. }
  6808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6810. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6811. public virtual int Update(PostavkaTovarovDataSet.ОтгрузкаDataTable dataTable) {
  6812. return this.Adapter.Update(dataTable);
  6813. }
  6814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6816. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6817. public virtual int Update(PostavkaTovarovDataSet dataSet) {
  6818. return this.Adapter.Update(dataSet, "Отгрузка");
  6819. }
  6820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6822. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6823. public virtual int Update(global::System.Data.DataRow dataRow) {
  6824. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6825. dataRow});
  6826. }
  6827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6829. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6830. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6831. return this.Adapter.Update(dataRows);
  6832. }
  6833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6835. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6836. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6837. public virtual int Delete(long Original_КодОтгрузки, global::System.Nullable<global::System.DateTime> Original_ДатаОтгрузки, global::System.Nullable<int> Original_ОтгруженоТовара) {
  6838. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_КодОтгрузки));
  6839. if ((Original_ДатаОтгрузки.HasValue == true)) {
  6840. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6841. this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_ДатаОтгрузки.Value));
  6842. }
  6843. else {
  6844. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6845. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6846. }
  6847. if ((Original_ОтгруженоТовара.HasValue == true)) {
  6848. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6849. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_ОтгруженоТовара.Value));
  6850. }
  6851. else {
  6852. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6853. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6854. }
  6855. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6856. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6857. != global::System.Data.ConnectionState.Open)) {
  6858. this.Adapter.DeleteCommand.Connection.Open();
  6859. }
  6860. try {
  6861. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6862. return returnValue;
  6863. }
  6864. finally {
  6865. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6866. this.Adapter.DeleteCommand.Connection.Close();
  6867. }
  6868. }
  6869. }
  6870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6872. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6873. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6874. public virtual int Insert(global::System.Nullable<global::System.DateTime> ДатаОтгрузки, global::System.Nullable<int> ОтгруженоТовара) {
  6875. if ((ДатаОтгрузки.HasValue == true)) {
  6876. this.Adapter.InsertCommand.Parameters[0].Value = ((System.DateTime)(ДатаОтгрузки.Value));
  6877. }
  6878. else {
  6879. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6880. }
  6881. if ((ОтгруженоТовара.HasValue == true)) {
  6882. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ОтгруженоТовара.Value));
  6883. }
  6884. else {
  6885. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6886. }
  6887. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6888. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6889. != global::System.Data.ConnectionState.Open)) {
  6890. this.Adapter.InsertCommand.Connection.Open();
  6891. }
  6892. try {
  6893. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6894. return returnValue;
  6895. }
  6896. finally {
  6897. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6898. this.Adapter.InsertCommand.Connection.Close();
  6899. }
  6900. }
  6901. }
  6902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6904. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6905. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6906. public virtual int Update(global::System.Nullable<global::System.DateTime> ДатаОтгрузки, global::System.Nullable<int> ОтгруженоТовара, long Original_КодОтгрузки, global::System.Nullable<global::System.DateTime> Original_ДатаОтгрузки, global::System.Nullable<int> Original_ОтгруженоТовара, long КодОтгрузки) {
  6907. if ((ДатаОтгрузки.HasValue == true)) {
  6908. this.Adapter.UpdateCommand.Parameters[0].Value = ((System.DateTime)(ДатаОтгрузки.Value));
  6909. }
  6910. else {
  6911. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6912. }
  6913. if ((ОтгруженоТовара.HasValue == true)) {
  6914. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(ОтгруженоТовара.Value));
  6915. }
  6916. else {
  6917. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6918. }
  6919. this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(Original_КодОтгрузки));
  6920. if ((Original_ДатаОтгрузки.HasValue == true)) {
  6921. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  6922. this.Adapter.UpdateCommand.Parameters[4].Value = ((System.DateTime)(Original_ДатаОтгрузки.Value));
  6923. }
  6924. else {
  6925. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  6926. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6927. }
  6928. if ((Original_ОтгруженоТовара.HasValue == true)) {
  6929. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  6930. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_ОтгруженоТовара.Value));
  6931. }
  6932. else {
  6933. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  6934. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  6935. }
  6936. this.Adapter.UpdateCommand.Parameters[7].Value = ((long)(КодОтгрузки));
  6937. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6938. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6939. != global::System.Data.ConnectionState.Open)) {
  6940. this.Adapter.UpdateCommand.Connection.Open();
  6941. }
  6942. try {
  6943. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6944. return returnValue;
  6945. }
  6946. finally {
  6947. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6948. this.Adapter.UpdateCommand.Connection.Close();
  6949. }
  6950. }
  6951. }
  6952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6954. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6955. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6956. public virtual int Update(global::System.Nullable<global::System.DateTime> ДатаОтгрузки, global::System.Nullable<int> ОтгруженоТовара, long Original_КодОтгрузки, global::System.Nullable<global::System.DateTime> Original_ДатаОтгрузки, global::System.Nullable<int> Original_ОтгруженоТовара) {
  6957. return this.Update(ДатаОтгрузки, ОтгруженоТовара, Original_КодОтгрузки, Original_ДатаОтгрузки, Original_ОтгруженоТовара, Original_КодОтгрузки);
  6958. }
  6959. }
  6960. /// <summary>
  6961. ///Represents the connection and commands used to retrieve and save data.
  6962. ///</summary>
  6963. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6964. [global::System.ComponentModel.ToolboxItem(true)]
  6965. [global::System.ComponentModel.DataObjectAttribute(true)]
  6966. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6967. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6968. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6969. public partial class ОтгрузкаТовараTableAdapter : global::System.ComponentModel.Component {
  6970. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6971. private global::System.Data.SqlClient.SqlConnection _connection;
  6972. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6973. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6974. private bool _clearBeforeFill;
  6975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6977. public ОтгрузкаТовараTableAdapter() {
  6978. this.ClearBeforeFill = true;
  6979. }
  6980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6982. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6983. get {
  6984. if ((this._adapter == null)) {
  6985. this.InitAdapter();
  6986. }
  6987. return this._adapter;
  6988. }
  6989. }
  6990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  6992. internal global::System.Data.SqlClient.SqlConnection Connection {
  6993. get {
  6994. if ((this._connection == null)) {
  6995. this.InitConnection();
  6996. }
  6997. return this._connection;
  6998. }
  6999. set {
  7000. this._connection = value;
  7001. if ((this.Adapter.InsertCommand != null)) {
  7002. this.Adapter.InsertCommand.Connection = value;
  7003. }
  7004. if ((this.Adapter.DeleteCommand != null)) {
  7005. this.Adapter.DeleteCommand.Connection = value;
  7006. }
  7007. if ((this.Adapter.UpdateCommand != null)) {
  7008. this.Adapter.UpdateCommand.Connection = value;
  7009. }
  7010. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7011. if ((this.CommandCollection[i] != null)) {
  7012. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7013. }
  7014. }
  7015. }
  7016. }
  7017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7019. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7020. get {
  7021. return this._transaction;
  7022. }
  7023. set {
  7024. this._transaction = value;
  7025. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7026. this.CommandCollection[i].Transaction = this._transaction;
  7027. }
  7028. if (((this.Adapter != null)
  7029. && (this.Adapter.DeleteCommand != null))) {
  7030. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7031. }
  7032. if (((this.Adapter != null)
  7033. && (this.Adapter.InsertCommand != null))) {
  7034. this.Adapter.InsertCommand.Transaction = this._transaction;
  7035. }
  7036. if (((this.Adapter != null)
  7037. && (this.Adapter.UpdateCommand != null))) {
  7038. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7039. }
  7040. }
  7041. }
  7042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7044. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7045. get {
  7046. if ((this._commandCollection == null)) {
  7047. this.InitCommandCollection();
  7048. }
  7049. return this._commandCollection;
  7050. }
  7051. }
  7052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7054. public bool ClearBeforeFill {
  7055. get {
  7056. return this._clearBeforeFill;
  7057. }
  7058. set {
  7059. this._clearBeforeFill = value;
  7060. }
  7061. }
  7062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7064. private void InitAdapter() {
  7065. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7066. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7067. tableMapping.SourceTable = "Table";
  7068. tableMapping.DataSetTable = "ОтгрузкаТовара";
  7069. tableMapping.ColumnMappings.Add("КодОтгрузкаТовара", "КодОтгрузкаТовара");
  7070. tableMapping.ColumnMappings.Add("КодТовара", "КодТовара");
  7071. tableMapping.ColumnMappings.Add("КодОтгрузки", "КодОтгрузки");
  7072. this._adapter.TableMappings.Add(tableMapping);
  7073. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7074. this._adapter.DeleteCommand.Connection = this.Connection;
  7075. 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_КодОтгрузки)))";
  7076. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7077. 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, "", "", ""));
  7078. 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, "", "", ""));
  7079. 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, "", "", ""));
  7080. 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, "", "", ""));
  7081. 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, "", "", ""));
  7082. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7083. this._adapter.InsertCommand.Connection = this.Connection;
  7084. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ОтгрузкаТовара] ([КодТовара], [КодОтгрузки]) VALUES (@КодТовар" +
  7085. "а, @КодОтгрузки);\r\nSELECT КодОтгрузкаТовара, КодТовара, КодОтгрузки FROM Отгрузк" +
  7086. "аТовара WHERE (КодОтгрузкаТовара = SCOPE_IDENTITY())";
  7087. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7088. 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, "", "", ""));
  7089. 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, "", "", ""));
  7090. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7091. this._adapter.UpdateCommand.Connection = this.Connection;
  7092. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ОтгрузкаТовара] SET [КодТовара] = @КодТовара, [КодОтгрузки] = @КодОтгрузки WHERE (([КодОтгрузкаТовара] = @Original_КодОтгрузкаТовара) AND ((@IsNull_КодТовара = 1 AND [КодТовара] IS NULL) OR ([КодТовара] = @Original_КодТовара)) AND ((@IsNull_КодОтгрузки = 1 AND [КодОтгрузки] IS NULL) OR ([КодОтгрузки] = @Original_КодОтгрузки)));
  7093. SELECT КодОтгрузкаТовара, КодТовара, КодОтгрузки FROM ОтгрузкаТовара WHERE (КодОтгрузкаТовара = @КодОтгрузкаТовара)";
  7094. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7095. 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, "", "", ""));
  7096. 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, "", "", ""));
  7097. 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, "", "", ""));
  7098. 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, "", "", ""));
  7099. 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, "", "", ""));
  7100. 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, "", "", ""));
  7101. 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, "", "", ""));
  7102. 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, "", "", ""));
  7103. }
  7104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7106. private void InitConnection() {
  7107. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7108. this._connection.ConnectionString = global::WindowsFormsApp1Индивидуально.Properties.Settings.Default.PostavkaTovarovConnectionString;
  7109. }
  7110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7111. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7112. private void InitCommandCollection() {
  7113. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7114. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7115. this._commandCollection[0].Connection = this.Connection;
  7116. this._commandCollection[0].CommandText = "SELECT КодОтгрузкаТовара, КодТовара, КодОтгрузки FROM dbo.ОтгрузкаТовара";
  7117. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7118. }
  7119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7121. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7122. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7123. public virtual int Fill(PostavkaTovarovDataSet.ОтгрузкаТовараDataTable dataTable) {
  7124. this.Adapter.SelectCommand = this.CommandCollection[0];
  7125. if ((this.ClearBeforeFill == true)) {
  7126. dataTable.Clear();
  7127. }
  7128. int returnValue = this.Adapter.Fill(dataTable);
  7129. return returnValue;
  7130. }
  7131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7133. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7134. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7135. public virtual PostavkaTovarovDataSet.ОтгрузкаТовараDataTable GetData() {
  7136. this.Adapter.SelectCommand = this.CommandCollection[0];
  7137. PostavkaTovarovDataSet.ОтгрузкаТовараDataTable dataTable = new PostavkaTovarovDataSet.ОтгрузкаТовараDataTable();
  7138. this.Adapter.Fill(dataTable);
  7139. return dataTable;
  7140. }
  7141. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7142. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7143. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7144. public virtual int Update(PostavkaTovarovDataSet.ОтгрузкаТовараDataTable dataTable) {
  7145. return this.Adapter.Update(dataTable);
  7146. }
  7147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7149. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7150. public virtual int Update(PostavkaTovarovDataSet dataSet) {
  7151. return this.Adapter.Update(dataSet, "ОтгрузкаТовара");
  7152. }
  7153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7155. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7156. public virtual int Update(global::System.Data.DataRow dataRow) {
  7157. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7158. dataRow});
  7159. }
  7160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7162. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7163. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7164. return this.Adapter.Update(dataRows);
  7165. }
  7166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7168. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7169. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7170. public virtual int Delete(long Original_КодОтгрузкаТовара, global::System.Nullable<long> Original_КодТовара, global::System.Nullable<long> Original_КодОтгрузки) {
  7171. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_КодОтгрузкаТовара));
  7172. if ((Original_КодТовара.HasValue == true)) {
  7173. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7174. this.Adapter.DeleteCommand.Parameters[2].Value = ((long)(Original_КодТовара.Value));
  7175. }
  7176. else {
  7177. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7178. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7179. }
  7180. if ((Original_КодОтгрузки.HasValue == true)) {
  7181. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7182. this.Adapter.DeleteCommand.Parameters[4].Value = ((long)(Original_КодОтгрузки.Value));
  7183. }
  7184. else {
  7185. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7186. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7187. }
  7188. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7189. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7190. != global::System.Data.ConnectionState.Open)) {
  7191. this.Adapter.DeleteCommand.Connection.Open();
  7192. }
  7193. try {
  7194. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7195. return returnValue;
  7196. }
  7197. finally {
  7198. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7199. this.Adapter.DeleteCommand.Connection.Close();
  7200. }
  7201. }
  7202. }
  7203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7205. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7206. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7207. public virtual int Insert(global::System.Nullable<long> КодТовара, global::System.Nullable<long> КодОтгрузки) {
  7208. if ((КодТовара.HasValue == true)) {
  7209. this.Adapter.InsertCommand.Parameters[0].Value = ((long)(КодТовара.Value));
  7210. }
  7211. else {
  7212. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7213. }
  7214. if ((КодОтгрузки.HasValue == true)) {
  7215. this.Adapter.InsertCommand.Parameters[1].Value = ((long)(КодОтгрузки.Value));
  7216. }
  7217. else {
  7218. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7219. }
  7220. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7221. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7222. != global::System.Data.ConnectionState.Open)) {
  7223. this.Adapter.InsertCommand.Connection.Open();
  7224. }
  7225. try {
  7226. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7227. return returnValue;
  7228. }
  7229. finally {
  7230. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7231. this.Adapter.InsertCommand.Connection.Close();
  7232. }
  7233. }
  7234. }
  7235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7237. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7238. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7239. public virtual int Update(global::System.Nullable<long> КодТовара, global::System.Nullable<long> КодОтгрузки, long Original_КодОтгрузкаТовара, global::System.Nullable<long> Original_КодТовара, global::System.Nullable<long> Original_КодОтгрузки, long КодОтгрузкаТовара) {
  7240. if ((КодТовара.HasValue == true)) {
  7241. this.Adapter.UpdateCommand.Parameters[0].Value = ((long)(КодТовара.Value));
  7242. }
  7243. else {
  7244. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7245. }
  7246. if ((КодОтгрузки.HasValue == true)) {
  7247. this.Adapter.UpdateCommand.Parameters[1].Value = ((long)(КодОтгрузки.Value));
  7248. }
  7249. else {
  7250. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7251. }
  7252. this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(Original_КодОтгрузкаТовара));
  7253. if ((Original_КодТовара.HasValue == true)) {
  7254. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  7255. this.Adapter.UpdateCommand.Parameters[4].Value = ((long)(Original_КодТовара.Value));
  7256. }
  7257. else {
  7258. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  7259. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7260. }
  7261. if ((Original_КодОтгрузки.HasValue == true)) {
  7262. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  7263. this.Adapter.UpdateCommand.Parameters[6].Value = ((long)(Original_КодОтгрузки.Value));
  7264. }
  7265. else {
  7266. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  7267. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7268. }
  7269. this.Adapter.UpdateCommand.Parameters[7].Value = ((long)(КодОтгрузкаТовара));
  7270. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7271. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7272. != global::System.Data.ConnectionState.Open)) {
  7273. this.Adapter.UpdateCommand.Connection.Open();
  7274. }
  7275. try {
  7276. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7277. return returnValue;
  7278. }
  7279. finally {
  7280. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7281. this.Adapter.UpdateCommand.Connection.Close();
  7282. }
  7283. }
  7284. }
  7285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7287. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7288. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7289. public virtual int Update(global::System.Nullable<long> КодТовара, global::System.Nullable<long> КодОтгрузки, long Original_КодОтгрузкаТовара, global::System.Nullable<long> Original_КодТовара, global::System.Nullable<long> Original_КодОтгрузки) {
  7290. return this.Update(КодТовара, КодОтгрузки, Original_КодОтгрузкаТовара, Original_КодТовара, Original_КодОтгрузки, Original_КодОтгрузкаТовара);
  7291. }
  7292. }
  7293. /// <summary>
  7294. ///Represents the connection and commands used to retrieve and save data.
  7295. ///</summary>
  7296. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7297. [global::System.ComponentModel.ToolboxItem(true)]
  7298. [global::System.ComponentModel.DataObjectAttribute(true)]
  7299. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7300. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7301. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7302. public partial class ТоварыTableAdapter : global::System.ComponentModel.Component {
  7303. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7304. private global::System.Data.SqlClient.SqlConnection _connection;
  7305. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7306. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7307. private bool _clearBeforeFill;
  7308. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7310. public ТоварыTableAdapter() {
  7311. this.ClearBeforeFill = true;
  7312. }
  7313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7315. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7316. get {
  7317. if ((this._adapter == null)) {
  7318. this.InitAdapter();
  7319. }
  7320. return this._adapter;
  7321. }
  7322. }
  7323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7325. internal global::System.Data.SqlClient.SqlConnection Connection {
  7326. get {
  7327. if ((this._connection == null)) {
  7328. this.InitConnection();
  7329. }
  7330. return this._connection;
  7331. }
  7332. set {
  7333. this._connection = value;
  7334. if ((this.Adapter.InsertCommand != null)) {
  7335. this.Adapter.InsertCommand.Connection = value;
  7336. }
  7337. if ((this.Adapter.DeleteCommand != null)) {
  7338. this.Adapter.DeleteCommand.Connection = value;
  7339. }
  7340. if ((this.Adapter.UpdateCommand != null)) {
  7341. this.Adapter.UpdateCommand.Connection = value;
  7342. }
  7343. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7344. if ((this.CommandCollection[i] != null)) {
  7345. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7346. }
  7347. }
  7348. }
  7349. }
  7350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7352. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7353. get {
  7354. return this._transaction;
  7355. }
  7356. set {
  7357. this._transaction = value;
  7358. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7359. this.CommandCollection[i].Transaction = this._transaction;
  7360. }
  7361. if (((this.Adapter != null)
  7362. && (this.Adapter.DeleteCommand != null))) {
  7363. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7364. }
  7365. if (((this.Adapter != null)
  7366. && (this.Adapter.InsertCommand != null))) {
  7367. this.Adapter.InsertCommand.Transaction = this._transaction;
  7368. }
  7369. if (((this.Adapter != null)
  7370. && (this.Adapter.UpdateCommand != null))) {
  7371. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7372. }
  7373. }
  7374. }
  7375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7377. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7378. get {
  7379. if ((this._commandCollection == null)) {
  7380. this.InitCommandCollection();
  7381. }
  7382. return this._commandCollection;
  7383. }
  7384. }
  7385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7387. public bool ClearBeforeFill {
  7388. get {
  7389. return this._clearBeforeFill;
  7390. }
  7391. set {
  7392. this._clearBeforeFill = value;
  7393. }
  7394. }
  7395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7397. private void InitAdapter() {
  7398. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7399. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7400. tableMapping.SourceTable = "Table";
  7401. tableMapping.DataSetTable = "Товары";
  7402. tableMapping.ColumnMappings.Add("КодТовара", "КодТовара");
  7403. tableMapping.ColumnMappings.Add("НаименованиеТовара", "НаименованиеТовара");
  7404. tableMapping.ColumnMappings.Add("ЦенаТовара", "ЦенаТовара");
  7405. this._adapter.TableMappings.Add(tableMapping);
  7406. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7407. this._adapter.DeleteCommand.Connection = this.Connection;
  7408. 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_ЦенаТовара)))";
  7409. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7410. 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, "", "", ""));
  7411. 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, "", "", ""));
  7412. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_НаименованиеТовара", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НаименованиеТовара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7413. 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, "", "", ""));
  7414. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ЦенаТовара", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ЦенаТовара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7415. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7416. this._adapter.InsertCommand.Connection = this.Connection;
  7417. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Товары] ([НаименованиеТовара], [ЦенаТовара]) VALUES (@Наименов" +
  7418. "аниеТовара, @ЦенаТовара);\r\nSELECT КодТовара, НаименованиеТовара, ЦенаТовара FROM" +
  7419. " Товары WHERE (КодТовара = SCOPE_IDENTITY())";
  7420. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7421. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@НаименованиеТовара", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НаименованиеТовара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7422. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ЦенаТовара", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ЦенаТовара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7423. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7424. this._adapter.UpdateCommand.Connection = this.Connection;
  7425. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Товары] SET [НаименованиеТовара] = @НаименованиеТовара, [ЦенаТовара] = @ЦенаТовара WHERE (([КодТовара] = @Original_КодТовара) AND ((@IsNull_НаименованиеТовара = 1 AND [НаименованиеТовара] IS NULL) OR ([НаименованиеТовара] = @Original_НаименованиеТовара)) AND ((@IsNull_ЦенаТовара = 1 AND [ЦенаТовара] IS NULL) OR ([ЦенаТовара] = @Original_ЦенаТовара)));
  7426. SELECT КодТовара, НаименованиеТовара, ЦенаТовара FROM Товары WHERE (КодТовара = @КодТовара)";
  7427. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7428. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@НаименованиеТовара", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НаименованиеТовара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7429. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ЦенаТовара", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ЦенаТовара", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7430. 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, "", "", ""));
  7431. 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, "", "", ""));
  7432. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_НаименованиеТовара", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "НаименованиеТовара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7433. 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, "", "", ""));
  7434. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ЦенаТовара", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ЦенаТовара", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7435. 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, "", "", ""));
  7436. }
  7437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7439. private void InitConnection() {
  7440. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7441. this._connection.ConnectionString = global::WindowsFormsApp1Индивидуально.Properties.Settings.Default.PostavkaTovarovConnectionString;
  7442. }
  7443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7445. private void InitCommandCollection() {
  7446. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7447. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7448. this._commandCollection[0].Connection = this.Connection;
  7449. this._commandCollection[0].CommandText = "SELECT КодТовара, НаименованиеТовара, ЦенаТовара FROM dbo.Товары";
  7450. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7451. }
  7452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7454. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7455. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7456. public virtual int Fill(PostavkaTovarovDataSet.ТоварыDataTable dataTable) {
  7457. this.Adapter.SelectCommand = this.CommandCollection[0];
  7458. if ((this.ClearBeforeFill == true)) {
  7459. dataTable.Clear();
  7460. }
  7461. int returnValue = this.Adapter.Fill(dataTable);
  7462. return returnValue;
  7463. }
  7464. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7466. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7467. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7468. public virtual PostavkaTovarovDataSet.ТоварыDataTable GetData() {
  7469. this.Adapter.SelectCommand = this.CommandCollection[0];
  7470. PostavkaTovarovDataSet.ТоварыDataTable dataTable = new PostavkaTovarovDataSet.ТоварыDataTable();
  7471. this.Adapter.Fill(dataTable);
  7472. return dataTable;
  7473. }
  7474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7476. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7477. public virtual int Update(PostavkaTovarovDataSet.ТоварыDataTable dataTable) {
  7478. return this.Adapter.Update(dataTable);
  7479. }
  7480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7482. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7483. public virtual int Update(PostavkaTovarovDataSet dataSet) {
  7484. return this.Adapter.Update(dataSet, "Товары");
  7485. }
  7486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7488. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7489. public virtual int Update(global::System.Data.DataRow dataRow) {
  7490. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7491. dataRow});
  7492. }
  7493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7495. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7496. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7497. return this.Adapter.Update(dataRows);
  7498. }
  7499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7501. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7502. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7503. public virtual int Delete(long Original_КодТовара, string Original_НаименованиеТовара, global::System.Nullable<decimal> Original_ЦенаТовара) {
  7504. this.Adapter.DeleteCommand.Parameters[0].Value = ((long)(Original_КодТовара));
  7505. if ((Original_НаименованиеТовара == null)) {
  7506. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7507. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7508. }
  7509. else {
  7510. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7511. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_НаименованиеТовара));
  7512. }
  7513. if ((Original_ЦенаТовара.HasValue == true)) {
  7514. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7515. this.Adapter.DeleteCommand.Parameters[4].Value = ((decimal)(Original_ЦенаТовара.Value));
  7516. }
  7517. else {
  7518. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7519. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7520. }
  7521. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7522. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7523. != global::System.Data.ConnectionState.Open)) {
  7524. this.Adapter.DeleteCommand.Connection.Open();
  7525. }
  7526. try {
  7527. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7528. return returnValue;
  7529. }
  7530. finally {
  7531. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7532. this.Adapter.DeleteCommand.Connection.Close();
  7533. }
  7534. }
  7535. }
  7536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7538. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7539. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7540. public virtual int Insert(string НаименованиеТовара, global::System.Nullable<decimal> ЦенаТовара) {
  7541. if ((НаименованиеТовара == null)) {
  7542. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7543. }
  7544. else {
  7545. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(НаименованиеТовара));
  7546. }
  7547. if ((ЦенаТовара.HasValue == true)) {
  7548. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(ЦенаТовара.Value));
  7549. }
  7550. else {
  7551. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7552. }
  7553. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7554. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7555. != global::System.Data.ConnectionState.Open)) {
  7556. this.Adapter.InsertCommand.Connection.Open();
  7557. }
  7558. try {
  7559. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7560. return returnValue;
  7561. }
  7562. finally {
  7563. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7564. this.Adapter.InsertCommand.Connection.Close();
  7565. }
  7566. }
  7567. }
  7568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7570. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7571. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7572. public virtual int Update(string НаименованиеТовара, global::System.Nullable<decimal> ЦенаТовара, long Original_КодТовара, string Original_НаименованиеТовара, global::System.Nullable<decimal> Original_ЦенаТовара, long КодТовара) {
  7573. if ((НаименованиеТовара == null)) {
  7574. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7575. }
  7576. else {
  7577. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(НаименованиеТовара));
  7578. }
  7579. if ((ЦенаТовара.HasValue == true)) {
  7580. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(ЦенаТовара.Value));
  7581. }
  7582. else {
  7583. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7584. }
  7585. this.Adapter.UpdateCommand.Parameters[2].Value = ((long)(Original_КодТовара));
  7586. if ((Original_НаименованиеТовара == null)) {
  7587. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  7588. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7589. }
  7590. else {
  7591. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  7592. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_НаименованиеТовара));
  7593. }
  7594. if ((Original_ЦенаТовара.HasValue == true)) {
  7595. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  7596. this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(Original_ЦенаТовара.Value));
  7597. }
  7598. else {
  7599. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  7600. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7601. }
  7602. this.Adapter.UpdateCommand.Parameters[7].Value = ((long)(КодТовара));
  7603. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7604. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7605. != global::System.Data.ConnectionState.Open)) {
  7606. this.Adapter.UpdateCommand.Connection.Open();
  7607. }
  7608. try {
  7609. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7610. return returnValue;
  7611. }
  7612. finally {
  7613. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7614. this.Adapter.UpdateCommand.Connection.Close();
  7615. }
  7616. }
  7617. }
  7618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7620. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7621. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7622. public virtual int Update(string НаименованиеТовара, global::System.Nullable<decimal> ЦенаТовара, long Original_КодТовара, string Original_НаименованиеТовара, global::System.Nullable<decimal> Original_ЦенаТовара) {
  7623. return this.Update(НаименованиеТовара, ЦенаТовара, Original_КодТовара, Original_НаименованиеТовара, Original_ЦенаТовара, Original_КодТовара);
  7624. }
  7625. }
  7626. /// <summary>
  7627. ///Represents the connection and commands used to retrieve and save data.
  7628. ///</summary>
  7629. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7630. [global::System.ComponentModel.ToolboxItem(true)]
  7631. [global::System.ComponentModel.DataObjectAttribute(true)]
  7632. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7633. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7634. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7635. public partial class View_1TableAdapter : global::System.ComponentModel.Component {
  7636. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7637. private global::System.Data.SqlClient.SqlConnection _connection;
  7638. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7639. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7640. private bool _clearBeforeFill;
  7641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7643. public View_1TableAdapter() {
  7644. this.ClearBeforeFill = true;
  7645. }
  7646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7648. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7649. get {
  7650. if ((this._adapter == null)) {
  7651. this.InitAdapter();
  7652. }
  7653. return this._adapter;
  7654. }
  7655. }
  7656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7658. internal global::System.Data.SqlClient.SqlConnection Connection {
  7659. get {
  7660. if ((this._connection == null)) {
  7661. this.InitConnection();
  7662. }
  7663. return this._connection;
  7664. }
  7665. set {
  7666. this._connection = value;
  7667. if ((this.Adapter.InsertCommand != null)) {
  7668. this.Adapter.InsertCommand.Connection = value;
  7669. }
  7670. if ((this.Adapter.DeleteCommand != null)) {
  7671. this.Adapter.DeleteCommand.Connection = value;
  7672. }
  7673. if ((this.Adapter.UpdateCommand != null)) {
  7674. this.Adapter.UpdateCommand.Connection = value;
  7675. }
  7676. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7677. if ((this.CommandCollection[i] != null)) {
  7678. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7679. }
  7680. }
  7681. }
  7682. }
  7683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7685. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7686. get {
  7687. return this._transaction;
  7688. }
  7689. set {
  7690. this._transaction = value;
  7691. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7692. this.CommandCollection[i].Transaction = this._transaction;
  7693. }
  7694. if (((this.Adapter != null)
  7695. && (this.Adapter.DeleteCommand != null))) {
  7696. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7697. }
  7698. if (((this.Adapter != null)
  7699. && (this.Adapter.InsertCommand != null))) {
  7700. this.Adapter.InsertCommand.Transaction = this._transaction;
  7701. }
  7702. if (((this.Adapter != null)
  7703. && (this.Adapter.UpdateCommand != null))) {
  7704. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7705. }
  7706. }
  7707. }
  7708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7710. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7711. get {
  7712. if ((this._commandCollection == null)) {
  7713. this.InitCommandCollection();
  7714. }
  7715. return this._commandCollection;
  7716. }
  7717. }
  7718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7720. public bool ClearBeforeFill {
  7721. get {
  7722. return this._clearBeforeFill;
  7723. }
  7724. set {
  7725. this._clearBeforeFill = value;
  7726. }
  7727. }
  7728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7730. private void InitAdapter() {
  7731. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7732. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7733. tableMapping.SourceTable = "Table";
  7734. tableMapping.DataSetTable = "View_1";
  7735. tableMapping.ColumnMappings.Add("КодДоговора", "КодДоговора");
  7736. tableMapping.ColumnMappings.Add("КодЗаказчика", "КодЗаказчика");
  7737. this._adapter.TableMappings.Add(tableMapping);
  7738. }
  7739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7741. private void InitConnection() {
  7742. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7743. this._connection.ConnectionString = global::WindowsFormsApp1Индивидуально.Properties.Settings.Default.PostavkaTovarovConnectionString;
  7744. }
  7745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7747. private void InitCommandCollection() {
  7748. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7749. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7750. this._commandCollection[0].Connection = this.Connection;
  7751. this._commandCollection[0].CommandText = "SELECT КодДоговора, КодЗаказчика FROM dbo.View_1";
  7752. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7753. }
  7754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7756. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7757. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7758. public virtual int Fill(PostavkaTovarovDataSet.View_1DataTable dataTable) {
  7759. this.Adapter.SelectCommand = this.CommandCollection[0];
  7760. if ((this.ClearBeforeFill == true)) {
  7761. dataTable.Clear();
  7762. }
  7763. int returnValue = this.Adapter.Fill(dataTable);
  7764. return returnValue;
  7765. }
  7766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7768. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7769. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7770. public virtual PostavkaTovarovDataSet.View_1DataTable GetData() {
  7771. this.Adapter.SelectCommand = this.CommandCollection[0];
  7772. PostavkaTovarovDataSet.View_1DataTable dataTable = new PostavkaTovarovDataSet.View_1DataTable();
  7773. this.Adapter.Fill(dataTable);
  7774. return dataTable;
  7775. }
  7776. }
  7777. /// <summary>
  7778. ///Represents the connection and commands used to retrieve and save data.
  7779. ///</summary>
  7780. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7781. [global::System.ComponentModel.ToolboxItem(true)]
  7782. [global::System.ComponentModel.DataObjectAttribute(true)]
  7783. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7784. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7785. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7786. public partial class Запрос_ВнеплановаяПоставкаTableAdapter : global::System.ComponentModel.Component {
  7787. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7788. private global::System.Data.SqlClient.SqlConnection _connection;
  7789. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7790. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7791. private bool _clearBeforeFill;
  7792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7794. public Запрос_ВнеплановаяПоставкаTableAdapter() {
  7795. this.ClearBeforeFill = true;
  7796. }
  7797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7799. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7800. get {
  7801. if ((this._adapter == null)) {
  7802. this.InitAdapter();
  7803. }
  7804. return this._adapter;
  7805. }
  7806. }
  7807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7809. internal global::System.Data.SqlClient.SqlConnection Connection {
  7810. get {
  7811. if ((this._connection == null)) {
  7812. this.InitConnection();
  7813. }
  7814. return this._connection;
  7815. }
  7816. set {
  7817. this._connection = value;
  7818. if ((this.Adapter.InsertCommand != null)) {
  7819. this.Adapter.InsertCommand.Connection = value;
  7820. }
  7821. if ((this.Adapter.DeleteCommand != null)) {
  7822. this.Adapter.DeleteCommand.Connection = value;
  7823. }
  7824. if ((this.Adapter.UpdateCommand != null)) {
  7825. this.Adapter.UpdateCommand.Connection = value;
  7826. }
  7827. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7828. if ((this.CommandCollection[i] != null)) {
  7829. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7830. }
  7831. }
  7832. }
  7833. }
  7834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7836. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7837. get {
  7838. return this._transaction;
  7839. }
  7840. set {
  7841. this._transaction = value;
  7842. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7843. this.CommandCollection[i].Transaction = this._transaction;
  7844. }
  7845. if (((this.Adapter != null)
  7846. && (this.Adapter.DeleteCommand != null))) {
  7847. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7848. }
  7849. if (((this.Adapter != null)
  7850. && (this.Adapter.InsertCommand != null))) {
  7851. this.Adapter.InsertCommand.Transaction = this._transaction;
  7852. }
  7853. if (((this.Adapter != null)
  7854. && (this.Adapter.UpdateCommand != null))) {
  7855. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7856. }
  7857. }
  7858. }
  7859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7861. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7862. get {
  7863. if ((this._commandCollection == null)) {
  7864. this.InitCommandCollection();
  7865. }
  7866. return this._commandCollection;
  7867. }
  7868. }
  7869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7871. public bool ClearBeforeFill {
  7872. get {
  7873. return this._clearBeforeFill;
  7874. }
  7875. set {
  7876. this._clearBeforeFill = value;
  7877. }
  7878. }
  7879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7880. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7881. private void InitAdapter() {
  7882. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7883. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7884. tableMapping.SourceTable = "Table";
  7885. tableMapping.DataSetTable = "Запрос_ВнеплановаяПоставка";
  7886. tableMapping.ColumnMappings.Add("ФИО", "ФИО");
  7887. tableMapping.ColumnMappings.Add("НаименованиеЗаказа", "НаименованиеЗаказа");
  7888. tableMapping.ColumnMappings.Add("ПлановаяПоставка", "ПлановаяПоставка");
  7889. tableMapping.ColumnMappings.Add("НаименованиеТовара", "НаименованиеТовара");
  7890. tableMapping.ColumnMappings.Add("ЦенаТовара", "ЦенаТовара");
  7891. this._adapter.TableMappings.Add(tableMapping);
  7892. }
  7893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7895. private void InitConnection() {
  7896. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7897. this._connection.ConnectionString = global::WindowsFormsApp1Индивидуально.Properties.Settings.Default.PostavkaTovarovConnectionString;
  7898. }
  7899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7900. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7901. private void InitCommandCollection() {
  7902. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7903. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7904. this._commandCollection[0].Connection = this.Connection;
  7905. this._commandCollection[0].CommandText = "SELECT ФИО, НаименованиеЗаказа, ПлановаяПоставка, НаименованиеТовара, ЦенаТовара " +
  7906. "FROM dbo.Запрос_ВнеплановаяПоставка";
  7907. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7908. }
  7909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7911. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7912. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7913. public virtual int Fill(PostavkaTovarovDataSet.Запрос_ВнеплановаяПоставкаDataTable dataTable) {
  7914. this.Adapter.SelectCommand = this.CommandCollection[0];
  7915. if ((this.ClearBeforeFill == true)) {
  7916. dataTable.Clear();
  7917. }
  7918. int returnValue = this.Adapter.Fill(dataTable);
  7919. return returnValue;
  7920. }
  7921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7923. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7924. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7925. public virtual PostavkaTovarovDataSet.Запрос_ВнеплановаяПоставкаDataTable GetData() {
  7926. this.Adapter.SelectCommand = this.CommandCollection[0];
  7927. PostavkaTovarovDataSet.Запрос_ВнеплановаяПоставкаDataTable dataTable = new PostavkaTovarovDataSet.Запрос_ВнеплановаяПоставкаDataTable();
  7928. this.Adapter.Fill(dataTable);
  7929. return dataTable;
  7930. }
  7931. }
  7932. /// <summary>
  7933. ///Represents the connection and commands used to retrieve and save data.
  7934. ///</summary>
  7935. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7936. [global::System.ComponentModel.ToolboxItem(true)]
  7937. [global::System.ComponentModel.DataObjectAttribute(true)]
  7938. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7939. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7940. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7941. public partial class Запрос_Заказы_ДоговораЗаказовTableAdapter : global::System.ComponentModel.Component {
  7942. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7943. private global::System.Data.SqlClient.SqlConnection _connection;
  7944. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7945. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7946. private bool _clearBeforeFill;
  7947. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7948. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7949. public Запрос_Заказы_ДоговораЗаказовTableAdapter() {
  7950. this.ClearBeforeFill = true;
  7951. }
  7952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7954. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7955. get {
  7956. if ((this._adapter == null)) {
  7957. this.InitAdapter();
  7958. }
  7959. return this._adapter;
  7960. }
  7961. }
  7962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7964. internal global::System.Data.SqlClient.SqlConnection Connection {
  7965. get {
  7966. if ((this._connection == null)) {
  7967. this.InitConnection();
  7968. }
  7969. return this._connection;
  7970. }
  7971. set {
  7972. this._connection = value;
  7973. if ((this.Adapter.InsertCommand != null)) {
  7974. this.Adapter.InsertCommand.Connection = value;
  7975. }
  7976. if ((this.Adapter.DeleteCommand != null)) {
  7977. this.Adapter.DeleteCommand.Connection = value;
  7978. }
  7979. if ((this.Adapter.UpdateCommand != null)) {
  7980. this.Adapter.UpdateCommand.Connection = value;
  7981. }
  7982. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7983. if ((this.CommandCollection[i] != null)) {
  7984. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7985. }
  7986. }
  7987. }
  7988. }
  7989. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  7991. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7992. get {
  7993. return this._transaction;
  7994. }
  7995. set {
  7996. this._transaction = value;
  7997. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7998. this.CommandCollection[i].Transaction = this._transaction;
  7999. }
  8000. if (((this.Adapter != null)
  8001. && (this.Adapter.DeleteCommand != null))) {
  8002. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8003. }
  8004. if (((this.Adapter != null)
  8005. && (this.Adapter.InsertCommand != null))) {
  8006. this.Adapter.InsertCommand.Transaction = this._transaction;
  8007. }
  8008. if (((this.Adapter != null)
  8009. && (this.Adapter.UpdateCommand != null))) {
  8010. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8011. }
  8012. }
  8013. }
  8014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8016. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8017. get {
  8018. if ((this._commandCollection == null)) {
  8019. this.InitCommandCollection();
  8020. }
  8021. return this._commandCollection;
  8022. }
  8023. }
  8024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8026. public bool ClearBeforeFill {
  8027. get {
  8028. return this._clearBeforeFill;
  8029. }
  8030. set {
  8031. this._clearBeforeFill = value;
  8032. }
  8033. }
  8034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8036. private void InitAdapter() {
  8037. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8038. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8039. tableMapping.SourceTable = "Table";
  8040. tableMapping.DataSetTable = "Запрос_Заказы+ДоговораЗаказов";
  8041. tableMapping.ColumnMappings.Add("КодЗаказчика", "КодЗаказчика");
  8042. tableMapping.ColumnMappings.Add("КодЗаказа", "КодЗаказа");
  8043. tableMapping.ColumnMappings.Add("НаименованиеЗаказа", "НаименованиеЗаказа");
  8044. tableMapping.ColumnMappings.Add("КодТовара", "КодТовара");
  8045. tableMapping.ColumnMappings.Add("КодДоговора", "КодДоговора");
  8046. tableMapping.ColumnMappings.Add("ДатаЗаключения", "ДатаЗаключения");
  8047. tableMapping.ColumnMappings.Add("ПлановаяПоставка", "ПлановаяПоставка");
  8048. tableMapping.ColumnMappings.Add("КодОтгрузки", "КодОтгрузки");
  8049. this._adapter.TableMappings.Add(tableMapping);
  8050. }
  8051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8053. private void InitConnection() {
  8054. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8055. this._connection.ConnectionString = global::WindowsFormsApp1Индивидуально.Properties.Settings.Default.PostavkaTovarovConnectionString;
  8056. }
  8057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8059. private void InitCommandCollection() {
  8060. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8061. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8062. this._commandCollection[0].Connection = this.Connection;
  8063. this._commandCollection[0].CommandText = "SELECT КодЗаказчика, КодЗаказа, НаименованиеЗаказа, КодТовара, КодДоговора, ДатаЗ" +
  8064. "аключения, ПлановаяПоставка, КодОтгрузки FROM dbo.[Запрос_Заказы+ДоговораЗаказов" +
  8065. "]";
  8066. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8067. }
  8068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8070. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8071. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8072. public virtual int Fill(PostavkaTovarovDataSet._Запрос_Заказы_ДоговораЗаказовDataTable dataTable) {
  8073. this.Adapter.SelectCommand = this.CommandCollection[0];
  8074. if ((this.ClearBeforeFill == true)) {
  8075. dataTable.Clear();
  8076. }
  8077. int returnValue = this.Adapter.Fill(dataTable);
  8078. return returnValue;
  8079. }
  8080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8082. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8083. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8084. public virtual PostavkaTovarovDataSet._Запрос_Заказы_ДоговораЗаказовDataTable GetData() {
  8085. this.Adapter.SelectCommand = this.CommandCollection[0];
  8086. PostavkaTovarovDataSet._Запрос_Заказы_ДоговораЗаказовDataTable dataTable = new PostavkaTovarovDataSet._Запрос_Заказы_ДоговораЗаказовDataTable();
  8087. this.Adapter.Fill(dataTable);
  8088. return dataTable;
  8089. }
  8090. }
  8091. /// <summary>
  8092. ///Represents the connection and commands used to retrieve and save data.
  8093. ///</summary>
  8094. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8095. [global::System.ComponentModel.ToolboxItem(true)]
  8096. [global::System.ComponentModel.DataObjectAttribute(true)]
  8097. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8098. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8099. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8100. public partial class Запрос_ПлановаяПоставкаTableAdapter : global::System.ComponentModel.Component {
  8101. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8102. private global::System.Data.SqlClient.SqlConnection _connection;
  8103. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8104. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8105. private bool _clearBeforeFill;
  8106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8108. public Запрос_ПлановаяПоставкаTableAdapter() {
  8109. this.ClearBeforeFill = true;
  8110. }
  8111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8113. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8114. get {
  8115. if ((this._adapter == null)) {
  8116. this.InitAdapter();
  8117. }
  8118. return this._adapter;
  8119. }
  8120. }
  8121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8123. internal global::System.Data.SqlClient.SqlConnection Connection {
  8124. get {
  8125. if ((this._connection == null)) {
  8126. this.InitConnection();
  8127. }
  8128. return this._connection;
  8129. }
  8130. set {
  8131. this._connection = value;
  8132. if ((this.Adapter.InsertCommand != null)) {
  8133. this.Adapter.InsertCommand.Connection = value;
  8134. }
  8135. if ((this.Adapter.DeleteCommand != null)) {
  8136. this.Adapter.DeleteCommand.Connection = value;
  8137. }
  8138. if ((this.Adapter.UpdateCommand != null)) {
  8139. this.Adapter.UpdateCommand.Connection = value;
  8140. }
  8141. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8142. if ((this.CommandCollection[i] != null)) {
  8143. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8144. }
  8145. }
  8146. }
  8147. }
  8148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8150. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8151. get {
  8152. return this._transaction;
  8153. }
  8154. set {
  8155. this._transaction = value;
  8156. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8157. this.CommandCollection[i].Transaction = this._transaction;
  8158. }
  8159. if (((this.Adapter != null)
  8160. && (this.Adapter.DeleteCommand != null))) {
  8161. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8162. }
  8163. if (((this.Adapter != null)
  8164. && (this.Adapter.InsertCommand != null))) {
  8165. this.Adapter.InsertCommand.Transaction = this._transaction;
  8166. }
  8167. if (((this.Adapter != null)
  8168. && (this.Adapter.UpdateCommand != null))) {
  8169. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8170. }
  8171. }
  8172. }
  8173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8175. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8176. get {
  8177. if ((this._commandCollection == null)) {
  8178. this.InitCommandCollection();
  8179. }
  8180. return this._commandCollection;
  8181. }
  8182. }
  8183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8185. public bool ClearBeforeFill {
  8186. get {
  8187. return this._clearBeforeFill;
  8188. }
  8189. set {
  8190. this._clearBeforeFill = value;
  8191. }
  8192. }
  8193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8195. private void InitAdapter() {
  8196. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8197. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8198. tableMapping.SourceTable = "Table";
  8199. tableMapping.DataSetTable = "Запрос_ПлановаяПоставка";
  8200. tableMapping.ColumnMappings.Add("ФИО", "ФИО");
  8201. tableMapping.ColumnMappings.Add("НаименованиеЗаказа", "НаименованиеЗаказа");
  8202. tableMapping.ColumnMappings.Add("НаименованиеТовара", "НаименованиеТовара");
  8203. tableMapping.ColumnMappings.Add("ЦенаТовара", "ЦенаТовара");
  8204. tableMapping.ColumnMappings.Add("ПлановаяПоставка", "ПлановаяПоставка");
  8205. this._adapter.TableMappings.Add(tableMapping);
  8206. }
  8207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8209. private void InitConnection() {
  8210. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8211. this._connection.ConnectionString = global::WindowsFormsApp1Индивидуально.Properties.Settings.Default.PostavkaTovarovConnectionString;
  8212. }
  8213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8215. private void InitCommandCollection() {
  8216. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8217. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8218. this._commandCollection[0].Connection = this.Connection;
  8219. this._commandCollection[0].CommandText = "SELECT ФИО, НаименованиеЗаказа, НаименованиеТовара, ЦенаТовара, ПлановаяПоставка " +
  8220. "FROM dbo.Запрос_ПлановаяПоставка";
  8221. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8222. }
  8223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8225. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8226. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8227. public virtual int Fill(PostavkaTovarovDataSet.Запрос_ПлановаяПоставкаDataTable dataTable) {
  8228. this.Adapter.SelectCommand = this.CommandCollection[0];
  8229. if ((this.ClearBeforeFill == true)) {
  8230. dataTable.Clear();
  8231. }
  8232. int returnValue = this.Adapter.Fill(dataTable);
  8233. return returnValue;
  8234. }
  8235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8237. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8238. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8239. public virtual PostavkaTovarovDataSet.Запрос_ПлановаяПоставкаDataTable GetData() {
  8240. this.Adapter.SelectCommand = this.CommandCollection[0];
  8241. PostavkaTovarovDataSet.Запрос_ПлановаяПоставкаDataTable dataTable = new PostavkaTovarovDataSet.Запрос_ПлановаяПоставкаDataTable();
  8242. this.Adapter.Fill(dataTable);
  8243. return dataTable;
  8244. }
  8245. }
  8246. /// <summary>
  8247. ///Represents the connection and commands used to retrieve and save data.
  8248. ///</summary>
  8249. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8250. [global::System.ComponentModel.ToolboxItem(true)]
  8251. [global::System.ComponentModel.DataObjectAttribute(true)]
  8252. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8253. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8254. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8255. public partial class Запрос_ФИОЗаказавшихКерамическиеИзделияTableAdapter : global::System.ComponentModel.Component {
  8256. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8257. private global::System.Data.SqlClient.SqlConnection _connection;
  8258. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8259. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8260. private bool _clearBeforeFill;
  8261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8263. public Запрос_ФИОЗаказавшихКерамическиеИзделияTableAdapter() {
  8264. this.ClearBeforeFill = true;
  8265. }
  8266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8268. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8269. get {
  8270. if ((this._adapter == null)) {
  8271. this.InitAdapter();
  8272. }
  8273. return this._adapter;
  8274. }
  8275. }
  8276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8278. internal global::System.Data.SqlClient.SqlConnection Connection {
  8279. get {
  8280. if ((this._connection == null)) {
  8281. this.InitConnection();
  8282. }
  8283. return this._connection;
  8284. }
  8285. set {
  8286. this._connection = value;
  8287. if ((this.Adapter.InsertCommand != null)) {
  8288. this.Adapter.InsertCommand.Connection = value;
  8289. }
  8290. if ((this.Adapter.DeleteCommand != null)) {
  8291. this.Adapter.DeleteCommand.Connection = value;
  8292. }
  8293. if ((this.Adapter.UpdateCommand != null)) {
  8294. this.Adapter.UpdateCommand.Connection = value;
  8295. }
  8296. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8297. if ((this.CommandCollection[i] != null)) {
  8298. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8299. }
  8300. }
  8301. }
  8302. }
  8303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8305. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8306. get {
  8307. return this._transaction;
  8308. }
  8309. set {
  8310. this._transaction = value;
  8311. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8312. this.CommandCollection[i].Transaction = this._transaction;
  8313. }
  8314. if (((this.Adapter != null)
  8315. && (this.Adapter.DeleteCommand != null))) {
  8316. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8317. }
  8318. if (((this.Adapter != null)
  8319. && (this.Adapter.InsertCommand != null))) {
  8320. this.Adapter.InsertCommand.Transaction = this._transaction;
  8321. }
  8322. if (((this.Adapter != null)
  8323. && (this.Adapter.UpdateCommand != null))) {
  8324. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8325. }
  8326. }
  8327. }
  8328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8330. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8331. get {
  8332. if ((this._commandCollection == null)) {
  8333. this.InitCommandCollection();
  8334. }
  8335. return this._commandCollection;
  8336. }
  8337. }
  8338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8340. public bool ClearBeforeFill {
  8341. get {
  8342. return this._clearBeforeFill;
  8343. }
  8344. set {
  8345. this._clearBeforeFill = value;
  8346. }
  8347. }
  8348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8350. private void InitAdapter() {
  8351. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8352. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8353. tableMapping.SourceTable = "Table";
  8354. tableMapping.DataSetTable = "Запрос_ФИОЗаказавшихКерамическиеИзделия";
  8355. tableMapping.ColumnMappings.Add("НаименованиеТовара", "НаименованиеТовара");
  8356. tableMapping.ColumnMappings.Add("НаименованиеЗаказа", "НаименованиеЗаказа");
  8357. tableMapping.ColumnMappings.Add("ФИО", "ФИО");
  8358. this._adapter.TableMappings.Add(tableMapping);
  8359. }
  8360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8362. private void InitConnection() {
  8363. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8364. this._connection.ConnectionString = global::WindowsFormsApp1Индивидуально.Properties.Settings.Default.PostavkaTovarovConnectionString;
  8365. }
  8366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8368. private void InitCommandCollection() {
  8369. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8370. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8371. this._commandCollection[0].Connection = this.Connection;
  8372. this._commandCollection[0].CommandText = "SELECT НаименованиеТовара, НаименованиеЗаказа, ФИО FROM dbo.Запрос_ФИОЗаказавшихК" +
  8373. "ерамическиеИзделия";
  8374. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8375. }
  8376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8378. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8379. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8380. public virtual int Fill(PostavkaTovarovDataSet.Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable dataTable) {
  8381. this.Adapter.SelectCommand = this.CommandCollection[0];
  8382. if ((this.ClearBeforeFill == true)) {
  8383. dataTable.Clear();
  8384. }
  8385. int returnValue = this.Adapter.Fill(dataTable);
  8386. return returnValue;
  8387. }
  8388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8390. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8391. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8392. public virtual PostavkaTovarovDataSet.Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable GetData() {
  8393. this.Adapter.SelectCommand = this.CommandCollection[0];
  8394. PostavkaTovarovDataSet.Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable dataTable = new PostavkaTovarovDataSet.Запрос_ФИОЗаказавшихКерамическиеИзделияDataTable();
  8395. this.Adapter.Fill(dataTable);
  8396. return dataTable;
  8397. }
  8398. }
  8399. /// <summary>
  8400. ///Represents the connection and commands used to retrieve and save data.
  8401. ///</summary>
  8402. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8403. [global::System.ComponentModel.ToolboxItem(true)]
  8404. [global::System.ComponentModel.DataObjectAttribute(true)]
  8405. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8406. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8407. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8408. public partial class Запрос_ФИОЗаказавшихМебельTableAdapter : global::System.ComponentModel.Component {
  8409. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8410. private global::System.Data.SqlClient.SqlConnection _connection;
  8411. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8412. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8413. private bool _clearBeforeFill;
  8414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8416. public Запрос_ФИОЗаказавшихМебельTableAdapter() {
  8417. this.ClearBeforeFill = true;
  8418. }
  8419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8421. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8422. get {
  8423. if ((this._adapter == null)) {
  8424. this.InitAdapter();
  8425. }
  8426. return this._adapter;
  8427. }
  8428. }
  8429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8431. internal global::System.Data.SqlClient.SqlConnection Connection {
  8432. get {
  8433. if ((this._connection == null)) {
  8434. this.InitConnection();
  8435. }
  8436. return this._connection;
  8437. }
  8438. set {
  8439. this._connection = value;
  8440. if ((this.Adapter.InsertCommand != null)) {
  8441. this.Adapter.InsertCommand.Connection = value;
  8442. }
  8443. if ((this.Adapter.DeleteCommand != null)) {
  8444. this.Adapter.DeleteCommand.Connection = value;
  8445. }
  8446. if ((this.Adapter.UpdateCommand != null)) {
  8447. this.Adapter.UpdateCommand.Connection = value;
  8448. }
  8449. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8450. if ((this.CommandCollection[i] != null)) {
  8451. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8452. }
  8453. }
  8454. }
  8455. }
  8456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8458. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8459. get {
  8460. return this._transaction;
  8461. }
  8462. set {
  8463. this._transaction = value;
  8464. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8465. this.CommandCollection[i].Transaction = this._transaction;
  8466. }
  8467. if (((this.Adapter != null)
  8468. && (this.Adapter.DeleteCommand != null))) {
  8469. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8470. }
  8471. if (((this.Adapter != null)
  8472. && (this.Adapter.InsertCommand != null))) {
  8473. this.Adapter.InsertCommand.Transaction = this._transaction;
  8474. }
  8475. if (((this.Adapter != null)
  8476. && (this.Adapter.UpdateCommand != null))) {
  8477. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8478. }
  8479. }
  8480. }
  8481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8483. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8484. get {
  8485. if ((this._commandCollection == null)) {
  8486. this.InitCommandCollection();
  8487. }
  8488. return this._commandCollection;
  8489. }
  8490. }
  8491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8493. public bool ClearBeforeFill {
  8494. get {
  8495. return this._clearBeforeFill;
  8496. }
  8497. set {
  8498. this._clearBeforeFill = value;
  8499. }
  8500. }
  8501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8503. private void InitAdapter() {
  8504. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8505. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8506. tableMapping.SourceTable = "Table";
  8507. tableMapping.DataSetTable = "Запрос_ФИОЗаказавшихМебель";
  8508. tableMapping.ColumnMappings.Add("НаименованиеТовара", "НаименованиеТовара");
  8509. tableMapping.ColumnMappings.Add("НаименованиеЗаказа", "НаименованиеЗаказа");
  8510. tableMapping.ColumnMappings.Add("ФИО", "ФИО");
  8511. this._adapter.TableMappings.Add(tableMapping);
  8512. }
  8513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8515. private void InitConnection() {
  8516. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8517. this._connection.ConnectionString = global::WindowsFormsApp1Индивидуально.Properties.Settings.Default.PostavkaTovarovConnectionString;
  8518. }
  8519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8521. private void InitCommandCollection() {
  8522. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8523. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8524. this._commandCollection[0].Connection = this.Connection;
  8525. this._commandCollection[0].CommandText = "SELECT НаименованиеТовара, НаименованиеЗаказа, ФИО FROM dbo.Запрос_ФИОЗаказавшихМ" +
  8526. "ебель";
  8527. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8528. }
  8529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8531. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8532. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8533. public virtual int Fill(PostavkaTovarovDataSet.Запрос_ФИОЗаказавшихМебельDataTable dataTable) {
  8534. this.Adapter.SelectCommand = this.CommandCollection[0];
  8535. if ((this.ClearBeforeFill == true)) {
  8536. dataTable.Clear();
  8537. }
  8538. int returnValue = this.Adapter.Fill(dataTable);
  8539. return returnValue;
  8540. }
  8541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8543. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8544. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8545. public virtual PostavkaTovarovDataSet.Запрос_ФИОЗаказавшихМебельDataTable GetData() {
  8546. this.Adapter.SelectCommand = this.CommandCollection[0];
  8547. PostavkaTovarovDataSet.Запрос_ФИОЗаказавшихМебельDataTable dataTable = new PostavkaTovarovDataSet.Запрос_ФИОЗаказавшихМебельDataTable();
  8548. this.Adapter.Fill(dataTable);
  8549. return dataTable;
  8550. }
  8551. }
  8552. /// <summary>
  8553. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  8554. ///</summary>
  8555. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8556. [global::System.ComponentModel.ToolboxItem(true)]
  8557. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  8558. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8559. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  8560. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  8561. private UpdateOrderOption _updateOrder;
  8562. private ДоговорЗаказаTableAdapter _договорЗаказаTableAdapter;
  8563. private ЗаказчикTableAdapter _заказчикTableAdapter;
  8564. private ЗаказыTableAdapter _заказыTableAdapter;
  8565. private ОтгрузкаTableAdapter _отгрузкаTableAdapter;
  8566. private ОтгрузкаТовараTableAdapter _отгрузкаТовараTableAdapter;
  8567. private ТоварыTableAdapter _товарыTableAdapter;
  8568. private bool _backupDataSetBeforeUpdate;
  8569. private global::System.Data.IDbConnection _connection;
  8570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8572. public UpdateOrderOption UpdateOrder {
  8573. get {
  8574. return this._updateOrder;
  8575. }
  8576. set {
  8577. this._updateOrder = value;
  8578. }
  8579. }
  8580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8582. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8583. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8584. "a", "System.Drawing.Design.UITypeEditor")]
  8585. public ДоговорЗаказаTableAdapter ДоговорЗаказаTableAdapter {
  8586. get {
  8587. return this._договорЗаказаTableAdapter;
  8588. }
  8589. set {
  8590. this._договорЗаказаTableAdapter = value;
  8591. }
  8592. }
  8593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8595. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8596. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8597. "a", "System.Drawing.Design.UITypeEditor")]
  8598. public ЗаказчикTableAdapter ЗаказчикTableAdapter {
  8599. get {
  8600. return this._заказчикTableAdapter;
  8601. }
  8602. set {
  8603. this._заказчикTableAdapter = value;
  8604. }
  8605. }
  8606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8608. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8609. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8610. "a", "System.Drawing.Design.UITypeEditor")]
  8611. public ЗаказыTableAdapter ЗаказыTableAdapter {
  8612. get {
  8613. return this._заказыTableAdapter;
  8614. }
  8615. set {
  8616. this._заказыTableAdapter = value;
  8617. }
  8618. }
  8619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8621. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8622. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8623. "a", "System.Drawing.Design.UITypeEditor")]
  8624. public ОтгрузкаTableAdapter ОтгрузкаTableAdapter {
  8625. get {
  8626. return this._отгрузкаTableAdapter;
  8627. }
  8628. set {
  8629. this._отгрузкаTableAdapter = value;
  8630. }
  8631. }
  8632. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8633. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8634. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8635. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8636. "a", "System.Drawing.Design.UITypeEditor")]
  8637. public ОтгрузкаТовараTableAdapter ОтгрузкаТовараTableAdapter {
  8638. get {
  8639. return this._отгрузкаТовараTableAdapter;
  8640. }
  8641. set {
  8642. this._отгрузкаТовараTableAdapter = value;
  8643. }
  8644. }
  8645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8647. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  8648. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  8649. "a", "System.Drawing.Design.UITypeEditor")]
  8650. public ТоварыTableAdapter ТоварыTableAdapter {
  8651. get {
  8652. return this._товарыTableAdapter;
  8653. }
  8654. set {
  8655. this._товарыTableAdapter = value;
  8656. }
  8657. }
  8658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8660. public bool BackupDataSetBeforeUpdate {
  8661. get {
  8662. return this._backupDataSetBeforeUpdate;
  8663. }
  8664. set {
  8665. this._backupDataSetBeforeUpdate = value;
  8666. }
  8667. }
  8668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8670. [global::System.ComponentModel.Browsable(false)]
  8671. public global::System.Data.IDbConnection Connection {
  8672. get {
  8673. if ((this._connection != null)) {
  8674. return this._connection;
  8675. }
  8676. if (((this._договорЗаказаTableAdapter != null)
  8677. && (this._договорЗаказаTableAdapter.Connection != null))) {
  8678. return this._договорЗаказаTableAdapter.Connection;
  8679. }
  8680. if (((this._заказчикTableAdapter != null)
  8681. && (this._заказчикTableAdapter.Connection != null))) {
  8682. return this._заказчикTableAdapter.Connection;
  8683. }
  8684. if (((this._заказыTableAdapter != null)
  8685. && (this._заказыTableAdapter.Connection != null))) {
  8686. return this._заказыTableAdapter.Connection;
  8687. }
  8688. if (((this._отгрузкаTableAdapter != null)
  8689. && (this._отгрузкаTableAdapter.Connection != null))) {
  8690. return this._отгрузкаTableAdapter.Connection;
  8691. }
  8692. if (((this._отгрузкаТовараTableAdapter != null)
  8693. && (this._отгрузкаТовараTableAdapter.Connection != null))) {
  8694. return this._отгрузкаТовараTableAdapter.Connection;
  8695. }
  8696. if (((this._товарыTableAdapter != null)
  8697. && (this._товарыTableAdapter.Connection != null))) {
  8698. return this._товарыTableAdapter.Connection;
  8699. }
  8700. return null;
  8701. }
  8702. set {
  8703. this._connection = value;
  8704. }
  8705. }
  8706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8708. [global::System.ComponentModel.Browsable(false)]
  8709. public int TableAdapterInstanceCount {
  8710. get {
  8711. int count = 0;
  8712. if ((this._договорЗаказаTableAdapter != null)) {
  8713. count = (count + 1);
  8714. }
  8715. if ((this._заказчикTableAdapter != null)) {
  8716. count = (count + 1);
  8717. }
  8718. if ((this._заказыTableAdapter != null)) {
  8719. count = (count + 1);
  8720. }
  8721. if ((this._отгрузкаTableAdapter != null)) {
  8722. count = (count + 1);
  8723. }
  8724. if ((this._отгрузкаТовараTableAdapter != null)) {
  8725. count = (count + 1);
  8726. }
  8727. if ((this._товарыTableAdapter != null)) {
  8728. count = (count + 1);
  8729. }
  8730. return count;
  8731. }
  8732. }
  8733. /// <summary>
  8734. ///Update rows in top-down order.
  8735. ///</summary>
  8736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8738. private int UpdateUpdatedRows(PostavkaTovarovDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  8739. int result = 0;
  8740. if ((this._договорЗаказаTableAdapter != null)) {
  8741. global::System.Data.DataRow[] updatedRows = dataSet.ДоговорЗаказа.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8742. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8743. if (((updatedRows != null)
  8744. && (0 < updatedRows.Length))) {
  8745. result = (result + this._договорЗаказаTableAdapter.Update(updatedRows));
  8746. allChangedRows.AddRange(updatedRows);
  8747. }
  8748. }
  8749. if ((this._заказчикTableAdapter != null)) {
  8750. global::System.Data.DataRow[] updatedRows = dataSet.Заказчик.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8751. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8752. if (((updatedRows != null)
  8753. && (0 < updatedRows.Length))) {
  8754. result = (result + this._заказчикTableAdapter.Update(updatedRows));
  8755. allChangedRows.AddRange(updatedRows);
  8756. }
  8757. }
  8758. if ((this._отгрузкаTableAdapter != null)) {
  8759. global::System.Data.DataRow[] updatedRows = dataSet.Отгрузка.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8760. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8761. if (((updatedRows != null)
  8762. && (0 < updatedRows.Length))) {
  8763. result = (result + this._отгрузкаTableAdapter.Update(updatedRows));
  8764. allChangedRows.AddRange(updatedRows);
  8765. }
  8766. }
  8767. if ((this._товарыTableAdapter != null)) {
  8768. global::System.Data.DataRow[] updatedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8769. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8770. if (((updatedRows != null)
  8771. && (0 < updatedRows.Length))) {
  8772. result = (result + this._товарыTableAdapter.Update(updatedRows));
  8773. allChangedRows.AddRange(updatedRows);
  8774. }
  8775. }
  8776. if ((this._заказыTableAdapter != null)) {
  8777. global::System.Data.DataRow[] updatedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8778. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8779. if (((updatedRows != null)
  8780. && (0 < updatedRows.Length))) {
  8781. result = (result + this._заказыTableAdapter.Update(updatedRows));
  8782. allChangedRows.AddRange(updatedRows);
  8783. }
  8784. }
  8785. if ((this._отгрузкаТовараTableAdapter != null)) {
  8786. global::System.Data.DataRow[] updatedRows = dataSet.ОтгрузкаТовара.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  8787. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  8788. if (((updatedRows != null)
  8789. && (0 < updatedRows.Length))) {
  8790. result = (result + this._отгрузкаТовараTableAdapter.Update(updatedRows));
  8791. allChangedRows.AddRange(updatedRows);
  8792. }
  8793. }
  8794. return result;
  8795. }
  8796. /// <summary>
  8797. ///Insert rows in top-down order.
  8798. ///</summary>
  8799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8801. private int UpdateInsertedRows(PostavkaTovarovDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  8802. int result = 0;
  8803. if ((this._договорЗаказаTableAdapter != null)) {
  8804. global::System.Data.DataRow[] addedRows = dataSet.ДоговорЗаказа.Select(null, null, global::System.Data.DataViewRowState.Added);
  8805. if (((addedRows != null)
  8806. && (0 < addedRows.Length))) {
  8807. result = (result + this._договорЗаказаTableAdapter.Update(addedRows));
  8808. allAddedRows.AddRange(addedRows);
  8809. }
  8810. }
  8811. if ((this._заказчикTableAdapter != null)) {
  8812. global::System.Data.DataRow[] addedRows = dataSet.Заказчик.Select(null, null, global::System.Data.DataViewRowState.Added);
  8813. if (((addedRows != null)
  8814. && (0 < addedRows.Length))) {
  8815. result = (result + this._заказчикTableAdapter.Update(addedRows));
  8816. allAddedRows.AddRange(addedRows);
  8817. }
  8818. }
  8819. if ((this._отгрузкаTableAdapter != null)) {
  8820. global::System.Data.DataRow[] addedRows = dataSet.Отгрузка.Select(null, null, global::System.Data.DataViewRowState.Added);
  8821. if (((addedRows != null)
  8822. && (0 < addedRows.Length))) {
  8823. result = (result + this._отгрузкаTableAdapter.Update(addedRows));
  8824. allAddedRows.AddRange(addedRows);
  8825. }
  8826. }
  8827. if ((this._товарыTableAdapter != null)) {
  8828. global::System.Data.DataRow[] addedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.Added);
  8829. if (((addedRows != null)
  8830. && (0 < addedRows.Length))) {
  8831. result = (result + this._товарыTableAdapter.Update(addedRows));
  8832. allAddedRows.AddRange(addedRows);
  8833. }
  8834. }
  8835. if ((this._заказыTableAdapter != null)) {
  8836. global::System.Data.DataRow[] addedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.Added);
  8837. if (((addedRows != null)
  8838. && (0 < addedRows.Length))) {
  8839. result = (result + this._заказыTableAdapter.Update(addedRows));
  8840. allAddedRows.AddRange(addedRows);
  8841. }
  8842. }
  8843. if ((this._отгрузкаТовараTableAdapter != null)) {
  8844. global::System.Data.DataRow[] addedRows = dataSet.ОтгрузкаТовара.Select(null, null, global::System.Data.DataViewRowState.Added);
  8845. if (((addedRows != null)
  8846. && (0 < addedRows.Length))) {
  8847. result = (result + this._отгрузкаТовараTableAdapter.Update(addedRows));
  8848. allAddedRows.AddRange(addedRows);
  8849. }
  8850. }
  8851. return result;
  8852. }
  8853. /// <summary>
  8854. ///Delete rows in bottom-up order.
  8855. ///</summary>
  8856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8858. private int UpdateDeletedRows(PostavkaTovarovDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  8859. int result = 0;
  8860. if ((this._отгрузкаТовараTableAdapter != null)) {
  8861. global::System.Data.DataRow[] deletedRows = dataSet.ОтгрузкаТовара.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8862. if (((deletedRows != null)
  8863. && (0 < deletedRows.Length))) {
  8864. result = (result + this._отгрузкаТовараTableAdapter.Update(deletedRows));
  8865. allChangedRows.AddRange(deletedRows);
  8866. }
  8867. }
  8868. if ((this._заказыTableAdapter != null)) {
  8869. global::System.Data.DataRow[] deletedRows = dataSet.Заказы.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8870. if (((deletedRows != null)
  8871. && (0 < deletedRows.Length))) {
  8872. result = (result + this._заказыTableAdapter.Update(deletedRows));
  8873. allChangedRows.AddRange(deletedRows);
  8874. }
  8875. }
  8876. if ((this._товарыTableAdapter != null)) {
  8877. global::System.Data.DataRow[] deletedRows = dataSet.Товары.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8878. if (((deletedRows != null)
  8879. && (0 < deletedRows.Length))) {
  8880. result = (result + this._товарыTableAdapter.Update(deletedRows));
  8881. allChangedRows.AddRange(deletedRows);
  8882. }
  8883. }
  8884. if ((this._отгрузкаTableAdapter != null)) {
  8885. global::System.Data.DataRow[] deletedRows = dataSet.Отгрузка.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8886. if (((deletedRows != null)
  8887. && (0 < deletedRows.Length))) {
  8888. result = (result + this._отгрузкаTableAdapter.Update(deletedRows));
  8889. allChangedRows.AddRange(deletedRows);
  8890. }
  8891. }
  8892. if ((this._заказчикTableAdapter != null)) {
  8893. global::System.Data.DataRow[] deletedRows = dataSet.Заказчик.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8894. if (((deletedRows != null)
  8895. && (0 < deletedRows.Length))) {
  8896. result = (result + this._заказчикTableAdapter.Update(deletedRows));
  8897. allChangedRows.AddRange(deletedRows);
  8898. }
  8899. }
  8900. if ((this._договорЗаказаTableAdapter != null)) {
  8901. global::System.Data.DataRow[] deletedRows = dataSet.ДоговорЗаказа.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  8902. if (((deletedRows != null)
  8903. && (0 < deletedRows.Length))) {
  8904. result = (result + this._договорЗаказаTableAdapter.Update(deletedRows));
  8905. allChangedRows.AddRange(deletedRows);
  8906. }
  8907. }
  8908. return result;
  8909. }
  8910. /// <summary>
  8911. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  8912. ///</summary>
  8913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8915. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  8916. if (((updatedRows == null)
  8917. || (updatedRows.Length < 1))) {
  8918. return updatedRows;
  8919. }
  8920. if (((allAddedRows == null)
  8921. || (allAddedRows.Count < 1))) {
  8922. return updatedRows;
  8923. }
  8924. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  8925. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  8926. global::System.Data.DataRow row = updatedRows[i];
  8927. if ((allAddedRows.Contains(row) == false)) {
  8928. realUpdatedRows.Add(row);
  8929. }
  8930. }
  8931. return realUpdatedRows.ToArray();
  8932. }
  8933. /// <summary>
  8934. ///Update all changes to the dataset.
  8935. ///</summary>
  8936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  8938. public virtual int UpdateAll(PostavkaTovarovDataSet dataSet) {
  8939. if ((dataSet == null)) {
  8940. throw new global::System.ArgumentNullException("dataSet");
  8941. }
  8942. if ((dataSet.HasChanges() == false)) {
  8943. return 0;
  8944. }
  8945. if (((this._договорЗаказаTableAdapter != null)
  8946. && (this.MatchTableAdapterConnection(this._договорЗаказаTableAdapter.Connection) == false))) {
  8947. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8948. "r, должны использовать одинаковую строку подключения.");
  8949. }
  8950. if (((this._заказчикTableAdapter != null)
  8951. && (this.MatchTableAdapterConnection(this._заказчикTableAdapter.Connection) == false))) {
  8952. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8953. "r, должны использовать одинаковую строку подключения.");
  8954. }
  8955. if (((this._заказыTableAdapter != null)
  8956. && (this.MatchTableAdapterConnection(this._заказыTableAdapter.Connection) == false))) {
  8957. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8958. "r, должны использовать одинаковую строку подключения.");
  8959. }
  8960. if (((this._отгрузкаTableAdapter != null)
  8961. && (this.MatchTableAdapterConnection(this._отгрузкаTableAdapter.Connection) == false))) {
  8962. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8963. "r, должны использовать одинаковую строку подключения.");
  8964. }
  8965. if (((this._отгрузкаТовараTableAdapter != null)
  8966. && (this.MatchTableAdapterConnection(this._отгрузкаТовараTableAdapter.Connection) == false))) {
  8967. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8968. "r, должны использовать одинаковую строку подключения.");
  8969. }
  8970. if (((this._товарыTableAdapter != null)
  8971. && (this.MatchTableAdapterConnection(this._товарыTableAdapter.Connection) == false))) {
  8972. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  8973. "r, должны использовать одинаковую строку подключения.");
  8974. }
  8975. global::System.Data.IDbConnection workConnection = this.Connection;
  8976. if ((workConnection == null)) {
  8977. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  8978. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  8979. }
  8980. bool workConnOpened = false;
  8981. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  8982. == global::System.Data.ConnectionState.Broken)) {
  8983. workConnection.Close();
  8984. }
  8985. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  8986. workConnection.Open();
  8987. workConnOpened = true;
  8988. }
  8989. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  8990. if ((workTransaction == null)) {
  8991. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  8992. "и или текущее состояние не позволяет начать транзакцию.");
  8993. }
  8994. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  8995. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  8996. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  8997. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  8998. int result = 0;
  8999. global::System.Data.DataSet backupDataSet = null;
  9000. if (this.BackupDataSetBeforeUpdate) {
  9001. backupDataSet = new global::System.Data.DataSet();
  9002. backupDataSet.Merge(dataSet);
  9003. }
  9004. try {
  9005. // ---- Prepare for update -----------
  9006. //
  9007. if ((this._договорЗаказаTableAdapter != null)) {
  9008. revertConnections.Add(this._договорЗаказаTableAdapter, this._договорЗаказаTableAdapter.Connection);
  9009. this._договорЗаказаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9010. this._договорЗаказаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9011. if (this._договорЗаказаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9012. this._договорЗаказаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9013. adaptersWithAcceptChangesDuringUpdate.Add(this._договорЗаказаTableAdapter.Adapter);
  9014. }
  9015. }
  9016. if ((this._заказчикTableAdapter != null)) {
  9017. revertConnections.Add(this._заказчикTableAdapter, this._заказчикTableAdapter.Connection);
  9018. this._заказчикTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9019. this._заказчикTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9020. if (this._заказчикTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9021. this._заказчикTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9022. adaptersWithAcceptChangesDuringUpdate.Add(this._заказчикTableAdapter.Adapter);
  9023. }
  9024. }
  9025. if ((this._заказыTableAdapter != null)) {
  9026. revertConnections.Add(this._заказыTableAdapter, this._заказыTableAdapter.Connection);
  9027. this._заказыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9028. this._заказыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9029. if (this._заказыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9030. this._заказыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9031. adaptersWithAcceptChangesDuringUpdate.Add(this._заказыTableAdapter.Adapter);
  9032. }
  9033. }
  9034. if ((this._отгрузкаTableAdapter != null)) {
  9035. revertConnections.Add(this._отгрузкаTableAdapter, this._отгрузкаTableAdapter.Connection);
  9036. this._отгрузкаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9037. this._отгрузкаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9038. if (this._отгрузкаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9039. this._отгрузкаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9040. adaptersWithAcceptChangesDuringUpdate.Add(this._отгрузкаTableAdapter.Adapter);
  9041. }
  9042. }
  9043. if ((this._отгрузкаТовараTableAdapter != null)) {
  9044. revertConnections.Add(this._отгрузкаТовараTableAdapter, this._отгрузкаТовараTableAdapter.Connection);
  9045. this._отгрузкаТовараTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9046. this._отгрузкаТовараTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9047. if (this._отгрузкаТовараTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9048. this._отгрузкаТовараTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9049. adaptersWithAcceptChangesDuringUpdate.Add(this._отгрузкаТовараTableAdapter.Adapter);
  9050. }
  9051. }
  9052. if ((this._товарыTableAdapter != null)) {
  9053. revertConnections.Add(this._товарыTableAdapter, this._товарыTableAdapter.Connection);
  9054. this._товарыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  9055. this._товарыTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  9056. if (this._товарыTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  9057. this._товарыTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  9058. adaptersWithAcceptChangesDuringUpdate.Add(this._товарыTableAdapter.Adapter);
  9059. }
  9060. }
  9061. //
  9062. //---- Perform updates -----------
  9063. //
  9064. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  9065. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  9066. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  9067. }
  9068. else {
  9069. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  9070. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  9071. }
  9072. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  9073. //
  9074. //---- Commit updates -----------
  9075. //
  9076. workTransaction.Commit();
  9077. if ((0 < allAddedRows.Count)) {
  9078. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  9079. allAddedRows.CopyTo(rows);
  9080. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  9081. global::System.Data.DataRow row = rows[i];
  9082. row.AcceptChanges();
  9083. }
  9084. }
  9085. if ((0 < allChangedRows.Count)) {
  9086. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  9087. allChangedRows.CopyTo(rows);
  9088. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  9089. global::System.Data.DataRow row = rows[i];
  9090. row.AcceptChanges();
  9091. }
  9092. }
  9093. }
  9094. catch (global::System.Exception ex) {
  9095. workTransaction.Rollback();
  9096. // ---- Restore the dataset -----------
  9097. if (this.BackupDataSetBeforeUpdate) {
  9098. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  9099. dataSet.Clear();
  9100. dataSet.Merge(backupDataSet);
  9101. }
  9102. else {
  9103. if ((0 < allAddedRows.Count)) {
  9104. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  9105. allAddedRows.CopyTo(rows);
  9106. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  9107. global::System.Data.DataRow row = rows[i];
  9108. row.AcceptChanges();
  9109. row.SetAdded();
  9110. }
  9111. }
  9112. }
  9113. throw ex;
  9114. }
  9115. finally {
  9116. if (workConnOpened) {
  9117. workConnection.Close();
  9118. }
  9119. if ((this._договорЗаказаTableAdapter != null)) {
  9120. this._договорЗаказаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._договорЗаказаTableAdapter]));
  9121. this._договорЗаказаTableAdapter.Transaction = null;
  9122. }
  9123. if ((this._заказчикTableAdapter != null)) {
  9124. this._заказчикTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._заказчикTableAdapter]));
  9125. this._заказчикTableAdapter.Transaction = null;
  9126. }
  9127. if ((this._заказыTableAdapter != null)) {
  9128. this._заказыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._заказыTableAdapter]));
  9129. this._заказыTableAdapter.Transaction = null;
  9130. }
  9131. if ((this._отгрузкаTableAdapter != null)) {
  9132. this._отгрузкаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._отгрузкаTableAdapter]));
  9133. this._отгрузкаTableAdapter.Transaction = null;
  9134. }
  9135. if ((this._отгрузкаТовараTableAdapter != null)) {
  9136. this._отгрузкаТовараTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._отгрузкаТовараTableAdapter]));
  9137. this._отгрузкаТовараTableAdapter.Transaction = null;
  9138. }
  9139. if ((this._товарыTableAdapter != null)) {
  9140. this._товарыTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._товарыTableAdapter]));
  9141. this._товарыTableAdapter.Transaction = null;
  9142. }
  9143. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  9144. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  9145. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  9146. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  9147. global::System.Data.Common.DataAdapter adapter = adapters[i];
  9148. adapter.AcceptChangesDuringUpdate = true;
  9149. }
  9150. }
  9151. }
  9152. return result;
  9153. }
  9154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9156. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  9157. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  9158. }
  9159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9161. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  9162. if ((this._connection != null)) {
  9163. return true;
  9164. }
  9165. if (((this.Connection == null)
  9166. || (inputConnection == null))) {
  9167. return true;
  9168. }
  9169. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  9170. return true;
  9171. }
  9172. return false;
  9173. }
  9174. /// <summary>
  9175. ///Update Order Option
  9176. ///</summary>
  9177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9178. public enum UpdateOrderOption {
  9179. InsertUpdateDelete = 0,
  9180. UpdateInsertDelete = 1,
  9181. }
  9182. /// <summary>
  9183. ///Used to sort self-referenced table's rows
  9184. ///</summary>
  9185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9186. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  9187. private global::System.Data.DataRelation _relation;
  9188. private int _childFirst;
  9189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9191. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  9192. this._relation = relation;
  9193. if (childFirst) {
  9194. this._childFirst = -1;
  9195. }
  9196. else {
  9197. this._childFirst = 1;
  9198. }
  9199. }
  9200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9202. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  9203. global::System.Diagnostics.Debug.Assert((row != null));
  9204. global::System.Data.DataRow root = row;
  9205. distance = 0;
  9206. 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>();
  9207. traversedRows[row] = row;
  9208. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  9209. for (
  9210. ; ((parent != null)
  9211. && (traversedRows.ContainsKey(parent) == false));
  9212. ) {
  9213. distance = (distance + 1);
  9214. root = parent;
  9215. traversedRows[parent] = parent;
  9216. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  9217. }
  9218. if ((distance == 0)) {
  9219. traversedRows.Clear();
  9220. traversedRows[row] = row;
  9221. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  9222. for (
  9223. ; ((parent != null)
  9224. && (traversedRows.ContainsKey(parent) == false));
  9225. ) {
  9226. distance = (distance + 1);
  9227. root = parent;
  9228. traversedRows[parent] = parent;
  9229. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  9230. }
  9231. }
  9232. return root;
  9233. }
  9234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  9236. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  9237. if (object.ReferenceEquals(row1, row2)) {
  9238. return 0;
  9239. }
  9240. if ((row1 == null)) {
  9241. return -1;
  9242. }
  9243. if ((row2 == null)) {
  9244. return 1;
  9245. }
  9246. int distance1 = 0;
  9247. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  9248. int distance2 = 0;
  9249. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  9250. if (object.ReferenceEquals(root1, root2)) {
  9251. return (this._childFirst * distance1.CompareTo(distance2));
  9252. }
  9253. else {
  9254. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  9255. && (root2.Table != null)));
  9256. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  9257. return -1;
  9258. }
  9259. else {
  9260. return 1;
  9261. }
  9262. }
  9263. }
  9264. }
  9265. }
  9266. }
  9267. #pragma warning restore 1591