AlfafloorGDVDataSet.Designer.cs 730 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Runtime Version:4.0.30319.42000
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace СУБД_Альфапол {
  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("AlfafloorGDVDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class AlfafloorGDVDataSet : global::System.Data.DataSet {
  22. private CityDataTable tableCity;
  23. private ManagerDataTable tableManager;
  24. private PartnerDataTable tablePartner;
  25. private PartnerProductsDataTable tablePartnerProducts;
  26. private PostCodeDataTable tablePostCode;
  27. private ProductDataTable tableProduct;
  28. private ProductTypeDataTable tableProductType;
  29. private RegionDataTable tableRegion;
  30. private StreetDataTable tableStreet;
  31. private TypeMaterialDataTable tableTypeMaterial;
  32. private TypePartnerDataTable tableTypePartner;
  33. private Type4FilterDataTable tableType4Filter;
  34. private global::System.Data.DataRelation relationFK_Partner_City;
  35. private global::System.Data.DataRelation relationFK_Partner_PostCode;
  36. private global::System.Data.DataRelation relationFK_Partner_Region;
  37. private global::System.Data.DataRelation relationFK_Partner_Street;
  38. private global::System.Data.DataRelation relationFK_Partner_TypePartner;
  39. private global::System.Data.DataRelation relationFK_PartnerProducts_Partner;
  40. private global::System.Data.DataRelation relationFK_PartnerProducts_Product;
  41. private global::System.Data.DataRelation relationFK_Product_ProductType;
  42. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  43. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  44. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  45. public AlfafloorGDVDataSet() {
  46. this.BeginInit();
  47. this.InitClass();
  48. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  49. base.Tables.CollectionChanged += schemaChangedHandler;
  50. base.Relations.CollectionChanged += schemaChangedHandler;
  51. this.EndInit();
  52. }
  53. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  54. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  55. protected AlfafloorGDVDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  56. base(info, context, false) {
  57. if ((this.IsBinarySerialized(info, context) == true)) {
  58. this.InitVars(false);
  59. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  60. this.Tables.CollectionChanged += schemaChangedHandler1;
  61. this.Relations.CollectionChanged += schemaChangedHandler1;
  62. return;
  63. }
  64. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  65. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  66. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  67. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  68. if ((ds.Tables["City"] != null)) {
  69. base.Tables.Add(new CityDataTable(ds.Tables["City"]));
  70. }
  71. if ((ds.Tables["Manager"] != null)) {
  72. base.Tables.Add(new ManagerDataTable(ds.Tables["Manager"]));
  73. }
  74. if ((ds.Tables["Partner"] != null)) {
  75. base.Tables.Add(new PartnerDataTable(ds.Tables["Partner"]));
  76. }
  77. if ((ds.Tables["PartnerProducts"] != null)) {
  78. base.Tables.Add(new PartnerProductsDataTable(ds.Tables["PartnerProducts"]));
  79. }
  80. if ((ds.Tables["PostCode"] != null)) {
  81. base.Tables.Add(new PostCodeDataTable(ds.Tables["PostCode"]));
  82. }
  83. if ((ds.Tables["Product"] != null)) {
  84. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  85. }
  86. if ((ds.Tables["ProductType"] != null)) {
  87. base.Tables.Add(new ProductTypeDataTable(ds.Tables["ProductType"]));
  88. }
  89. if ((ds.Tables["Region"] != null)) {
  90. base.Tables.Add(new RegionDataTable(ds.Tables["Region"]));
  91. }
  92. if ((ds.Tables["Street"] != null)) {
  93. base.Tables.Add(new StreetDataTable(ds.Tables["Street"]));
  94. }
  95. if ((ds.Tables["TypeMaterial"] != null)) {
  96. base.Tables.Add(new TypeMaterialDataTable(ds.Tables["TypeMaterial"]));
  97. }
  98. if ((ds.Tables["TypePartner"] != null)) {
  99. base.Tables.Add(new TypePartnerDataTable(ds.Tables["TypePartner"]));
  100. }
  101. if ((ds.Tables["Type4Filter"] != null)) {
  102. base.Tables.Add(new Type4FilterDataTable(ds.Tables["Type4Filter"]));
  103. }
  104. this.DataSetName = ds.DataSetName;
  105. this.Prefix = ds.Prefix;
  106. this.Namespace = ds.Namespace;
  107. this.Locale = ds.Locale;
  108. this.CaseSensitive = ds.CaseSensitive;
  109. this.EnforceConstraints = ds.EnforceConstraints;
  110. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  111. this.InitVars();
  112. }
  113. else {
  114. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  115. }
  116. this.GetSerializationData(info, context);
  117. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  118. base.Tables.CollectionChanged += schemaChangedHandler;
  119. this.Relations.CollectionChanged += schemaChangedHandler;
  120. }
  121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  123. [global::System.ComponentModel.Browsable(false)]
  124. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  125. public CityDataTable City {
  126. get {
  127. return this.tableCity;
  128. }
  129. }
  130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  132. [global::System.ComponentModel.Browsable(false)]
  133. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  134. public ManagerDataTable Manager {
  135. get {
  136. return this.tableManager;
  137. }
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  141. [global::System.ComponentModel.Browsable(false)]
  142. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  143. public PartnerDataTable Partner {
  144. get {
  145. return this.tablePartner;
  146. }
  147. }
  148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  150. [global::System.ComponentModel.Browsable(false)]
  151. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  152. public PartnerProductsDataTable PartnerProducts {
  153. get {
  154. return this.tablePartnerProducts;
  155. }
  156. }
  157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  159. [global::System.ComponentModel.Browsable(false)]
  160. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  161. public PostCodeDataTable PostCode {
  162. get {
  163. return this.tablePostCode;
  164. }
  165. }
  166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  168. [global::System.ComponentModel.Browsable(false)]
  169. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  170. public ProductDataTable Product {
  171. get {
  172. return this.tableProduct;
  173. }
  174. }
  175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  177. [global::System.ComponentModel.Browsable(false)]
  178. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  179. public ProductTypeDataTable ProductType {
  180. get {
  181. return this.tableProductType;
  182. }
  183. }
  184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  186. [global::System.ComponentModel.Browsable(false)]
  187. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  188. public RegionDataTable Region {
  189. get {
  190. return this.tableRegion;
  191. }
  192. }
  193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  195. [global::System.ComponentModel.Browsable(false)]
  196. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  197. public StreetDataTable Street {
  198. get {
  199. return this.tableStreet;
  200. }
  201. }
  202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  204. [global::System.ComponentModel.Browsable(false)]
  205. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  206. public TypeMaterialDataTable TypeMaterial {
  207. get {
  208. return this.tableTypeMaterial;
  209. }
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  213. [global::System.ComponentModel.Browsable(false)]
  214. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  215. public TypePartnerDataTable TypePartner {
  216. get {
  217. return this.tableTypePartner;
  218. }
  219. }
  220. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  221. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  222. [global::System.ComponentModel.Browsable(false)]
  223. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  224. public Type4FilterDataTable Type4Filter {
  225. get {
  226. return this.tableType4Filter;
  227. }
  228. }
  229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  231. [global::System.ComponentModel.BrowsableAttribute(true)]
  232. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  233. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  234. get {
  235. return this._schemaSerializationMode;
  236. }
  237. set {
  238. this._schemaSerializationMode = value;
  239. }
  240. }
  241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  243. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  244. public new global::System.Data.DataTableCollection Tables {
  245. get {
  246. return base.Tables;
  247. }
  248. }
  249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  251. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  252. public new global::System.Data.DataRelationCollection Relations {
  253. get {
  254. return base.Relations;
  255. }
  256. }
  257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  259. protected override void InitializeDerivedDataSet() {
  260. this.BeginInit();
  261. this.InitClass();
  262. this.EndInit();
  263. }
  264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  266. public override global::System.Data.DataSet Clone() {
  267. AlfafloorGDVDataSet cln = ((AlfafloorGDVDataSet)(base.Clone()));
  268. cln.InitVars();
  269. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  270. return cln;
  271. }
  272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  274. protected override bool ShouldSerializeTables() {
  275. return false;
  276. }
  277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  279. protected override bool ShouldSerializeRelations() {
  280. return false;
  281. }
  282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  284. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  285. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  286. this.Reset();
  287. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  288. ds.ReadXml(reader);
  289. if ((ds.Tables["City"] != null)) {
  290. base.Tables.Add(new CityDataTable(ds.Tables["City"]));
  291. }
  292. if ((ds.Tables["Manager"] != null)) {
  293. base.Tables.Add(new ManagerDataTable(ds.Tables["Manager"]));
  294. }
  295. if ((ds.Tables["Partner"] != null)) {
  296. base.Tables.Add(new PartnerDataTable(ds.Tables["Partner"]));
  297. }
  298. if ((ds.Tables["PartnerProducts"] != null)) {
  299. base.Tables.Add(new PartnerProductsDataTable(ds.Tables["PartnerProducts"]));
  300. }
  301. if ((ds.Tables["PostCode"] != null)) {
  302. base.Tables.Add(new PostCodeDataTable(ds.Tables["PostCode"]));
  303. }
  304. if ((ds.Tables["Product"] != null)) {
  305. base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
  306. }
  307. if ((ds.Tables["ProductType"] != null)) {
  308. base.Tables.Add(new ProductTypeDataTable(ds.Tables["ProductType"]));
  309. }
  310. if ((ds.Tables["Region"] != null)) {
  311. base.Tables.Add(new RegionDataTable(ds.Tables["Region"]));
  312. }
  313. if ((ds.Tables["Street"] != null)) {
  314. base.Tables.Add(new StreetDataTable(ds.Tables["Street"]));
  315. }
  316. if ((ds.Tables["TypeMaterial"] != null)) {
  317. base.Tables.Add(new TypeMaterialDataTable(ds.Tables["TypeMaterial"]));
  318. }
  319. if ((ds.Tables["TypePartner"] != null)) {
  320. base.Tables.Add(new TypePartnerDataTable(ds.Tables["TypePartner"]));
  321. }
  322. if ((ds.Tables["Type4Filter"] != null)) {
  323. base.Tables.Add(new Type4FilterDataTable(ds.Tables["Type4Filter"]));
  324. }
  325. this.DataSetName = ds.DataSetName;
  326. this.Prefix = ds.Prefix;
  327. this.Namespace = ds.Namespace;
  328. this.Locale = ds.Locale;
  329. this.CaseSensitive = ds.CaseSensitive;
  330. this.EnforceConstraints = ds.EnforceConstraints;
  331. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  332. this.InitVars();
  333. }
  334. else {
  335. this.ReadXml(reader);
  336. this.InitVars();
  337. }
  338. }
  339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  341. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  342. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  343. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  344. stream.Position = 0;
  345. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  346. }
  347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  349. internal void InitVars() {
  350. this.InitVars(true);
  351. }
  352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  354. internal void InitVars(bool initTable) {
  355. this.tableCity = ((CityDataTable)(base.Tables["City"]));
  356. if ((initTable == true)) {
  357. if ((this.tableCity != null)) {
  358. this.tableCity.InitVars();
  359. }
  360. }
  361. this.tableManager = ((ManagerDataTable)(base.Tables["Manager"]));
  362. if ((initTable == true)) {
  363. if ((this.tableManager != null)) {
  364. this.tableManager.InitVars();
  365. }
  366. }
  367. this.tablePartner = ((PartnerDataTable)(base.Tables["Partner"]));
  368. if ((initTable == true)) {
  369. if ((this.tablePartner != null)) {
  370. this.tablePartner.InitVars();
  371. }
  372. }
  373. this.tablePartnerProducts = ((PartnerProductsDataTable)(base.Tables["PartnerProducts"]));
  374. if ((initTable == true)) {
  375. if ((this.tablePartnerProducts != null)) {
  376. this.tablePartnerProducts.InitVars();
  377. }
  378. }
  379. this.tablePostCode = ((PostCodeDataTable)(base.Tables["PostCode"]));
  380. if ((initTable == true)) {
  381. if ((this.tablePostCode != null)) {
  382. this.tablePostCode.InitVars();
  383. }
  384. }
  385. this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
  386. if ((initTable == true)) {
  387. if ((this.tableProduct != null)) {
  388. this.tableProduct.InitVars();
  389. }
  390. }
  391. this.tableProductType = ((ProductTypeDataTable)(base.Tables["ProductType"]));
  392. if ((initTable == true)) {
  393. if ((this.tableProductType != null)) {
  394. this.tableProductType.InitVars();
  395. }
  396. }
  397. this.tableRegion = ((RegionDataTable)(base.Tables["Region"]));
  398. if ((initTable == true)) {
  399. if ((this.tableRegion != null)) {
  400. this.tableRegion.InitVars();
  401. }
  402. }
  403. this.tableStreet = ((StreetDataTable)(base.Tables["Street"]));
  404. if ((initTable == true)) {
  405. if ((this.tableStreet != null)) {
  406. this.tableStreet.InitVars();
  407. }
  408. }
  409. this.tableTypeMaterial = ((TypeMaterialDataTable)(base.Tables["TypeMaterial"]));
  410. if ((initTable == true)) {
  411. if ((this.tableTypeMaterial != null)) {
  412. this.tableTypeMaterial.InitVars();
  413. }
  414. }
  415. this.tableTypePartner = ((TypePartnerDataTable)(base.Tables["TypePartner"]));
  416. if ((initTable == true)) {
  417. if ((this.tableTypePartner != null)) {
  418. this.tableTypePartner.InitVars();
  419. }
  420. }
  421. this.tableType4Filter = ((Type4FilterDataTable)(base.Tables["Type4Filter"]));
  422. if ((initTable == true)) {
  423. if ((this.tableType4Filter != null)) {
  424. this.tableType4Filter.InitVars();
  425. }
  426. }
  427. this.relationFK_Partner_City = this.Relations["FK_Partner_City"];
  428. this.relationFK_Partner_PostCode = this.Relations["FK_Partner_PostCode"];
  429. this.relationFK_Partner_Region = this.Relations["FK_Partner_Region"];
  430. this.relationFK_Partner_Street = this.Relations["FK_Partner_Street"];
  431. this.relationFK_Partner_TypePartner = this.Relations["FK_Partner_TypePartner"];
  432. this.relationFK_PartnerProducts_Partner = this.Relations["FK_PartnerProducts_Partner"];
  433. this.relationFK_PartnerProducts_Product = this.Relations["FK_PartnerProducts_Product"];
  434. this.relationFK_Product_ProductType = this.Relations["FK_Product_ProductType"];
  435. }
  436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  438. private void InitClass() {
  439. this.DataSetName = "AlfafloorGDVDataSet";
  440. this.Prefix = "";
  441. this.Namespace = "http://tempuri.org/AlfafloorGDVDataSet.xsd";
  442. this.EnforceConstraints = true;
  443. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  444. this.tableCity = new CityDataTable();
  445. base.Tables.Add(this.tableCity);
  446. this.tableManager = new ManagerDataTable();
  447. base.Tables.Add(this.tableManager);
  448. this.tablePartner = new PartnerDataTable();
  449. base.Tables.Add(this.tablePartner);
  450. this.tablePartnerProducts = new PartnerProductsDataTable();
  451. base.Tables.Add(this.tablePartnerProducts);
  452. this.tablePostCode = new PostCodeDataTable();
  453. base.Tables.Add(this.tablePostCode);
  454. this.tableProduct = new ProductDataTable();
  455. base.Tables.Add(this.tableProduct);
  456. this.tableProductType = new ProductTypeDataTable();
  457. base.Tables.Add(this.tableProductType);
  458. this.tableRegion = new RegionDataTable();
  459. base.Tables.Add(this.tableRegion);
  460. this.tableStreet = new StreetDataTable();
  461. base.Tables.Add(this.tableStreet);
  462. this.tableTypeMaterial = new TypeMaterialDataTable();
  463. base.Tables.Add(this.tableTypeMaterial);
  464. this.tableTypePartner = new TypePartnerDataTable();
  465. base.Tables.Add(this.tableTypePartner);
  466. this.tableType4Filter = new Type4FilterDataTable();
  467. base.Tables.Add(this.tableType4Filter);
  468. this.relationFK_Partner_City = new global::System.Data.DataRelation("FK_Partner_City", new global::System.Data.DataColumn[] {
  469. this.tableCity.IDCityColumn}, new global::System.Data.DataColumn[] {
  470. this.tablePartner.IDCityColumn}, false);
  471. this.Relations.Add(this.relationFK_Partner_City);
  472. this.relationFK_Partner_PostCode = new global::System.Data.DataRelation("FK_Partner_PostCode", new global::System.Data.DataColumn[] {
  473. this.tablePostCode.IDPostCodeColumn}, new global::System.Data.DataColumn[] {
  474. this.tablePartner.IDPostCodeColumn}, false);
  475. this.Relations.Add(this.relationFK_Partner_PostCode);
  476. this.relationFK_Partner_Region = new global::System.Data.DataRelation("FK_Partner_Region", new global::System.Data.DataColumn[] {
  477. this.tableRegion.IDRegionColumn}, new global::System.Data.DataColumn[] {
  478. this.tablePartner.IDRegionColumn}, false);
  479. this.Relations.Add(this.relationFK_Partner_Region);
  480. this.relationFK_Partner_Street = new global::System.Data.DataRelation("FK_Partner_Street", new global::System.Data.DataColumn[] {
  481. this.tableStreet.IDStreetColumn}, new global::System.Data.DataColumn[] {
  482. this.tablePartner.IDStreetColumn}, false);
  483. this.Relations.Add(this.relationFK_Partner_Street);
  484. this.relationFK_Partner_TypePartner = new global::System.Data.DataRelation("FK_Partner_TypePartner", new global::System.Data.DataColumn[] {
  485. this.tableTypePartner.IDTypePartnerColumn}, new global::System.Data.DataColumn[] {
  486. this.tablePartner.IDTypePartnerColumn}, false);
  487. this.Relations.Add(this.relationFK_Partner_TypePartner);
  488. this.relationFK_PartnerProducts_Partner = new global::System.Data.DataRelation("FK_PartnerProducts_Partner", new global::System.Data.DataColumn[] {
  489. this.tablePartner.IDPartnerColumn}, new global::System.Data.DataColumn[] {
  490. this.tablePartnerProducts.IDPartnerColumn}, false);
  491. this.Relations.Add(this.relationFK_PartnerProducts_Partner);
  492. this.relationFK_PartnerProducts_Product = new global::System.Data.DataRelation("FK_PartnerProducts_Product", new global::System.Data.DataColumn[] {
  493. this.tableProduct.IDProductColumn}, new global::System.Data.DataColumn[] {
  494. this.tablePartnerProducts.IDProductColumn}, false);
  495. this.Relations.Add(this.relationFK_PartnerProducts_Product);
  496. this.relationFK_Product_ProductType = new global::System.Data.DataRelation("FK_Product_ProductType", new global::System.Data.DataColumn[] {
  497. this.tableProductType.IDProductTypeColumn}, new global::System.Data.DataColumn[] {
  498. this.tableProduct.IDProductTypeColumn}, false);
  499. this.Relations.Add(this.relationFK_Product_ProductType);
  500. }
  501. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  502. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  503. private bool ShouldSerializeCity() {
  504. return false;
  505. }
  506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  508. private bool ShouldSerializeManager() {
  509. return false;
  510. }
  511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  513. private bool ShouldSerializePartner() {
  514. return false;
  515. }
  516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  518. private bool ShouldSerializePartnerProducts() {
  519. return false;
  520. }
  521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  523. private bool ShouldSerializePostCode() {
  524. return false;
  525. }
  526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  528. private bool ShouldSerializeProduct() {
  529. return false;
  530. }
  531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  533. private bool ShouldSerializeProductType() {
  534. return false;
  535. }
  536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  538. private bool ShouldSerializeRegion() {
  539. return false;
  540. }
  541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  543. private bool ShouldSerializeStreet() {
  544. return false;
  545. }
  546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  548. private bool ShouldSerializeTypeMaterial() {
  549. return false;
  550. }
  551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  553. private bool ShouldSerializeTypePartner() {
  554. return false;
  555. }
  556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  558. private bool ShouldSerializeType4Filter() {
  559. return false;
  560. }
  561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  563. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  564. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  565. this.InitVars();
  566. }
  567. }
  568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  570. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  571. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  572. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  573. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  574. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  575. any.Namespace = ds.Namespace;
  576. sequence.Items.Add(any);
  577. type.Particle = sequence;
  578. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  579. if (xs.Contains(dsSchema.TargetNamespace)) {
  580. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  581. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  582. try {
  583. global::System.Xml.Schema.XmlSchema schema = null;
  584. dsSchema.Write(s1);
  585. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  586. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  587. s2.SetLength(0);
  588. schema.Write(s2);
  589. if ((s1.Length == s2.Length)) {
  590. s1.Position = 0;
  591. s2.Position = 0;
  592. for (; ((s1.Position != s1.Length)
  593. && (s1.ReadByte() == s2.ReadByte())); ) {
  594. ;
  595. }
  596. if ((s1.Position == s1.Length)) {
  597. return type;
  598. }
  599. }
  600. }
  601. }
  602. finally {
  603. if ((s1 != null)) {
  604. s1.Close();
  605. }
  606. if ((s2 != null)) {
  607. s2.Close();
  608. }
  609. }
  610. }
  611. xs.Add(dsSchema);
  612. return type;
  613. }
  614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  615. public delegate void CityRowChangeEventHandler(object sender, CityRowChangeEvent e);
  616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  617. public delegate void ManagerRowChangeEventHandler(object sender, ManagerRowChangeEvent e);
  618. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  619. public delegate void PartnerRowChangeEventHandler(object sender, PartnerRowChangeEvent e);
  620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  621. public delegate void PartnerProductsRowChangeEventHandler(object sender, PartnerProductsRowChangeEvent e);
  622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  623. public delegate void PostCodeRowChangeEventHandler(object sender, PostCodeRowChangeEvent e);
  624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  625. public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
  626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  627. public delegate void ProductTypeRowChangeEventHandler(object sender, ProductTypeRowChangeEvent e);
  628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  629. public delegate void RegionRowChangeEventHandler(object sender, RegionRowChangeEvent e);
  630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  631. public delegate void StreetRowChangeEventHandler(object sender, StreetRowChangeEvent e);
  632. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  633. public delegate void TypeMaterialRowChangeEventHandler(object sender, TypeMaterialRowChangeEvent e);
  634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  635. public delegate void TypePartnerRowChangeEventHandler(object sender, TypePartnerRowChangeEvent e);
  636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  637. public delegate void Type4FilterRowChangeEventHandler(object sender, Type4FilterRowChangeEvent e);
  638. /// <summary>
  639. ///Represents the strongly named DataTable class.
  640. ///</summary>
  641. [global::System.Serializable()]
  642. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  643. public partial class CityDataTable : global::System.Data.TypedTableBase<CityRow> {
  644. private global::System.Data.DataColumn columnIDCity;
  645. private global::System.Data.DataColumn columnCity;
  646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  648. public CityDataTable() {
  649. this.TableName = "City";
  650. this.BeginInit();
  651. this.InitClass();
  652. this.EndInit();
  653. }
  654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  656. internal CityDataTable(global::System.Data.DataTable table) {
  657. this.TableName = table.TableName;
  658. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  659. this.CaseSensitive = table.CaseSensitive;
  660. }
  661. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  662. this.Locale = table.Locale;
  663. }
  664. if ((table.Namespace != table.DataSet.Namespace)) {
  665. this.Namespace = table.Namespace;
  666. }
  667. this.Prefix = table.Prefix;
  668. this.MinimumCapacity = table.MinimumCapacity;
  669. }
  670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  672. protected CityDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  673. base(info, context) {
  674. this.InitVars();
  675. }
  676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  678. public global::System.Data.DataColumn IDCityColumn {
  679. get {
  680. return this.columnIDCity;
  681. }
  682. }
  683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  685. public global::System.Data.DataColumn CityColumn {
  686. get {
  687. return this.columnCity;
  688. }
  689. }
  690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  692. [global::System.ComponentModel.Browsable(false)]
  693. public int Count {
  694. get {
  695. return this.Rows.Count;
  696. }
  697. }
  698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  700. public CityRow this[int index] {
  701. get {
  702. return ((CityRow)(this.Rows[index]));
  703. }
  704. }
  705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  706. public event CityRowChangeEventHandler CityRowChanging;
  707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  708. public event CityRowChangeEventHandler CityRowChanged;
  709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  710. public event CityRowChangeEventHandler CityRowDeleting;
  711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  712. public event CityRowChangeEventHandler CityRowDeleted;
  713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  715. public void AddCityRow(CityRow row) {
  716. this.Rows.Add(row);
  717. }
  718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  720. public CityRow AddCityRow(string City) {
  721. CityRow rowCityRow = ((CityRow)(this.NewRow()));
  722. object[] columnValuesArray = new object[] {
  723. null,
  724. City};
  725. rowCityRow.ItemArray = columnValuesArray;
  726. this.Rows.Add(rowCityRow);
  727. return rowCityRow;
  728. }
  729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  731. public CityRow FindByIDCity(int IDCity) {
  732. return ((CityRow)(this.Rows.Find(new object[] {
  733. IDCity})));
  734. }
  735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  737. public override global::System.Data.DataTable Clone() {
  738. CityDataTable cln = ((CityDataTable)(base.Clone()));
  739. cln.InitVars();
  740. return cln;
  741. }
  742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  744. protected override global::System.Data.DataTable CreateInstance() {
  745. return new CityDataTable();
  746. }
  747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  749. internal void InitVars() {
  750. this.columnIDCity = base.Columns["IDCity"];
  751. this.columnCity = base.Columns["City"];
  752. }
  753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  755. private void InitClass() {
  756. this.columnIDCity = new global::System.Data.DataColumn("IDCity", typeof(int), null, global::System.Data.MappingType.Element);
  757. base.Columns.Add(this.columnIDCity);
  758. this.columnCity = new global::System.Data.DataColumn("City", typeof(string), null, global::System.Data.MappingType.Element);
  759. base.Columns.Add(this.columnCity);
  760. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  761. this.columnIDCity}, true));
  762. this.columnIDCity.AutoIncrement = true;
  763. this.columnIDCity.AutoIncrementSeed = -1;
  764. this.columnIDCity.AutoIncrementStep = -1;
  765. this.columnIDCity.AllowDBNull = false;
  766. this.columnIDCity.ReadOnly = true;
  767. this.columnIDCity.Unique = true;
  768. this.columnCity.MaxLength = 50;
  769. }
  770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  772. public CityRow NewCityRow() {
  773. return ((CityRow)(this.NewRow()));
  774. }
  775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  777. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  778. return new CityRow(builder);
  779. }
  780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  782. protected override global::System.Type GetRowType() {
  783. return typeof(CityRow);
  784. }
  785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  787. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  788. base.OnRowChanged(e);
  789. if ((this.CityRowChanged != null)) {
  790. this.CityRowChanged(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  791. }
  792. }
  793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  795. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  796. base.OnRowChanging(e);
  797. if ((this.CityRowChanging != null)) {
  798. this.CityRowChanging(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  799. }
  800. }
  801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  803. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  804. base.OnRowDeleted(e);
  805. if ((this.CityRowDeleted != null)) {
  806. this.CityRowDeleted(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  807. }
  808. }
  809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  811. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  812. base.OnRowDeleting(e);
  813. if ((this.CityRowDeleting != null)) {
  814. this.CityRowDeleting(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  815. }
  816. }
  817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  819. public void RemoveCityRow(CityRow row) {
  820. this.Rows.Remove(row);
  821. }
  822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  824. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  825. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  826. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  827. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  828. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  829. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  830. any1.MinOccurs = new decimal(0);
  831. any1.MaxOccurs = decimal.MaxValue;
  832. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  833. sequence.Items.Add(any1);
  834. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  835. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  836. any2.MinOccurs = new decimal(1);
  837. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  838. sequence.Items.Add(any2);
  839. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  840. attribute1.Name = "namespace";
  841. attribute1.FixedValue = ds.Namespace;
  842. type.Attributes.Add(attribute1);
  843. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  844. attribute2.Name = "tableTypeName";
  845. attribute2.FixedValue = "CityDataTable";
  846. type.Attributes.Add(attribute2);
  847. type.Particle = sequence;
  848. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  849. if (xs.Contains(dsSchema.TargetNamespace)) {
  850. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  851. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  852. try {
  853. global::System.Xml.Schema.XmlSchema schema = null;
  854. dsSchema.Write(s1);
  855. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  856. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  857. s2.SetLength(0);
  858. schema.Write(s2);
  859. if ((s1.Length == s2.Length)) {
  860. s1.Position = 0;
  861. s2.Position = 0;
  862. for (; ((s1.Position != s1.Length)
  863. && (s1.ReadByte() == s2.ReadByte())); ) {
  864. ;
  865. }
  866. if ((s1.Position == s1.Length)) {
  867. return type;
  868. }
  869. }
  870. }
  871. }
  872. finally {
  873. if ((s1 != null)) {
  874. s1.Close();
  875. }
  876. if ((s2 != null)) {
  877. s2.Close();
  878. }
  879. }
  880. }
  881. xs.Add(dsSchema);
  882. return type;
  883. }
  884. }
  885. /// <summary>
  886. ///Represents the strongly named DataTable class.
  887. ///</summary>
  888. [global::System.Serializable()]
  889. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  890. public partial class ManagerDataTable : global::System.Data.TypedTableBase<ManagerRow> {
  891. private global::System.Data.DataColumn columnIDManager;
  892. private global::System.Data.DataColumn columnSurname;
  893. private global::System.Data.DataColumn columnName;
  894. private global::System.Data.DataColumn columnPatronomyc;
  895. private global::System.Data.DataColumn columnLogin;
  896. private global::System.Data.DataColumn columnPassword;
  897. private global::System.Data.DataColumn columnPhoto;
  898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  900. public ManagerDataTable() {
  901. this.TableName = "Manager";
  902. this.BeginInit();
  903. this.InitClass();
  904. this.EndInit();
  905. }
  906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  908. internal ManagerDataTable(global::System.Data.DataTable table) {
  909. this.TableName = table.TableName;
  910. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  911. this.CaseSensitive = table.CaseSensitive;
  912. }
  913. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  914. this.Locale = table.Locale;
  915. }
  916. if ((table.Namespace != table.DataSet.Namespace)) {
  917. this.Namespace = table.Namespace;
  918. }
  919. this.Prefix = table.Prefix;
  920. this.MinimumCapacity = table.MinimumCapacity;
  921. }
  922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  924. protected ManagerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  925. base(info, context) {
  926. this.InitVars();
  927. }
  928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  930. public global::System.Data.DataColumn IDManagerColumn {
  931. get {
  932. return this.columnIDManager;
  933. }
  934. }
  935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  937. public global::System.Data.DataColumn SurnameColumn {
  938. get {
  939. return this.columnSurname;
  940. }
  941. }
  942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  944. public global::System.Data.DataColumn NameColumn {
  945. get {
  946. return this.columnName;
  947. }
  948. }
  949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  951. public global::System.Data.DataColumn PatronomycColumn {
  952. get {
  953. return this.columnPatronomyc;
  954. }
  955. }
  956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  958. public global::System.Data.DataColumn LoginColumn {
  959. get {
  960. return this.columnLogin;
  961. }
  962. }
  963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  965. public global::System.Data.DataColumn PasswordColumn {
  966. get {
  967. return this.columnPassword;
  968. }
  969. }
  970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  972. public global::System.Data.DataColumn PhotoColumn {
  973. get {
  974. return this.columnPhoto;
  975. }
  976. }
  977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  979. [global::System.ComponentModel.Browsable(false)]
  980. public int Count {
  981. get {
  982. return this.Rows.Count;
  983. }
  984. }
  985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  987. public ManagerRow this[int index] {
  988. get {
  989. return ((ManagerRow)(this.Rows[index]));
  990. }
  991. }
  992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  993. public event ManagerRowChangeEventHandler ManagerRowChanging;
  994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  995. public event ManagerRowChangeEventHandler ManagerRowChanged;
  996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  997. public event ManagerRowChangeEventHandler ManagerRowDeleting;
  998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  999. public event ManagerRowChangeEventHandler ManagerRowDeleted;
  1000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1002. public void AddManagerRow(ManagerRow row) {
  1003. this.Rows.Add(row);
  1004. }
  1005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1007. public ManagerRow AddManagerRow(string Surname, string Name, string Patronomyc, string Login, string Password, string Photo) {
  1008. ManagerRow rowManagerRow = ((ManagerRow)(this.NewRow()));
  1009. object[] columnValuesArray = new object[] {
  1010. null,
  1011. Surname,
  1012. Name,
  1013. Patronomyc,
  1014. Login,
  1015. Password,
  1016. Photo};
  1017. rowManagerRow.ItemArray = columnValuesArray;
  1018. this.Rows.Add(rowManagerRow);
  1019. return rowManagerRow;
  1020. }
  1021. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1023. public ManagerRow FindByIDManager(int IDManager) {
  1024. return ((ManagerRow)(this.Rows.Find(new object[] {
  1025. IDManager})));
  1026. }
  1027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1029. public override global::System.Data.DataTable Clone() {
  1030. ManagerDataTable cln = ((ManagerDataTable)(base.Clone()));
  1031. cln.InitVars();
  1032. return cln;
  1033. }
  1034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1036. protected override global::System.Data.DataTable CreateInstance() {
  1037. return new ManagerDataTable();
  1038. }
  1039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1041. internal void InitVars() {
  1042. this.columnIDManager = base.Columns["IDManager"];
  1043. this.columnSurname = base.Columns["Surname"];
  1044. this.columnName = base.Columns["Name"];
  1045. this.columnPatronomyc = base.Columns["Patronomyc"];
  1046. this.columnLogin = base.Columns["Login"];
  1047. this.columnPassword = base.Columns["Password"];
  1048. this.columnPhoto = base.Columns["Photo"];
  1049. }
  1050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1052. private void InitClass() {
  1053. this.columnIDManager = new global::System.Data.DataColumn("IDManager", typeof(int), null, global::System.Data.MappingType.Element);
  1054. base.Columns.Add(this.columnIDManager);
  1055. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  1056. base.Columns.Add(this.columnSurname);
  1057. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1058. base.Columns.Add(this.columnName);
  1059. this.columnPatronomyc = new global::System.Data.DataColumn("Patronomyc", typeof(string), null, global::System.Data.MappingType.Element);
  1060. base.Columns.Add(this.columnPatronomyc);
  1061. this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
  1062. base.Columns.Add(this.columnLogin);
  1063. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  1064. base.Columns.Add(this.columnPassword);
  1065. this.columnPhoto = new global::System.Data.DataColumn("Photo", typeof(string), null, global::System.Data.MappingType.Element);
  1066. base.Columns.Add(this.columnPhoto);
  1067. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1068. this.columnIDManager}, true));
  1069. this.columnIDManager.AutoIncrement = true;
  1070. this.columnIDManager.AutoIncrementSeed = -1;
  1071. this.columnIDManager.AutoIncrementStep = -1;
  1072. this.columnIDManager.AllowDBNull = false;
  1073. this.columnIDManager.ReadOnly = true;
  1074. this.columnIDManager.Unique = true;
  1075. this.columnSurname.MaxLength = 50;
  1076. this.columnName.MaxLength = 50;
  1077. this.columnPatronomyc.MaxLength = 50;
  1078. this.columnLogin.MaxLength = 50;
  1079. this.columnPassword.MaxLength = 50;
  1080. this.columnPhoto.MaxLength = 255;
  1081. }
  1082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1084. public ManagerRow NewManagerRow() {
  1085. return ((ManagerRow)(this.NewRow()));
  1086. }
  1087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1089. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1090. return new ManagerRow(builder);
  1091. }
  1092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1094. protected override global::System.Type GetRowType() {
  1095. return typeof(ManagerRow);
  1096. }
  1097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1099. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1100. base.OnRowChanged(e);
  1101. if ((this.ManagerRowChanged != null)) {
  1102. this.ManagerRowChanged(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1103. }
  1104. }
  1105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1107. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1108. base.OnRowChanging(e);
  1109. if ((this.ManagerRowChanging != null)) {
  1110. this.ManagerRowChanging(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1111. }
  1112. }
  1113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1115. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1116. base.OnRowDeleted(e);
  1117. if ((this.ManagerRowDeleted != null)) {
  1118. this.ManagerRowDeleted(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1119. }
  1120. }
  1121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1123. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1124. base.OnRowDeleting(e);
  1125. if ((this.ManagerRowDeleting != null)) {
  1126. this.ManagerRowDeleting(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1127. }
  1128. }
  1129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1131. public void RemoveManagerRow(ManagerRow row) {
  1132. this.Rows.Remove(row);
  1133. }
  1134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1136. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1137. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1138. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1139. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  1140. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1141. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1142. any1.MinOccurs = new decimal(0);
  1143. any1.MaxOccurs = decimal.MaxValue;
  1144. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1145. sequence.Items.Add(any1);
  1146. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1147. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1148. any2.MinOccurs = new decimal(1);
  1149. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1150. sequence.Items.Add(any2);
  1151. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1152. attribute1.Name = "namespace";
  1153. attribute1.FixedValue = ds.Namespace;
  1154. type.Attributes.Add(attribute1);
  1155. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1156. attribute2.Name = "tableTypeName";
  1157. attribute2.FixedValue = "ManagerDataTable";
  1158. type.Attributes.Add(attribute2);
  1159. type.Particle = sequence;
  1160. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1161. if (xs.Contains(dsSchema.TargetNamespace)) {
  1162. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1163. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1164. try {
  1165. global::System.Xml.Schema.XmlSchema schema = null;
  1166. dsSchema.Write(s1);
  1167. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1168. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1169. s2.SetLength(0);
  1170. schema.Write(s2);
  1171. if ((s1.Length == s2.Length)) {
  1172. s1.Position = 0;
  1173. s2.Position = 0;
  1174. for (; ((s1.Position != s1.Length)
  1175. && (s1.ReadByte() == s2.ReadByte())); ) {
  1176. ;
  1177. }
  1178. if ((s1.Position == s1.Length)) {
  1179. return type;
  1180. }
  1181. }
  1182. }
  1183. }
  1184. finally {
  1185. if ((s1 != null)) {
  1186. s1.Close();
  1187. }
  1188. if ((s2 != null)) {
  1189. s2.Close();
  1190. }
  1191. }
  1192. }
  1193. xs.Add(dsSchema);
  1194. return type;
  1195. }
  1196. }
  1197. /// <summary>
  1198. ///Represents the strongly named DataTable class.
  1199. ///</summary>
  1200. [global::System.Serializable()]
  1201. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1202. public partial class PartnerDataTable : global::System.Data.TypedTableBase<PartnerRow> {
  1203. private global::System.Data.DataColumn columnIDPartner;
  1204. private global::System.Data.DataColumn columnIDTypePartner;
  1205. private global::System.Data.DataColumn columnNamepartner;
  1206. private global::System.Data.DataColumn columnSurname;
  1207. private global::System.Data.DataColumn columnName;
  1208. private global::System.Data.DataColumn columnPatronomyc;
  1209. private global::System.Data.DataColumn columnEmail;
  1210. private global::System.Data.DataColumn columnPhone;
  1211. private global::System.Data.DataColumn columnIDPostCode;
  1212. private global::System.Data.DataColumn columnIDRegion;
  1213. private global::System.Data.DataColumn columnIDCity;
  1214. private global::System.Data.DataColumn columnIDStreet;
  1215. private global::System.Data.DataColumn columnHouse;
  1216. private global::System.Data.DataColumn columnINN;
  1217. private global::System.Data.DataColumn columnRating;
  1218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1220. public PartnerDataTable() {
  1221. this.TableName = "Partner";
  1222. this.BeginInit();
  1223. this.InitClass();
  1224. this.EndInit();
  1225. }
  1226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1228. internal PartnerDataTable(global::System.Data.DataTable table) {
  1229. this.TableName = table.TableName;
  1230. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1231. this.CaseSensitive = table.CaseSensitive;
  1232. }
  1233. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1234. this.Locale = table.Locale;
  1235. }
  1236. if ((table.Namespace != table.DataSet.Namespace)) {
  1237. this.Namespace = table.Namespace;
  1238. }
  1239. this.Prefix = table.Prefix;
  1240. this.MinimumCapacity = table.MinimumCapacity;
  1241. }
  1242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1244. protected PartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1245. base(info, context) {
  1246. this.InitVars();
  1247. }
  1248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1250. public global::System.Data.DataColumn IDPartnerColumn {
  1251. get {
  1252. return this.columnIDPartner;
  1253. }
  1254. }
  1255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1257. public global::System.Data.DataColumn IDTypePartnerColumn {
  1258. get {
  1259. return this.columnIDTypePartner;
  1260. }
  1261. }
  1262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1264. public global::System.Data.DataColumn NamepartnerColumn {
  1265. get {
  1266. return this.columnNamepartner;
  1267. }
  1268. }
  1269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1271. public global::System.Data.DataColumn SurnameColumn {
  1272. get {
  1273. return this.columnSurname;
  1274. }
  1275. }
  1276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1278. public global::System.Data.DataColumn NameColumn {
  1279. get {
  1280. return this.columnName;
  1281. }
  1282. }
  1283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1285. public global::System.Data.DataColumn PatronomycColumn {
  1286. get {
  1287. return this.columnPatronomyc;
  1288. }
  1289. }
  1290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1292. public global::System.Data.DataColumn EmailColumn {
  1293. get {
  1294. return this.columnEmail;
  1295. }
  1296. }
  1297. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1298. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1299. public global::System.Data.DataColumn PhoneColumn {
  1300. get {
  1301. return this.columnPhone;
  1302. }
  1303. }
  1304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1306. public global::System.Data.DataColumn IDPostCodeColumn {
  1307. get {
  1308. return this.columnIDPostCode;
  1309. }
  1310. }
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1313. public global::System.Data.DataColumn IDRegionColumn {
  1314. get {
  1315. return this.columnIDRegion;
  1316. }
  1317. }
  1318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1320. public global::System.Data.DataColumn IDCityColumn {
  1321. get {
  1322. return this.columnIDCity;
  1323. }
  1324. }
  1325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1327. public global::System.Data.DataColumn IDStreetColumn {
  1328. get {
  1329. return this.columnIDStreet;
  1330. }
  1331. }
  1332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1334. public global::System.Data.DataColumn HouseColumn {
  1335. get {
  1336. return this.columnHouse;
  1337. }
  1338. }
  1339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1341. public global::System.Data.DataColumn INNColumn {
  1342. get {
  1343. return this.columnINN;
  1344. }
  1345. }
  1346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1348. public global::System.Data.DataColumn RatingColumn {
  1349. get {
  1350. return this.columnRating;
  1351. }
  1352. }
  1353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1355. [global::System.ComponentModel.Browsable(false)]
  1356. public int Count {
  1357. get {
  1358. return this.Rows.Count;
  1359. }
  1360. }
  1361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1363. public PartnerRow this[int index] {
  1364. get {
  1365. return ((PartnerRow)(this.Rows[index]));
  1366. }
  1367. }
  1368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1369. public event PartnerRowChangeEventHandler PartnerRowChanging;
  1370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1371. public event PartnerRowChangeEventHandler PartnerRowChanged;
  1372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1373. public event PartnerRowChangeEventHandler PartnerRowDeleting;
  1374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1375. public event PartnerRowChangeEventHandler PartnerRowDeleted;
  1376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1378. public void AddPartnerRow(PartnerRow row) {
  1379. this.Rows.Add(row);
  1380. }
  1381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1383. public PartnerRow AddPartnerRow(TypePartnerRow parentTypePartnerRowByFK_Partner_TypePartner, string Namepartner, string Surname, string Name, string Patronomyc, string Email, string Phone, PostCodeRow parentPostCodeRowByFK_Partner_PostCode, RegionRow parentRegionRowByFK_Partner_Region, CityRow parentCityRowByFK_Partner_City, StreetRow parentStreetRowByFK_Partner_Street, int House, string INN, int Rating) {
  1384. PartnerRow rowPartnerRow = ((PartnerRow)(this.NewRow()));
  1385. object[] columnValuesArray = new object[] {
  1386. null,
  1387. null,
  1388. Namepartner,
  1389. Surname,
  1390. Name,
  1391. Patronomyc,
  1392. Email,
  1393. Phone,
  1394. null,
  1395. null,
  1396. null,
  1397. null,
  1398. House,
  1399. INN,
  1400. Rating};
  1401. if ((parentTypePartnerRowByFK_Partner_TypePartner != null)) {
  1402. columnValuesArray[1] = parentTypePartnerRowByFK_Partner_TypePartner[0];
  1403. }
  1404. if ((parentPostCodeRowByFK_Partner_PostCode != null)) {
  1405. columnValuesArray[8] = parentPostCodeRowByFK_Partner_PostCode[0];
  1406. }
  1407. if ((parentRegionRowByFK_Partner_Region != null)) {
  1408. columnValuesArray[9] = parentRegionRowByFK_Partner_Region[0];
  1409. }
  1410. if ((parentCityRowByFK_Partner_City != null)) {
  1411. columnValuesArray[10] = parentCityRowByFK_Partner_City[0];
  1412. }
  1413. if ((parentStreetRowByFK_Partner_Street != null)) {
  1414. columnValuesArray[11] = parentStreetRowByFK_Partner_Street[0];
  1415. }
  1416. rowPartnerRow.ItemArray = columnValuesArray;
  1417. this.Rows.Add(rowPartnerRow);
  1418. return rowPartnerRow;
  1419. }
  1420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1422. public PartnerRow FindByIDPartner(int IDPartner) {
  1423. return ((PartnerRow)(this.Rows.Find(new object[] {
  1424. IDPartner})));
  1425. }
  1426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1428. public override global::System.Data.DataTable Clone() {
  1429. PartnerDataTable cln = ((PartnerDataTable)(base.Clone()));
  1430. cln.InitVars();
  1431. return cln;
  1432. }
  1433. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1434. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1435. protected override global::System.Data.DataTable CreateInstance() {
  1436. return new PartnerDataTable();
  1437. }
  1438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1440. internal void InitVars() {
  1441. this.columnIDPartner = base.Columns["IDPartner"];
  1442. this.columnIDTypePartner = base.Columns["IDTypePartner"];
  1443. this.columnNamepartner = base.Columns["Namepartner"];
  1444. this.columnSurname = base.Columns["Surname"];
  1445. this.columnName = base.Columns["Name"];
  1446. this.columnPatronomyc = base.Columns["Patronomyc"];
  1447. this.columnEmail = base.Columns["Email"];
  1448. this.columnPhone = base.Columns["Phone"];
  1449. this.columnIDPostCode = base.Columns["IDPostCode"];
  1450. this.columnIDRegion = base.Columns["IDRegion"];
  1451. this.columnIDCity = base.Columns["IDCity"];
  1452. this.columnIDStreet = base.Columns["IDStreet"];
  1453. this.columnHouse = base.Columns["House"];
  1454. this.columnINN = base.Columns["INN"];
  1455. this.columnRating = base.Columns["Rating"];
  1456. }
  1457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1459. private void InitClass() {
  1460. this.columnIDPartner = new global::System.Data.DataColumn("IDPartner", typeof(int), null, global::System.Data.MappingType.Element);
  1461. base.Columns.Add(this.columnIDPartner);
  1462. this.columnIDTypePartner = new global::System.Data.DataColumn("IDTypePartner", typeof(int), null, global::System.Data.MappingType.Element);
  1463. base.Columns.Add(this.columnIDTypePartner);
  1464. this.columnNamepartner = new global::System.Data.DataColumn("Namepartner", typeof(string), null, global::System.Data.MappingType.Element);
  1465. base.Columns.Add(this.columnNamepartner);
  1466. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  1467. base.Columns.Add(this.columnSurname);
  1468. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1469. base.Columns.Add(this.columnName);
  1470. this.columnPatronomyc = new global::System.Data.DataColumn("Patronomyc", typeof(string), null, global::System.Data.MappingType.Element);
  1471. base.Columns.Add(this.columnPatronomyc);
  1472. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1473. base.Columns.Add(this.columnEmail);
  1474. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1475. base.Columns.Add(this.columnPhone);
  1476. this.columnIDPostCode = new global::System.Data.DataColumn("IDPostCode", typeof(int), null, global::System.Data.MappingType.Element);
  1477. base.Columns.Add(this.columnIDPostCode);
  1478. this.columnIDRegion = new global::System.Data.DataColumn("IDRegion", typeof(int), null, global::System.Data.MappingType.Element);
  1479. base.Columns.Add(this.columnIDRegion);
  1480. this.columnIDCity = new global::System.Data.DataColumn("IDCity", typeof(int), null, global::System.Data.MappingType.Element);
  1481. base.Columns.Add(this.columnIDCity);
  1482. this.columnIDStreet = new global::System.Data.DataColumn("IDStreet", typeof(int), null, global::System.Data.MappingType.Element);
  1483. base.Columns.Add(this.columnIDStreet);
  1484. this.columnHouse = new global::System.Data.DataColumn("House", typeof(int), null, global::System.Data.MappingType.Element);
  1485. base.Columns.Add(this.columnHouse);
  1486. this.columnINN = new global::System.Data.DataColumn("INN", typeof(string), null, global::System.Data.MappingType.Element);
  1487. base.Columns.Add(this.columnINN);
  1488. this.columnRating = new global::System.Data.DataColumn("Rating", typeof(int), null, global::System.Data.MappingType.Element);
  1489. base.Columns.Add(this.columnRating);
  1490. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1491. this.columnIDPartner}, true));
  1492. this.columnIDPartner.AutoIncrement = true;
  1493. this.columnIDPartner.AutoIncrementSeed = -1;
  1494. this.columnIDPartner.AutoIncrementStep = -1;
  1495. this.columnIDPartner.AllowDBNull = false;
  1496. this.columnIDPartner.ReadOnly = true;
  1497. this.columnIDPartner.Unique = true;
  1498. this.columnIDTypePartner.AllowDBNull = false;
  1499. this.columnNamepartner.MaxLength = 150;
  1500. this.columnSurname.MaxLength = 50;
  1501. this.columnName.MaxLength = 50;
  1502. this.columnPatronomyc.MaxLength = 50;
  1503. this.columnEmail.MaxLength = 50;
  1504. this.columnPhone.MaxLength = 50;
  1505. this.columnINN.MaxLength = 50;
  1506. }
  1507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1509. public PartnerRow NewPartnerRow() {
  1510. return ((PartnerRow)(this.NewRow()));
  1511. }
  1512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1514. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1515. return new PartnerRow(builder);
  1516. }
  1517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1519. protected override global::System.Type GetRowType() {
  1520. return typeof(PartnerRow);
  1521. }
  1522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1524. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1525. base.OnRowChanged(e);
  1526. if ((this.PartnerRowChanged != null)) {
  1527. this.PartnerRowChanged(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1528. }
  1529. }
  1530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1532. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1533. base.OnRowChanging(e);
  1534. if ((this.PartnerRowChanging != null)) {
  1535. this.PartnerRowChanging(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1536. }
  1537. }
  1538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1540. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1541. base.OnRowDeleted(e);
  1542. if ((this.PartnerRowDeleted != null)) {
  1543. this.PartnerRowDeleted(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1544. }
  1545. }
  1546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1548. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1549. base.OnRowDeleting(e);
  1550. if ((this.PartnerRowDeleting != null)) {
  1551. this.PartnerRowDeleting(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1552. }
  1553. }
  1554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1556. public void RemovePartnerRow(PartnerRow row) {
  1557. this.Rows.Remove(row);
  1558. }
  1559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1561. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1562. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1563. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1564. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  1565. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1566. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1567. any1.MinOccurs = new decimal(0);
  1568. any1.MaxOccurs = decimal.MaxValue;
  1569. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1570. sequence.Items.Add(any1);
  1571. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1572. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1573. any2.MinOccurs = new decimal(1);
  1574. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1575. sequence.Items.Add(any2);
  1576. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1577. attribute1.Name = "namespace";
  1578. attribute1.FixedValue = ds.Namespace;
  1579. type.Attributes.Add(attribute1);
  1580. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1581. attribute2.Name = "tableTypeName";
  1582. attribute2.FixedValue = "PartnerDataTable";
  1583. type.Attributes.Add(attribute2);
  1584. type.Particle = sequence;
  1585. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1586. if (xs.Contains(dsSchema.TargetNamespace)) {
  1587. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1588. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1589. try {
  1590. global::System.Xml.Schema.XmlSchema schema = null;
  1591. dsSchema.Write(s1);
  1592. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1593. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1594. s2.SetLength(0);
  1595. schema.Write(s2);
  1596. if ((s1.Length == s2.Length)) {
  1597. s1.Position = 0;
  1598. s2.Position = 0;
  1599. for (; ((s1.Position != s1.Length)
  1600. && (s1.ReadByte() == s2.ReadByte())); ) {
  1601. ;
  1602. }
  1603. if ((s1.Position == s1.Length)) {
  1604. return type;
  1605. }
  1606. }
  1607. }
  1608. }
  1609. finally {
  1610. if ((s1 != null)) {
  1611. s1.Close();
  1612. }
  1613. if ((s2 != null)) {
  1614. s2.Close();
  1615. }
  1616. }
  1617. }
  1618. xs.Add(dsSchema);
  1619. return type;
  1620. }
  1621. }
  1622. /// <summary>
  1623. ///Represents the strongly named DataTable class.
  1624. ///</summary>
  1625. [global::System.Serializable()]
  1626. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1627. public partial class PartnerProductsDataTable : global::System.Data.TypedTableBase<PartnerProductsRow> {
  1628. private global::System.Data.DataColumn columnIDPartnerProduct;
  1629. private global::System.Data.DataColumn columnIDProduct;
  1630. private global::System.Data.DataColumn columnIDPartner;
  1631. private global::System.Data.DataColumn columnCountProduct;
  1632. private global::System.Data.DataColumn columnDateSale;
  1633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1635. public PartnerProductsDataTable() {
  1636. this.TableName = "PartnerProducts";
  1637. this.BeginInit();
  1638. this.InitClass();
  1639. this.EndInit();
  1640. }
  1641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1643. internal PartnerProductsDataTable(global::System.Data.DataTable table) {
  1644. this.TableName = table.TableName;
  1645. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1646. this.CaseSensitive = table.CaseSensitive;
  1647. }
  1648. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1649. this.Locale = table.Locale;
  1650. }
  1651. if ((table.Namespace != table.DataSet.Namespace)) {
  1652. this.Namespace = table.Namespace;
  1653. }
  1654. this.Prefix = table.Prefix;
  1655. this.MinimumCapacity = table.MinimumCapacity;
  1656. }
  1657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1659. protected PartnerProductsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1660. base(info, context) {
  1661. this.InitVars();
  1662. }
  1663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1665. public global::System.Data.DataColumn IDPartnerProductColumn {
  1666. get {
  1667. return this.columnIDPartnerProduct;
  1668. }
  1669. }
  1670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1672. public global::System.Data.DataColumn IDProductColumn {
  1673. get {
  1674. return this.columnIDProduct;
  1675. }
  1676. }
  1677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1679. public global::System.Data.DataColumn IDPartnerColumn {
  1680. get {
  1681. return this.columnIDPartner;
  1682. }
  1683. }
  1684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1686. public global::System.Data.DataColumn CountProductColumn {
  1687. get {
  1688. return this.columnCountProduct;
  1689. }
  1690. }
  1691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1693. public global::System.Data.DataColumn DateSaleColumn {
  1694. get {
  1695. return this.columnDateSale;
  1696. }
  1697. }
  1698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1700. [global::System.ComponentModel.Browsable(false)]
  1701. public int Count {
  1702. get {
  1703. return this.Rows.Count;
  1704. }
  1705. }
  1706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1708. public PartnerProductsRow this[int index] {
  1709. get {
  1710. return ((PartnerProductsRow)(this.Rows[index]));
  1711. }
  1712. }
  1713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1714. public event PartnerProductsRowChangeEventHandler PartnerProductsRowChanging;
  1715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1716. public event PartnerProductsRowChangeEventHandler PartnerProductsRowChanged;
  1717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1718. public event PartnerProductsRowChangeEventHandler PartnerProductsRowDeleting;
  1719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1720. public event PartnerProductsRowChangeEventHandler PartnerProductsRowDeleted;
  1721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1723. public void AddPartnerProductsRow(PartnerProductsRow row) {
  1724. this.Rows.Add(row);
  1725. }
  1726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1728. public PartnerProductsRow AddPartnerProductsRow(ProductRow parentProductRowByFK_PartnerProducts_Product, PartnerRow parentPartnerRowByFK_PartnerProducts_Partner, int CountProduct, System.DateTime DateSale) {
  1729. PartnerProductsRow rowPartnerProductsRow = ((PartnerProductsRow)(this.NewRow()));
  1730. object[] columnValuesArray = new object[] {
  1731. null,
  1732. null,
  1733. null,
  1734. CountProduct,
  1735. DateSale};
  1736. if ((parentProductRowByFK_PartnerProducts_Product != null)) {
  1737. columnValuesArray[1] = parentProductRowByFK_PartnerProducts_Product[0];
  1738. }
  1739. if ((parentPartnerRowByFK_PartnerProducts_Partner != null)) {
  1740. columnValuesArray[2] = parentPartnerRowByFK_PartnerProducts_Partner[0];
  1741. }
  1742. rowPartnerProductsRow.ItemArray = columnValuesArray;
  1743. this.Rows.Add(rowPartnerProductsRow);
  1744. return rowPartnerProductsRow;
  1745. }
  1746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1748. public PartnerProductsRow FindByIDPartnerProduct(int IDPartnerProduct) {
  1749. return ((PartnerProductsRow)(this.Rows.Find(new object[] {
  1750. IDPartnerProduct})));
  1751. }
  1752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1754. public override global::System.Data.DataTable Clone() {
  1755. PartnerProductsDataTable cln = ((PartnerProductsDataTable)(base.Clone()));
  1756. cln.InitVars();
  1757. return cln;
  1758. }
  1759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1761. protected override global::System.Data.DataTable CreateInstance() {
  1762. return new PartnerProductsDataTable();
  1763. }
  1764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1766. internal void InitVars() {
  1767. this.columnIDPartnerProduct = base.Columns["IDPartnerProduct"];
  1768. this.columnIDProduct = base.Columns["IDProduct"];
  1769. this.columnIDPartner = base.Columns["IDPartner"];
  1770. this.columnCountProduct = base.Columns["CountProduct"];
  1771. this.columnDateSale = base.Columns["DateSale"];
  1772. }
  1773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1774. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1775. private void InitClass() {
  1776. this.columnIDPartnerProduct = new global::System.Data.DataColumn("IDPartnerProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1777. base.Columns.Add(this.columnIDPartnerProduct);
  1778. this.columnIDProduct = new global::System.Data.DataColumn("IDProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1779. base.Columns.Add(this.columnIDProduct);
  1780. this.columnIDPartner = new global::System.Data.DataColumn("IDPartner", typeof(int), null, global::System.Data.MappingType.Element);
  1781. base.Columns.Add(this.columnIDPartner);
  1782. this.columnCountProduct = new global::System.Data.DataColumn("CountProduct", typeof(int), null, global::System.Data.MappingType.Element);
  1783. base.Columns.Add(this.columnCountProduct);
  1784. this.columnDateSale = new global::System.Data.DataColumn("DateSale", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  1785. base.Columns.Add(this.columnDateSale);
  1786. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1787. this.columnIDPartnerProduct}, true));
  1788. this.columnIDPartnerProduct.AutoIncrement = true;
  1789. this.columnIDPartnerProduct.AutoIncrementSeed = -1;
  1790. this.columnIDPartnerProduct.AutoIncrementStep = -1;
  1791. this.columnIDPartnerProduct.AllowDBNull = false;
  1792. this.columnIDPartnerProduct.ReadOnly = true;
  1793. this.columnIDPartnerProduct.Unique = true;
  1794. }
  1795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1797. public PartnerProductsRow NewPartnerProductsRow() {
  1798. return ((PartnerProductsRow)(this.NewRow()));
  1799. }
  1800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1802. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1803. return new PartnerProductsRow(builder);
  1804. }
  1805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1807. protected override global::System.Type GetRowType() {
  1808. return typeof(PartnerProductsRow);
  1809. }
  1810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1812. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1813. base.OnRowChanged(e);
  1814. if ((this.PartnerProductsRowChanged != null)) {
  1815. this.PartnerProductsRowChanged(this, new PartnerProductsRowChangeEvent(((PartnerProductsRow)(e.Row)), e.Action));
  1816. }
  1817. }
  1818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1820. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1821. base.OnRowChanging(e);
  1822. if ((this.PartnerProductsRowChanging != null)) {
  1823. this.PartnerProductsRowChanging(this, new PartnerProductsRowChangeEvent(((PartnerProductsRow)(e.Row)), e.Action));
  1824. }
  1825. }
  1826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1828. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1829. base.OnRowDeleted(e);
  1830. if ((this.PartnerProductsRowDeleted != null)) {
  1831. this.PartnerProductsRowDeleted(this, new PartnerProductsRowChangeEvent(((PartnerProductsRow)(e.Row)), e.Action));
  1832. }
  1833. }
  1834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1836. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1837. base.OnRowDeleting(e);
  1838. if ((this.PartnerProductsRowDeleting != null)) {
  1839. this.PartnerProductsRowDeleting(this, new PartnerProductsRowChangeEvent(((PartnerProductsRow)(e.Row)), e.Action));
  1840. }
  1841. }
  1842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1844. public void RemovePartnerProductsRow(PartnerProductsRow row) {
  1845. this.Rows.Remove(row);
  1846. }
  1847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1849. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1850. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1851. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1852. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  1853. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1854. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1855. any1.MinOccurs = new decimal(0);
  1856. any1.MaxOccurs = decimal.MaxValue;
  1857. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1858. sequence.Items.Add(any1);
  1859. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1860. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1861. any2.MinOccurs = new decimal(1);
  1862. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1863. sequence.Items.Add(any2);
  1864. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1865. attribute1.Name = "namespace";
  1866. attribute1.FixedValue = ds.Namespace;
  1867. type.Attributes.Add(attribute1);
  1868. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1869. attribute2.Name = "tableTypeName";
  1870. attribute2.FixedValue = "PartnerProductsDataTable";
  1871. type.Attributes.Add(attribute2);
  1872. type.Particle = sequence;
  1873. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1874. if (xs.Contains(dsSchema.TargetNamespace)) {
  1875. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1876. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1877. try {
  1878. global::System.Xml.Schema.XmlSchema schema = null;
  1879. dsSchema.Write(s1);
  1880. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1881. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1882. s2.SetLength(0);
  1883. schema.Write(s2);
  1884. if ((s1.Length == s2.Length)) {
  1885. s1.Position = 0;
  1886. s2.Position = 0;
  1887. for (; ((s1.Position != s1.Length)
  1888. && (s1.ReadByte() == s2.ReadByte())); ) {
  1889. ;
  1890. }
  1891. if ((s1.Position == s1.Length)) {
  1892. return type;
  1893. }
  1894. }
  1895. }
  1896. }
  1897. finally {
  1898. if ((s1 != null)) {
  1899. s1.Close();
  1900. }
  1901. if ((s2 != null)) {
  1902. s2.Close();
  1903. }
  1904. }
  1905. }
  1906. xs.Add(dsSchema);
  1907. return type;
  1908. }
  1909. }
  1910. /// <summary>
  1911. ///Represents the strongly named DataTable class.
  1912. ///</summary>
  1913. [global::System.Serializable()]
  1914. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1915. public partial class PostCodeDataTable : global::System.Data.TypedTableBase<PostCodeRow> {
  1916. private global::System.Data.DataColumn columnIDPostCode;
  1917. private global::System.Data.DataColumn columnPostCode;
  1918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1920. public PostCodeDataTable() {
  1921. this.TableName = "PostCode";
  1922. this.BeginInit();
  1923. this.InitClass();
  1924. this.EndInit();
  1925. }
  1926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1927. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1928. internal PostCodeDataTable(global::System.Data.DataTable table) {
  1929. this.TableName = table.TableName;
  1930. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1931. this.CaseSensitive = table.CaseSensitive;
  1932. }
  1933. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1934. this.Locale = table.Locale;
  1935. }
  1936. if ((table.Namespace != table.DataSet.Namespace)) {
  1937. this.Namespace = table.Namespace;
  1938. }
  1939. this.Prefix = table.Prefix;
  1940. this.MinimumCapacity = table.MinimumCapacity;
  1941. }
  1942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1944. protected PostCodeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1945. base(info, context) {
  1946. this.InitVars();
  1947. }
  1948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1950. public global::System.Data.DataColumn IDPostCodeColumn {
  1951. get {
  1952. return this.columnIDPostCode;
  1953. }
  1954. }
  1955. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1956. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1957. public global::System.Data.DataColumn PostCodeColumn {
  1958. get {
  1959. return this.columnPostCode;
  1960. }
  1961. }
  1962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1964. [global::System.ComponentModel.Browsable(false)]
  1965. public int Count {
  1966. get {
  1967. return this.Rows.Count;
  1968. }
  1969. }
  1970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1972. public PostCodeRow this[int index] {
  1973. get {
  1974. return ((PostCodeRow)(this.Rows[index]));
  1975. }
  1976. }
  1977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1978. public event PostCodeRowChangeEventHandler PostCodeRowChanging;
  1979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1980. public event PostCodeRowChangeEventHandler PostCodeRowChanged;
  1981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1982. public event PostCodeRowChangeEventHandler PostCodeRowDeleting;
  1983. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1984. public event PostCodeRowChangeEventHandler PostCodeRowDeleted;
  1985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1987. public void AddPostCodeRow(PostCodeRow row) {
  1988. this.Rows.Add(row);
  1989. }
  1990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1992. public PostCodeRow AddPostCodeRow(int PostCode) {
  1993. PostCodeRow rowPostCodeRow = ((PostCodeRow)(this.NewRow()));
  1994. object[] columnValuesArray = new object[] {
  1995. null,
  1996. PostCode};
  1997. rowPostCodeRow.ItemArray = columnValuesArray;
  1998. this.Rows.Add(rowPostCodeRow);
  1999. return rowPostCodeRow;
  2000. }
  2001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2003. public PostCodeRow FindByIDPostCode(int IDPostCode) {
  2004. return ((PostCodeRow)(this.Rows.Find(new object[] {
  2005. IDPostCode})));
  2006. }
  2007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2009. public override global::System.Data.DataTable Clone() {
  2010. PostCodeDataTable cln = ((PostCodeDataTable)(base.Clone()));
  2011. cln.InitVars();
  2012. return cln;
  2013. }
  2014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2016. protected override global::System.Data.DataTable CreateInstance() {
  2017. return new PostCodeDataTable();
  2018. }
  2019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2021. internal void InitVars() {
  2022. this.columnIDPostCode = base.Columns["IDPostCode"];
  2023. this.columnPostCode = base.Columns["PostCode"];
  2024. }
  2025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2027. private void InitClass() {
  2028. this.columnIDPostCode = new global::System.Data.DataColumn("IDPostCode", typeof(int), null, global::System.Data.MappingType.Element);
  2029. base.Columns.Add(this.columnIDPostCode);
  2030. this.columnPostCode = new global::System.Data.DataColumn("PostCode", typeof(int), null, global::System.Data.MappingType.Element);
  2031. base.Columns.Add(this.columnPostCode);
  2032. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2033. this.columnIDPostCode}, true));
  2034. this.columnIDPostCode.AutoIncrement = true;
  2035. this.columnIDPostCode.AutoIncrementSeed = -1;
  2036. this.columnIDPostCode.AutoIncrementStep = -1;
  2037. this.columnIDPostCode.AllowDBNull = false;
  2038. this.columnIDPostCode.ReadOnly = true;
  2039. this.columnIDPostCode.Unique = true;
  2040. }
  2041. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2042. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2043. public PostCodeRow NewPostCodeRow() {
  2044. return ((PostCodeRow)(this.NewRow()));
  2045. }
  2046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2048. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2049. return new PostCodeRow(builder);
  2050. }
  2051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2053. protected override global::System.Type GetRowType() {
  2054. return typeof(PostCodeRow);
  2055. }
  2056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2058. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2059. base.OnRowChanged(e);
  2060. if ((this.PostCodeRowChanged != null)) {
  2061. this.PostCodeRowChanged(this, new PostCodeRowChangeEvent(((PostCodeRow)(e.Row)), e.Action));
  2062. }
  2063. }
  2064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2066. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2067. base.OnRowChanging(e);
  2068. if ((this.PostCodeRowChanging != null)) {
  2069. this.PostCodeRowChanging(this, new PostCodeRowChangeEvent(((PostCodeRow)(e.Row)), e.Action));
  2070. }
  2071. }
  2072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2074. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2075. base.OnRowDeleted(e);
  2076. if ((this.PostCodeRowDeleted != null)) {
  2077. this.PostCodeRowDeleted(this, new PostCodeRowChangeEvent(((PostCodeRow)(e.Row)), e.Action));
  2078. }
  2079. }
  2080. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2081. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2082. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2083. base.OnRowDeleting(e);
  2084. if ((this.PostCodeRowDeleting != null)) {
  2085. this.PostCodeRowDeleting(this, new PostCodeRowChangeEvent(((PostCodeRow)(e.Row)), e.Action));
  2086. }
  2087. }
  2088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2090. public void RemovePostCodeRow(PostCodeRow row) {
  2091. this.Rows.Remove(row);
  2092. }
  2093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2095. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2096. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2097. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2098. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  2099. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2100. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2101. any1.MinOccurs = new decimal(0);
  2102. any1.MaxOccurs = decimal.MaxValue;
  2103. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2104. sequence.Items.Add(any1);
  2105. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2106. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2107. any2.MinOccurs = new decimal(1);
  2108. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2109. sequence.Items.Add(any2);
  2110. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2111. attribute1.Name = "namespace";
  2112. attribute1.FixedValue = ds.Namespace;
  2113. type.Attributes.Add(attribute1);
  2114. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2115. attribute2.Name = "tableTypeName";
  2116. attribute2.FixedValue = "PostCodeDataTable";
  2117. type.Attributes.Add(attribute2);
  2118. type.Particle = sequence;
  2119. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2120. if (xs.Contains(dsSchema.TargetNamespace)) {
  2121. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2122. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2123. try {
  2124. global::System.Xml.Schema.XmlSchema schema = null;
  2125. dsSchema.Write(s1);
  2126. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2127. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2128. s2.SetLength(0);
  2129. schema.Write(s2);
  2130. if ((s1.Length == s2.Length)) {
  2131. s1.Position = 0;
  2132. s2.Position = 0;
  2133. for (; ((s1.Position != s1.Length)
  2134. && (s1.ReadByte() == s2.ReadByte())); ) {
  2135. ;
  2136. }
  2137. if ((s1.Position == s1.Length)) {
  2138. return type;
  2139. }
  2140. }
  2141. }
  2142. }
  2143. finally {
  2144. if ((s1 != null)) {
  2145. s1.Close();
  2146. }
  2147. if ((s2 != null)) {
  2148. s2.Close();
  2149. }
  2150. }
  2151. }
  2152. xs.Add(dsSchema);
  2153. return type;
  2154. }
  2155. }
  2156. /// <summary>
  2157. ///Represents the strongly named DataTable class.
  2158. ///</summary>
  2159. [global::System.Serializable()]
  2160. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2161. public partial class ProductDataTable : global::System.Data.TypedTableBase<ProductRow> {
  2162. private global::System.Data.DataColumn columnIDProduct;
  2163. private global::System.Data.DataColumn columnIDProductType;
  2164. private global::System.Data.DataColumn columnProductName;
  2165. private global::System.Data.DataColumn columnArticle;
  2166. private global::System.Data.DataColumn columnCost;
  2167. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2168. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2169. public ProductDataTable() {
  2170. this.TableName = "Product";
  2171. this.BeginInit();
  2172. this.InitClass();
  2173. this.EndInit();
  2174. }
  2175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2177. internal ProductDataTable(global::System.Data.DataTable table) {
  2178. this.TableName = table.TableName;
  2179. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2180. this.CaseSensitive = table.CaseSensitive;
  2181. }
  2182. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2183. this.Locale = table.Locale;
  2184. }
  2185. if ((table.Namespace != table.DataSet.Namespace)) {
  2186. this.Namespace = table.Namespace;
  2187. }
  2188. this.Prefix = table.Prefix;
  2189. this.MinimumCapacity = table.MinimumCapacity;
  2190. }
  2191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2193. protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2194. base(info, context) {
  2195. this.InitVars();
  2196. }
  2197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2199. public global::System.Data.DataColumn IDProductColumn {
  2200. get {
  2201. return this.columnIDProduct;
  2202. }
  2203. }
  2204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2206. public global::System.Data.DataColumn IDProductTypeColumn {
  2207. get {
  2208. return this.columnIDProductType;
  2209. }
  2210. }
  2211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2213. public global::System.Data.DataColumn ProductNameColumn {
  2214. get {
  2215. return this.columnProductName;
  2216. }
  2217. }
  2218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2220. public global::System.Data.DataColumn ArticleColumn {
  2221. get {
  2222. return this.columnArticle;
  2223. }
  2224. }
  2225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2227. public global::System.Data.DataColumn CostColumn {
  2228. get {
  2229. return this.columnCost;
  2230. }
  2231. }
  2232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2234. [global::System.ComponentModel.Browsable(false)]
  2235. public int Count {
  2236. get {
  2237. return this.Rows.Count;
  2238. }
  2239. }
  2240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2242. public ProductRow this[int index] {
  2243. get {
  2244. return ((ProductRow)(this.Rows[index]));
  2245. }
  2246. }
  2247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2248. public event ProductRowChangeEventHandler ProductRowChanging;
  2249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2250. public event ProductRowChangeEventHandler ProductRowChanged;
  2251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2252. public event ProductRowChangeEventHandler ProductRowDeleting;
  2253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2254. public event ProductRowChangeEventHandler ProductRowDeleted;
  2255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2257. public void AddProductRow(ProductRow row) {
  2258. this.Rows.Add(row);
  2259. }
  2260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2262. public ProductRow AddProductRow(ProductTypeRow parentProductTypeRowByFK_Product_ProductType, string ProductName, string Article, decimal Cost) {
  2263. ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
  2264. object[] columnValuesArray = new object[] {
  2265. null,
  2266. null,
  2267. ProductName,
  2268. Article,
  2269. Cost};
  2270. if ((parentProductTypeRowByFK_Product_ProductType != null)) {
  2271. columnValuesArray[1] = parentProductTypeRowByFK_Product_ProductType[0];
  2272. }
  2273. rowProductRow.ItemArray = columnValuesArray;
  2274. this.Rows.Add(rowProductRow);
  2275. return rowProductRow;
  2276. }
  2277. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2279. public ProductRow FindByIDProduct(int IDProduct) {
  2280. return ((ProductRow)(this.Rows.Find(new object[] {
  2281. IDProduct})));
  2282. }
  2283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2285. public override global::System.Data.DataTable Clone() {
  2286. ProductDataTable cln = ((ProductDataTable)(base.Clone()));
  2287. cln.InitVars();
  2288. return cln;
  2289. }
  2290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2292. protected override global::System.Data.DataTable CreateInstance() {
  2293. return new ProductDataTable();
  2294. }
  2295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2297. internal void InitVars() {
  2298. this.columnIDProduct = base.Columns["IDProduct"];
  2299. this.columnIDProductType = base.Columns["IDProductType"];
  2300. this.columnProductName = base.Columns["ProductName"];
  2301. this.columnArticle = base.Columns["Article"];
  2302. this.columnCost = base.Columns["Cost"];
  2303. }
  2304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2306. private void InitClass() {
  2307. this.columnIDProduct = new global::System.Data.DataColumn("IDProduct", typeof(int), null, global::System.Data.MappingType.Element);
  2308. base.Columns.Add(this.columnIDProduct);
  2309. this.columnIDProductType = new global::System.Data.DataColumn("IDProductType", typeof(int), null, global::System.Data.MappingType.Element);
  2310. base.Columns.Add(this.columnIDProductType);
  2311. this.columnProductName = new global::System.Data.DataColumn("ProductName", typeof(string), null, global::System.Data.MappingType.Element);
  2312. base.Columns.Add(this.columnProductName);
  2313. this.columnArticle = new global::System.Data.DataColumn("Article", typeof(string), null, global::System.Data.MappingType.Element);
  2314. base.Columns.Add(this.columnArticle);
  2315. this.columnCost = new global::System.Data.DataColumn("Cost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2316. base.Columns.Add(this.columnCost);
  2317. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2318. this.columnIDProduct}, true));
  2319. this.columnIDProduct.AutoIncrement = true;
  2320. this.columnIDProduct.AutoIncrementSeed = -1;
  2321. this.columnIDProduct.AutoIncrementStep = -1;
  2322. this.columnIDProduct.AllowDBNull = false;
  2323. this.columnIDProduct.ReadOnly = true;
  2324. this.columnIDProduct.Unique = true;
  2325. this.columnProductName.MaxLength = 150;
  2326. this.columnArticle.MaxLength = 50;
  2327. }
  2328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2330. public ProductRow NewProductRow() {
  2331. return ((ProductRow)(this.NewRow()));
  2332. }
  2333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2335. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2336. return new ProductRow(builder);
  2337. }
  2338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2340. protected override global::System.Type GetRowType() {
  2341. return typeof(ProductRow);
  2342. }
  2343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2345. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2346. base.OnRowChanged(e);
  2347. if ((this.ProductRowChanged != null)) {
  2348. this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2349. }
  2350. }
  2351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2353. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2354. base.OnRowChanging(e);
  2355. if ((this.ProductRowChanging != null)) {
  2356. this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2357. }
  2358. }
  2359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2361. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2362. base.OnRowDeleted(e);
  2363. if ((this.ProductRowDeleted != null)) {
  2364. this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2365. }
  2366. }
  2367. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2368. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2369. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2370. base.OnRowDeleting(e);
  2371. if ((this.ProductRowDeleting != null)) {
  2372. this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
  2373. }
  2374. }
  2375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2377. public void RemoveProductRow(ProductRow row) {
  2378. this.Rows.Remove(row);
  2379. }
  2380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2382. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2383. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2384. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2385. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  2386. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2387. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2388. any1.MinOccurs = new decimal(0);
  2389. any1.MaxOccurs = decimal.MaxValue;
  2390. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2391. sequence.Items.Add(any1);
  2392. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2393. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2394. any2.MinOccurs = new decimal(1);
  2395. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2396. sequence.Items.Add(any2);
  2397. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2398. attribute1.Name = "namespace";
  2399. attribute1.FixedValue = ds.Namespace;
  2400. type.Attributes.Add(attribute1);
  2401. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2402. attribute2.Name = "tableTypeName";
  2403. attribute2.FixedValue = "ProductDataTable";
  2404. type.Attributes.Add(attribute2);
  2405. type.Particle = sequence;
  2406. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2407. if (xs.Contains(dsSchema.TargetNamespace)) {
  2408. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2409. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2410. try {
  2411. global::System.Xml.Schema.XmlSchema schema = null;
  2412. dsSchema.Write(s1);
  2413. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2414. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2415. s2.SetLength(0);
  2416. schema.Write(s2);
  2417. if ((s1.Length == s2.Length)) {
  2418. s1.Position = 0;
  2419. s2.Position = 0;
  2420. for (; ((s1.Position != s1.Length)
  2421. && (s1.ReadByte() == s2.ReadByte())); ) {
  2422. ;
  2423. }
  2424. if ((s1.Position == s1.Length)) {
  2425. return type;
  2426. }
  2427. }
  2428. }
  2429. }
  2430. finally {
  2431. if ((s1 != null)) {
  2432. s1.Close();
  2433. }
  2434. if ((s2 != null)) {
  2435. s2.Close();
  2436. }
  2437. }
  2438. }
  2439. xs.Add(dsSchema);
  2440. return type;
  2441. }
  2442. }
  2443. /// <summary>
  2444. ///Represents the strongly named DataTable class.
  2445. ///</summary>
  2446. [global::System.Serializable()]
  2447. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2448. public partial class ProductTypeDataTable : global::System.Data.TypedTableBase<ProductTypeRow> {
  2449. private global::System.Data.DataColumn columnIDProductType;
  2450. private global::System.Data.DataColumn columnProductType;
  2451. private global::System.Data.DataColumn columnСoefficient;
  2452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2454. public ProductTypeDataTable() {
  2455. this.TableName = "ProductType";
  2456. this.BeginInit();
  2457. this.InitClass();
  2458. this.EndInit();
  2459. }
  2460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2462. internal ProductTypeDataTable(global::System.Data.DataTable table) {
  2463. this.TableName = table.TableName;
  2464. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2465. this.CaseSensitive = table.CaseSensitive;
  2466. }
  2467. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2468. this.Locale = table.Locale;
  2469. }
  2470. if ((table.Namespace != table.DataSet.Namespace)) {
  2471. this.Namespace = table.Namespace;
  2472. }
  2473. this.Prefix = table.Prefix;
  2474. this.MinimumCapacity = table.MinimumCapacity;
  2475. }
  2476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2478. protected ProductTypeDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2479. base(info, context) {
  2480. this.InitVars();
  2481. }
  2482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2484. public global::System.Data.DataColumn IDProductTypeColumn {
  2485. get {
  2486. return this.columnIDProductType;
  2487. }
  2488. }
  2489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2491. public global::System.Data.DataColumn ProductTypeColumn {
  2492. get {
  2493. return this.columnProductType;
  2494. }
  2495. }
  2496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2498. public global::System.Data.DataColumn СoefficientColumn {
  2499. get {
  2500. return this.columnСoefficient;
  2501. }
  2502. }
  2503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2505. [global::System.ComponentModel.Browsable(false)]
  2506. public int Count {
  2507. get {
  2508. return this.Rows.Count;
  2509. }
  2510. }
  2511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2513. public ProductTypeRow this[int index] {
  2514. get {
  2515. return ((ProductTypeRow)(this.Rows[index]));
  2516. }
  2517. }
  2518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2519. public event ProductTypeRowChangeEventHandler ProductTypeRowChanging;
  2520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2521. public event ProductTypeRowChangeEventHandler ProductTypeRowChanged;
  2522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2523. public event ProductTypeRowChangeEventHandler ProductTypeRowDeleting;
  2524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2525. public event ProductTypeRowChangeEventHandler ProductTypeRowDeleted;
  2526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2528. public void AddProductTypeRow(ProductTypeRow row) {
  2529. this.Rows.Add(row);
  2530. }
  2531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2533. public ProductTypeRow AddProductTypeRow(string ProductType, double Сoefficient) {
  2534. ProductTypeRow rowProductTypeRow = ((ProductTypeRow)(this.NewRow()));
  2535. object[] columnValuesArray = new object[] {
  2536. null,
  2537. ProductType,
  2538. Сoefficient};
  2539. rowProductTypeRow.ItemArray = columnValuesArray;
  2540. this.Rows.Add(rowProductTypeRow);
  2541. return rowProductTypeRow;
  2542. }
  2543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2545. public ProductTypeRow FindByIDProductType(int IDProductType) {
  2546. return ((ProductTypeRow)(this.Rows.Find(new object[] {
  2547. IDProductType})));
  2548. }
  2549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2551. public override global::System.Data.DataTable Clone() {
  2552. ProductTypeDataTable cln = ((ProductTypeDataTable)(base.Clone()));
  2553. cln.InitVars();
  2554. return cln;
  2555. }
  2556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2558. protected override global::System.Data.DataTable CreateInstance() {
  2559. return new ProductTypeDataTable();
  2560. }
  2561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2563. internal void InitVars() {
  2564. this.columnIDProductType = base.Columns["IDProductType"];
  2565. this.columnProductType = base.Columns["ProductType"];
  2566. this.columnСoefficient = base.Columns["Сoefficient"];
  2567. }
  2568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2570. private void InitClass() {
  2571. this.columnIDProductType = new global::System.Data.DataColumn("IDProductType", typeof(int), null, global::System.Data.MappingType.Element);
  2572. base.Columns.Add(this.columnIDProductType);
  2573. this.columnProductType = new global::System.Data.DataColumn("ProductType", typeof(string), null, global::System.Data.MappingType.Element);
  2574. base.Columns.Add(this.columnProductType);
  2575. this.columnСoefficient = new global::System.Data.DataColumn("Сoefficient", typeof(double), null, global::System.Data.MappingType.Element);
  2576. base.Columns.Add(this.columnСoefficient);
  2577. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2578. this.columnIDProductType}, true));
  2579. this.columnIDProductType.AutoIncrement = true;
  2580. this.columnIDProductType.AutoIncrementSeed = -1;
  2581. this.columnIDProductType.AutoIncrementStep = -1;
  2582. this.columnIDProductType.AllowDBNull = false;
  2583. this.columnIDProductType.ReadOnly = true;
  2584. this.columnIDProductType.Unique = true;
  2585. this.columnProductType.MaxLength = 50;
  2586. }
  2587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2589. public ProductTypeRow NewProductTypeRow() {
  2590. return ((ProductTypeRow)(this.NewRow()));
  2591. }
  2592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2594. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2595. return new ProductTypeRow(builder);
  2596. }
  2597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2599. protected override global::System.Type GetRowType() {
  2600. return typeof(ProductTypeRow);
  2601. }
  2602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2604. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2605. base.OnRowChanged(e);
  2606. if ((this.ProductTypeRowChanged != null)) {
  2607. this.ProductTypeRowChanged(this, new ProductTypeRowChangeEvent(((ProductTypeRow)(e.Row)), e.Action));
  2608. }
  2609. }
  2610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2612. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2613. base.OnRowChanging(e);
  2614. if ((this.ProductTypeRowChanging != null)) {
  2615. this.ProductTypeRowChanging(this, new ProductTypeRowChangeEvent(((ProductTypeRow)(e.Row)), e.Action));
  2616. }
  2617. }
  2618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2620. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2621. base.OnRowDeleted(e);
  2622. if ((this.ProductTypeRowDeleted != null)) {
  2623. this.ProductTypeRowDeleted(this, new ProductTypeRowChangeEvent(((ProductTypeRow)(e.Row)), e.Action));
  2624. }
  2625. }
  2626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2628. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2629. base.OnRowDeleting(e);
  2630. if ((this.ProductTypeRowDeleting != null)) {
  2631. this.ProductTypeRowDeleting(this, new ProductTypeRowChangeEvent(((ProductTypeRow)(e.Row)), e.Action));
  2632. }
  2633. }
  2634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2636. public void RemoveProductTypeRow(ProductTypeRow row) {
  2637. this.Rows.Remove(row);
  2638. }
  2639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2641. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2642. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2643. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2644. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  2645. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2646. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2647. any1.MinOccurs = new decimal(0);
  2648. any1.MaxOccurs = decimal.MaxValue;
  2649. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2650. sequence.Items.Add(any1);
  2651. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2652. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2653. any2.MinOccurs = new decimal(1);
  2654. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2655. sequence.Items.Add(any2);
  2656. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2657. attribute1.Name = "namespace";
  2658. attribute1.FixedValue = ds.Namespace;
  2659. type.Attributes.Add(attribute1);
  2660. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2661. attribute2.Name = "tableTypeName";
  2662. attribute2.FixedValue = "ProductTypeDataTable";
  2663. type.Attributes.Add(attribute2);
  2664. type.Particle = sequence;
  2665. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2666. if (xs.Contains(dsSchema.TargetNamespace)) {
  2667. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2668. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2669. try {
  2670. global::System.Xml.Schema.XmlSchema schema = null;
  2671. dsSchema.Write(s1);
  2672. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2673. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2674. s2.SetLength(0);
  2675. schema.Write(s2);
  2676. if ((s1.Length == s2.Length)) {
  2677. s1.Position = 0;
  2678. s2.Position = 0;
  2679. for (; ((s1.Position != s1.Length)
  2680. && (s1.ReadByte() == s2.ReadByte())); ) {
  2681. ;
  2682. }
  2683. if ((s1.Position == s1.Length)) {
  2684. return type;
  2685. }
  2686. }
  2687. }
  2688. }
  2689. finally {
  2690. if ((s1 != null)) {
  2691. s1.Close();
  2692. }
  2693. if ((s2 != null)) {
  2694. s2.Close();
  2695. }
  2696. }
  2697. }
  2698. xs.Add(dsSchema);
  2699. return type;
  2700. }
  2701. }
  2702. /// <summary>
  2703. ///Represents the strongly named DataTable class.
  2704. ///</summary>
  2705. [global::System.Serializable()]
  2706. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2707. public partial class RegionDataTable : global::System.Data.TypedTableBase<RegionRow> {
  2708. private global::System.Data.DataColumn columnIDRegion;
  2709. private global::System.Data.DataColumn columnRegion;
  2710. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2711. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2712. public RegionDataTable() {
  2713. this.TableName = "Region";
  2714. this.BeginInit();
  2715. this.InitClass();
  2716. this.EndInit();
  2717. }
  2718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2720. internal RegionDataTable(global::System.Data.DataTable table) {
  2721. this.TableName = table.TableName;
  2722. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2723. this.CaseSensitive = table.CaseSensitive;
  2724. }
  2725. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2726. this.Locale = table.Locale;
  2727. }
  2728. if ((table.Namespace != table.DataSet.Namespace)) {
  2729. this.Namespace = table.Namespace;
  2730. }
  2731. this.Prefix = table.Prefix;
  2732. this.MinimumCapacity = table.MinimumCapacity;
  2733. }
  2734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2736. protected RegionDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2737. base(info, context) {
  2738. this.InitVars();
  2739. }
  2740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2742. public global::System.Data.DataColumn IDRegionColumn {
  2743. get {
  2744. return this.columnIDRegion;
  2745. }
  2746. }
  2747. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2749. public global::System.Data.DataColumn RegionColumn {
  2750. get {
  2751. return this.columnRegion;
  2752. }
  2753. }
  2754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2756. [global::System.ComponentModel.Browsable(false)]
  2757. public int Count {
  2758. get {
  2759. return this.Rows.Count;
  2760. }
  2761. }
  2762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2764. public RegionRow this[int index] {
  2765. get {
  2766. return ((RegionRow)(this.Rows[index]));
  2767. }
  2768. }
  2769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2770. public event RegionRowChangeEventHandler RegionRowChanging;
  2771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2772. public event RegionRowChangeEventHandler RegionRowChanged;
  2773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2774. public event RegionRowChangeEventHandler RegionRowDeleting;
  2775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2776. public event RegionRowChangeEventHandler RegionRowDeleted;
  2777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2779. public void AddRegionRow(RegionRow row) {
  2780. this.Rows.Add(row);
  2781. }
  2782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2784. public RegionRow AddRegionRow(string Region) {
  2785. RegionRow rowRegionRow = ((RegionRow)(this.NewRow()));
  2786. object[] columnValuesArray = new object[] {
  2787. null,
  2788. Region};
  2789. rowRegionRow.ItemArray = columnValuesArray;
  2790. this.Rows.Add(rowRegionRow);
  2791. return rowRegionRow;
  2792. }
  2793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2795. public RegionRow FindByIDRegion(int IDRegion) {
  2796. return ((RegionRow)(this.Rows.Find(new object[] {
  2797. IDRegion})));
  2798. }
  2799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2801. public override global::System.Data.DataTable Clone() {
  2802. RegionDataTable cln = ((RegionDataTable)(base.Clone()));
  2803. cln.InitVars();
  2804. return cln;
  2805. }
  2806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2808. protected override global::System.Data.DataTable CreateInstance() {
  2809. return new RegionDataTable();
  2810. }
  2811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2813. internal void InitVars() {
  2814. this.columnIDRegion = base.Columns["IDRegion"];
  2815. this.columnRegion = base.Columns["Region"];
  2816. }
  2817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2819. private void InitClass() {
  2820. this.columnIDRegion = new global::System.Data.DataColumn("IDRegion", typeof(int), null, global::System.Data.MappingType.Element);
  2821. base.Columns.Add(this.columnIDRegion);
  2822. this.columnRegion = new global::System.Data.DataColumn("Region", typeof(string), null, global::System.Data.MappingType.Element);
  2823. base.Columns.Add(this.columnRegion);
  2824. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2825. this.columnIDRegion}, true));
  2826. this.columnIDRegion.AutoIncrement = true;
  2827. this.columnIDRegion.AutoIncrementSeed = -1;
  2828. this.columnIDRegion.AutoIncrementStep = -1;
  2829. this.columnIDRegion.AllowDBNull = false;
  2830. this.columnIDRegion.ReadOnly = true;
  2831. this.columnIDRegion.Unique = true;
  2832. this.columnRegion.MaxLength = 50;
  2833. }
  2834. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2835. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2836. public RegionRow NewRegionRow() {
  2837. return ((RegionRow)(this.NewRow()));
  2838. }
  2839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2841. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2842. return new RegionRow(builder);
  2843. }
  2844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2846. protected override global::System.Type GetRowType() {
  2847. return typeof(RegionRow);
  2848. }
  2849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2851. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2852. base.OnRowChanged(e);
  2853. if ((this.RegionRowChanged != null)) {
  2854. this.RegionRowChanged(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2855. }
  2856. }
  2857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2859. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2860. base.OnRowChanging(e);
  2861. if ((this.RegionRowChanging != null)) {
  2862. this.RegionRowChanging(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2863. }
  2864. }
  2865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2867. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2868. base.OnRowDeleted(e);
  2869. if ((this.RegionRowDeleted != null)) {
  2870. this.RegionRowDeleted(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2871. }
  2872. }
  2873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2875. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2876. base.OnRowDeleting(e);
  2877. if ((this.RegionRowDeleting != null)) {
  2878. this.RegionRowDeleting(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2879. }
  2880. }
  2881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2883. public void RemoveRegionRow(RegionRow row) {
  2884. this.Rows.Remove(row);
  2885. }
  2886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2888. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2889. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2890. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2891. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  2892. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2893. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2894. any1.MinOccurs = new decimal(0);
  2895. any1.MaxOccurs = decimal.MaxValue;
  2896. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2897. sequence.Items.Add(any1);
  2898. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2899. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2900. any2.MinOccurs = new decimal(1);
  2901. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2902. sequence.Items.Add(any2);
  2903. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2904. attribute1.Name = "namespace";
  2905. attribute1.FixedValue = ds.Namespace;
  2906. type.Attributes.Add(attribute1);
  2907. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2908. attribute2.Name = "tableTypeName";
  2909. attribute2.FixedValue = "RegionDataTable";
  2910. type.Attributes.Add(attribute2);
  2911. type.Particle = sequence;
  2912. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2913. if (xs.Contains(dsSchema.TargetNamespace)) {
  2914. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2915. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2916. try {
  2917. global::System.Xml.Schema.XmlSchema schema = null;
  2918. dsSchema.Write(s1);
  2919. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2920. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2921. s2.SetLength(0);
  2922. schema.Write(s2);
  2923. if ((s1.Length == s2.Length)) {
  2924. s1.Position = 0;
  2925. s2.Position = 0;
  2926. for (; ((s1.Position != s1.Length)
  2927. && (s1.ReadByte() == s2.ReadByte())); ) {
  2928. ;
  2929. }
  2930. if ((s1.Position == s1.Length)) {
  2931. return type;
  2932. }
  2933. }
  2934. }
  2935. }
  2936. finally {
  2937. if ((s1 != null)) {
  2938. s1.Close();
  2939. }
  2940. if ((s2 != null)) {
  2941. s2.Close();
  2942. }
  2943. }
  2944. }
  2945. xs.Add(dsSchema);
  2946. return type;
  2947. }
  2948. }
  2949. /// <summary>
  2950. ///Represents the strongly named DataTable class.
  2951. ///</summary>
  2952. [global::System.Serializable()]
  2953. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2954. public partial class StreetDataTable : global::System.Data.TypedTableBase<StreetRow> {
  2955. private global::System.Data.DataColumn columnIDStreet;
  2956. private global::System.Data.DataColumn columnStreet;
  2957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2959. public StreetDataTable() {
  2960. this.TableName = "Street";
  2961. this.BeginInit();
  2962. this.InitClass();
  2963. this.EndInit();
  2964. }
  2965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2967. internal StreetDataTable(global::System.Data.DataTable table) {
  2968. this.TableName = table.TableName;
  2969. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2970. this.CaseSensitive = table.CaseSensitive;
  2971. }
  2972. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2973. this.Locale = table.Locale;
  2974. }
  2975. if ((table.Namespace != table.DataSet.Namespace)) {
  2976. this.Namespace = table.Namespace;
  2977. }
  2978. this.Prefix = table.Prefix;
  2979. this.MinimumCapacity = table.MinimumCapacity;
  2980. }
  2981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2983. protected StreetDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2984. base(info, context) {
  2985. this.InitVars();
  2986. }
  2987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2989. public global::System.Data.DataColumn IDStreetColumn {
  2990. get {
  2991. return this.columnIDStreet;
  2992. }
  2993. }
  2994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2996. public global::System.Data.DataColumn StreetColumn {
  2997. get {
  2998. return this.columnStreet;
  2999. }
  3000. }
  3001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3003. [global::System.ComponentModel.Browsable(false)]
  3004. public int Count {
  3005. get {
  3006. return this.Rows.Count;
  3007. }
  3008. }
  3009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3011. public StreetRow this[int index] {
  3012. get {
  3013. return ((StreetRow)(this.Rows[index]));
  3014. }
  3015. }
  3016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3017. public event StreetRowChangeEventHandler StreetRowChanging;
  3018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3019. public event StreetRowChangeEventHandler StreetRowChanged;
  3020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3021. public event StreetRowChangeEventHandler StreetRowDeleting;
  3022. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3023. public event StreetRowChangeEventHandler StreetRowDeleted;
  3024. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3026. public void AddStreetRow(StreetRow row) {
  3027. this.Rows.Add(row);
  3028. }
  3029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3031. public StreetRow AddStreetRow(string Street) {
  3032. StreetRow rowStreetRow = ((StreetRow)(this.NewRow()));
  3033. object[] columnValuesArray = new object[] {
  3034. null,
  3035. Street};
  3036. rowStreetRow.ItemArray = columnValuesArray;
  3037. this.Rows.Add(rowStreetRow);
  3038. return rowStreetRow;
  3039. }
  3040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3042. public StreetRow FindByIDStreet(int IDStreet) {
  3043. return ((StreetRow)(this.Rows.Find(new object[] {
  3044. IDStreet})));
  3045. }
  3046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3048. public override global::System.Data.DataTable Clone() {
  3049. StreetDataTable cln = ((StreetDataTable)(base.Clone()));
  3050. cln.InitVars();
  3051. return cln;
  3052. }
  3053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3055. protected override global::System.Data.DataTable CreateInstance() {
  3056. return new StreetDataTable();
  3057. }
  3058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3060. internal void InitVars() {
  3061. this.columnIDStreet = base.Columns["IDStreet"];
  3062. this.columnStreet = base.Columns["Street"];
  3063. }
  3064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3066. private void InitClass() {
  3067. this.columnIDStreet = new global::System.Data.DataColumn("IDStreet", typeof(int), null, global::System.Data.MappingType.Element);
  3068. base.Columns.Add(this.columnIDStreet);
  3069. this.columnStreet = new global::System.Data.DataColumn("Street", typeof(string), null, global::System.Data.MappingType.Element);
  3070. base.Columns.Add(this.columnStreet);
  3071. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3072. this.columnIDStreet}, true));
  3073. this.columnIDStreet.AutoIncrement = true;
  3074. this.columnIDStreet.AutoIncrementSeed = -1;
  3075. this.columnIDStreet.AutoIncrementStep = -1;
  3076. this.columnIDStreet.AllowDBNull = false;
  3077. this.columnIDStreet.ReadOnly = true;
  3078. this.columnIDStreet.Unique = true;
  3079. this.columnStreet.MaxLength = 50;
  3080. }
  3081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3083. public StreetRow NewStreetRow() {
  3084. return ((StreetRow)(this.NewRow()));
  3085. }
  3086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3088. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3089. return new StreetRow(builder);
  3090. }
  3091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3093. protected override global::System.Type GetRowType() {
  3094. return typeof(StreetRow);
  3095. }
  3096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3098. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3099. base.OnRowChanged(e);
  3100. if ((this.StreetRowChanged != null)) {
  3101. this.StreetRowChanged(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  3102. }
  3103. }
  3104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3106. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3107. base.OnRowChanging(e);
  3108. if ((this.StreetRowChanging != null)) {
  3109. this.StreetRowChanging(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  3110. }
  3111. }
  3112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3114. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3115. base.OnRowDeleted(e);
  3116. if ((this.StreetRowDeleted != null)) {
  3117. this.StreetRowDeleted(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  3118. }
  3119. }
  3120. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3121. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3122. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3123. base.OnRowDeleting(e);
  3124. if ((this.StreetRowDeleting != null)) {
  3125. this.StreetRowDeleting(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  3126. }
  3127. }
  3128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3130. public void RemoveStreetRow(StreetRow row) {
  3131. this.Rows.Remove(row);
  3132. }
  3133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3135. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3136. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3137. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3138. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  3139. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3140. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3141. any1.MinOccurs = new decimal(0);
  3142. any1.MaxOccurs = decimal.MaxValue;
  3143. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3144. sequence.Items.Add(any1);
  3145. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3146. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3147. any2.MinOccurs = new decimal(1);
  3148. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3149. sequence.Items.Add(any2);
  3150. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3151. attribute1.Name = "namespace";
  3152. attribute1.FixedValue = ds.Namespace;
  3153. type.Attributes.Add(attribute1);
  3154. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3155. attribute2.Name = "tableTypeName";
  3156. attribute2.FixedValue = "StreetDataTable";
  3157. type.Attributes.Add(attribute2);
  3158. type.Particle = sequence;
  3159. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3160. if (xs.Contains(dsSchema.TargetNamespace)) {
  3161. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3162. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3163. try {
  3164. global::System.Xml.Schema.XmlSchema schema = null;
  3165. dsSchema.Write(s1);
  3166. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3167. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3168. s2.SetLength(0);
  3169. schema.Write(s2);
  3170. if ((s1.Length == s2.Length)) {
  3171. s1.Position = 0;
  3172. s2.Position = 0;
  3173. for (; ((s1.Position != s1.Length)
  3174. && (s1.ReadByte() == s2.ReadByte())); ) {
  3175. ;
  3176. }
  3177. if ((s1.Position == s1.Length)) {
  3178. return type;
  3179. }
  3180. }
  3181. }
  3182. }
  3183. finally {
  3184. if ((s1 != null)) {
  3185. s1.Close();
  3186. }
  3187. if ((s2 != null)) {
  3188. s2.Close();
  3189. }
  3190. }
  3191. }
  3192. xs.Add(dsSchema);
  3193. return type;
  3194. }
  3195. }
  3196. /// <summary>
  3197. ///Represents the strongly named DataTable class.
  3198. ///</summary>
  3199. [global::System.Serializable()]
  3200. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3201. public partial class TypeMaterialDataTable : global::System.Data.TypedTableBase<TypeMaterialRow> {
  3202. private global::System.Data.DataColumn columnIDTypeMaterial;
  3203. private global::System.Data.DataColumn columnTypeMaterial;
  3204. private global::System.Data.DataColumn columnDefectPercent;
  3205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3207. public TypeMaterialDataTable() {
  3208. this.TableName = "TypeMaterial";
  3209. this.BeginInit();
  3210. this.InitClass();
  3211. this.EndInit();
  3212. }
  3213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3215. internal TypeMaterialDataTable(global::System.Data.DataTable table) {
  3216. this.TableName = table.TableName;
  3217. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3218. this.CaseSensitive = table.CaseSensitive;
  3219. }
  3220. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3221. this.Locale = table.Locale;
  3222. }
  3223. if ((table.Namespace != table.DataSet.Namespace)) {
  3224. this.Namespace = table.Namespace;
  3225. }
  3226. this.Prefix = table.Prefix;
  3227. this.MinimumCapacity = table.MinimumCapacity;
  3228. }
  3229. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3231. protected TypeMaterialDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3232. base(info, context) {
  3233. this.InitVars();
  3234. }
  3235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3236. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3237. public global::System.Data.DataColumn IDTypeMaterialColumn {
  3238. get {
  3239. return this.columnIDTypeMaterial;
  3240. }
  3241. }
  3242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3244. public global::System.Data.DataColumn TypeMaterialColumn {
  3245. get {
  3246. return this.columnTypeMaterial;
  3247. }
  3248. }
  3249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3251. public global::System.Data.DataColumn DefectPercentColumn {
  3252. get {
  3253. return this.columnDefectPercent;
  3254. }
  3255. }
  3256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3258. [global::System.ComponentModel.Browsable(false)]
  3259. public int Count {
  3260. get {
  3261. return this.Rows.Count;
  3262. }
  3263. }
  3264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3266. public TypeMaterialRow this[int index] {
  3267. get {
  3268. return ((TypeMaterialRow)(this.Rows[index]));
  3269. }
  3270. }
  3271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3272. public event TypeMaterialRowChangeEventHandler TypeMaterialRowChanging;
  3273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3274. public event TypeMaterialRowChangeEventHandler TypeMaterialRowChanged;
  3275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3276. public event TypeMaterialRowChangeEventHandler TypeMaterialRowDeleting;
  3277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3278. public event TypeMaterialRowChangeEventHandler TypeMaterialRowDeleted;
  3279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3281. public void AddTypeMaterialRow(TypeMaterialRow row) {
  3282. this.Rows.Add(row);
  3283. }
  3284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3286. public TypeMaterialRow AddTypeMaterialRow(string TypeMaterial, double DefectPercent) {
  3287. TypeMaterialRow rowTypeMaterialRow = ((TypeMaterialRow)(this.NewRow()));
  3288. object[] columnValuesArray = new object[] {
  3289. null,
  3290. TypeMaterial,
  3291. DefectPercent};
  3292. rowTypeMaterialRow.ItemArray = columnValuesArray;
  3293. this.Rows.Add(rowTypeMaterialRow);
  3294. return rowTypeMaterialRow;
  3295. }
  3296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3298. public TypeMaterialRow FindByIDTypeMaterial(int IDTypeMaterial) {
  3299. return ((TypeMaterialRow)(this.Rows.Find(new object[] {
  3300. IDTypeMaterial})));
  3301. }
  3302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3304. public override global::System.Data.DataTable Clone() {
  3305. TypeMaterialDataTable cln = ((TypeMaterialDataTable)(base.Clone()));
  3306. cln.InitVars();
  3307. return cln;
  3308. }
  3309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3311. protected override global::System.Data.DataTable CreateInstance() {
  3312. return new TypeMaterialDataTable();
  3313. }
  3314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3316. internal void InitVars() {
  3317. this.columnIDTypeMaterial = base.Columns["IDTypeMaterial"];
  3318. this.columnTypeMaterial = base.Columns["TypeMaterial"];
  3319. this.columnDefectPercent = base.Columns["DefectPercent"];
  3320. }
  3321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3323. private void InitClass() {
  3324. this.columnIDTypeMaterial = new global::System.Data.DataColumn("IDTypeMaterial", typeof(int), null, global::System.Data.MappingType.Element);
  3325. base.Columns.Add(this.columnIDTypeMaterial);
  3326. this.columnTypeMaterial = new global::System.Data.DataColumn("TypeMaterial", typeof(string), null, global::System.Data.MappingType.Element);
  3327. base.Columns.Add(this.columnTypeMaterial);
  3328. this.columnDefectPercent = new global::System.Data.DataColumn("DefectPercent", typeof(double), null, global::System.Data.MappingType.Element);
  3329. base.Columns.Add(this.columnDefectPercent);
  3330. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3331. this.columnIDTypeMaterial}, true));
  3332. this.columnIDTypeMaterial.AutoIncrement = true;
  3333. this.columnIDTypeMaterial.AutoIncrementSeed = -1;
  3334. this.columnIDTypeMaterial.AutoIncrementStep = -1;
  3335. this.columnIDTypeMaterial.AllowDBNull = false;
  3336. this.columnIDTypeMaterial.ReadOnly = true;
  3337. this.columnIDTypeMaterial.Unique = true;
  3338. this.columnTypeMaterial.MaxLength = 50;
  3339. }
  3340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3342. public TypeMaterialRow NewTypeMaterialRow() {
  3343. return ((TypeMaterialRow)(this.NewRow()));
  3344. }
  3345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3347. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3348. return new TypeMaterialRow(builder);
  3349. }
  3350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3352. protected override global::System.Type GetRowType() {
  3353. return typeof(TypeMaterialRow);
  3354. }
  3355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3357. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3358. base.OnRowChanged(e);
  3359. if ((this.TypeMaterialRowChanged != null)) {
  3360. this.TypeMaterialRowChanged(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3361. }
  3362. }
  3363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3365. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3366. base.OnRowChanging(e);
  3367. if ((this.TypeMaterialRowChanging != null)) {
  3368. this.TypeMaterialRowChanging(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3369. }
  3370. }
  3371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3373. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3374. base.OnRowDeleted(e);
  3375. if ((this.TypeMaterialRowDeleted != null)) {
  3376. this.TypeMaterialRowDeleted(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3377. }
  3378. }
  3379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3381. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3382. base.OnRowDeleting(e);
  3383. if ((this.TypeMaterialRowDeleting != null)) {
  3384. this.TypeMaterialRowDeleting(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3385. }
  3386. }
  3387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3389. public void RemoveTypeMaterialRow(TypeMaterialRow row) {
  3390. this.Rows.Remove(row);
  3391. }
  3392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3394. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3395. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3396. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3397. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  3398. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3399. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3400. any1.MinOccurs = new decimal(0);
  3401. any1.MaxOccurs = decimal.MaxValue;
  3402. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3403. sequence.Items.Add(any1);
  3404. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3405. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3406. any2.MinOccurs = new decimal(1);
  3407. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3408. sequence.Items.Add(any2);
  3409. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3410. attribute1.Name = "namespace";
  3411. attribute1.FixedValue = ds.Namespace;
  3412. type.Attributes.Add(attribute1);
  3413. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3414. attribute2.Name = "tableTypeName";
  3415. attribute2.FixedValue = "TypeMaterialDataTable";
  3416. type.Attributes.Add(attribute2);
  3417. type.Particle = sequence;
  3418. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3419. if (xs.Contains(dsSchema.TargetNamespace)) {
  3420. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3421. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3422. try {
  3423. global::System.Xml.Schema.XmlSchema schema = null;
  3424. dsSchema.Write(s1);
  3425. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3426. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3427. s2.SetLength(0);
  3428. schema.Write(s2);
  3429. if ((s1.Length == s2.Length)) {
  3430. s1.Position = 0;
  3431. s2.Position = 0;
  3432. for (; ((s1.Position != s1.Length)
  3433. && (s1.ReadByte() == s2.ReadByte())); ) {
  3434. ;
  3435. }
  3436. if ((s1.Position == s1.Length)) {
  3437. return type;
  3438. }
  3439. }
  3440. }
  3441. }
  3442. finally {
  3443. if ((s1 != null)) {
  3444. s1.Close();
  3445. }
  3446. if ((s2 != null)) {
  3447. s2.Close();
  3448. }
  3449. }
  3450. }
  3451. xs.Add(dsSchema);
  3452. return type;
  3453. }
  3454. }
  3455. /// <summary>
  3456. ///Represents the strongly named DataTable class.
  3457. ///</summary>
  3458. [global::System.Serializable()]
  3459. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3460. public partial class TypePartnerDataTable : global::System.Data.TypedTableBase<TypePartnerRow> {
  3461. private global::System.Data.DataColumn columnIDTypePartner;
  3462. private global::System.Data.DataColumn columnTypePartner;
  3463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3465. public TypePartnerDataTable() {
  3466. this.TableName = "TypePartner";
  3467. this.BeginInit();
  3468. this.InitClass();
  3469. this.EndInit();
  3470. }
  3471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3473. internal TypePartnerDataTable(global::System.Data.DataTable table) {
  3474. this.TableName = table.TableName;
  3475. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3476. this.CaseSensitive = table.CaseSensitive;
  3477. }
  3478. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3479. this.Locale = table.Locale;
  3480. }
  3481. if ((table.Namespace != table.DataSet.Namespace)) {
  3482. this.Namespace = table.Namespace;
  3483. }
  3484. this.Prefix = table.Prefix;
  3485. this.MinimumCapacity = table.MinimumCapacity;
  3486. }
  3487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3489. protected TypePartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3490. base(info, context) {
  3491. this.InitVars();
  3492. }
  3493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3495. public global::System.Data.DataColumn IDTypePartnerColumn {
  3496. get {
  3497. return this.columnIDTypePartner;
  3498. }
  3499. }
  3500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3502. public global::System.Data.DataColumn TypePartnerColumn {
  3503. get {
  3504. return this.columnTypePartner;
  3505. }
  3506. }
  3507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3509. [global::System.ComponentModel.Browsable(false)]
  3510. public int Count {
  3511. get {
  3512. return this.Rows.Count;
  3513. }
  3514. }
  3515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3517. public TypePartnerRow this[int index] {
  3518. get {
  3519. return ((TypePartnerRow)(this.Rows[index]));
  3520. }
  3521. }
  3522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3523. public event TypePartnerRowChangeEventHandler TypePartnerRowChanging;
  3524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3525. public event TypePartnerRowChangeEventHandler TypePartnerRowChanged;
  3526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3527. public event TypePartnerRowChangeEventHandler TypePartnerRowDeleting;
  3528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3529. public event TypePartnerRowChangeEventHandler TypePartnerRowDeleted;
  3530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3532. public void AddTypePartnerRow(TypePartnerRow row) {
  3533. this.Rows.Add(row);
  3534. }
  3535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3537. public TypePartnerRow AddTypePartnerRow(string TypePartner) {
  3538. TypePartnerRow rowTypePartnerRow = ((TypePartnerRow)(this.NewRow()));
  3539. object[] columnValuesArray = new object[] {
  3540. null,
  3541. TypePartner};
  3542. rowTypePartnerRow.ItemArray = columnValuesArray;
  3543. this.Rows.Add(rowTypePartnerRow);
  3544. return rowTypePartnerRow;
  3545. }
  3546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3548. public TypePartnerRow FindByIDTypePartner(int IDTypePartner) {
  3549. return ((TypePartnerRow)(this.Rows.Find(new object[] {
  3550. IDTypePartner})));
  3551. }
  3552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3554. public override global::System.Data.DataTable Clone() {
  3555. TypePartnerDataTable cln = ((TypePartnerDataTable)(base.Clone()));
  3556. cln.InitVars();
  3557. return cln;
  3558. }
  3559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3561. protected override global::System.Data.DataTable CreateInstance() {
  3562. return new TypePartnerDataTable();
  3563. }
  3564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3566. internal void InitVars() {
  3567. this.columnIDTypePartner = base.Columns["IDTypePartner"];
  3568. this.columnTypePartner = base.Columns["TypePartner"];
  3569. }
  3570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3572. private void InitClass() {
  3573. this.columnIDTypePartner = new global::System.Data.DataColumn("IDTypePartner", typeof(int), null, global::System.Data.MappingType.Element);
  3574. base.Columns.Add(this.columnIDTypePartner);
  3575. this.columnTypePartner = new global::System.Data.DataColumn("TypePartner", typeof(string), null, global::System.Data.MappingType.Element);
  3576. base.Columns.Add(this.columnTypePartner);
  3577. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3578. this.columnIDTypePartner}, true));
  3579. this.columnIDTypePartner.AutoIncrement = true;
  3580. this.columnIDTypePartner.AutoIncrementSeed = -1;
  3581. this.columnIDTypePartner.AutoIncrementStep = -1;
  3582. this.columnIDTypePartner.AllowDBNull = false;
  3583. this.columnIDTypePartner.ReadOnly = true;
  3584. this.columnIDTypePartner.Unique = true;
  3585. this.columnTypePartner.MaxLength = 50;
  3586. }
  3587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3589. public TypePartnerRow NewTypePartnerRow() {
  3590. return ((TypePartnerRow)(this.NewRow()));
  3591. }
  3592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3594. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3595. return new TypePartnerRow(builder);
  3596. }
  3597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3599. protected override global::System.Type GetRowType() {
  3600. return typeof(TypePartnerRow);
  3601. }
  3602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3604. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3605. base.OnRowChanged(e);
  3606. if ((this.TypePartnerRowChanged != null)) {
  3607. this.TypePartnerRowChanged(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3608. }
  3609. }
  3610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3612. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3613. base.OnRowChanging(e);
  3614. if ((this.TypePartnerRowChanging != null)) {
  3615. this.TypePartnerRowChanging(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3616. }
  3617. }
  3618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3620. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3621. base.OnRowDeleted(e);
  3622. if ((this.TypePartnerRowDeleted != null)) {
  3623. this.TypePartnerRowDeleted(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3624. }
  3625. }
  3626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3628. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3629. base.OnRowDeleting(e);
  3630. if ((this.TypePartnerRowDeleting != null)) {
  3631. this.TypePartnerRowDeleting(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3632. }
  3633. }
  3634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3636. public void RemoveTypePartnerRow(TypePartnerRow row) {
  3637. this.Rows.Remove(row);
  3638. }
  3639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3641. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3642. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3643. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3644. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  3645. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3646. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3647. any1.MinOccurs = new decimal(0);
  3648. any1.MaxOccurs = decimal.MaxValue;
  3649. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3650. sequence.Items.Add(any1);
  3651. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3652. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3653. any2.MinOccurs = new decimal(1);
  3654. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3655. sequence.Items.Add(any2);
  3656. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3657. attribute1.Name = "namespace";
  3658. attribute1.FixedValue = ds.Namespace;
  3659. type.Attributes.Add(attribute1);
  3660. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3661. attribute2.Name = "tableTypeName";
  3662. attribute2.FixedValue = "TypePartnerDataTable";
  3663. type.Attributes.Add(attribute2);
  3664. type.Particle = sequence;
  3665. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3666. if (xs.Contains(dsSchema.TargetNamespace)) {
  3667. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3668. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3669. try {
  3670. global::System.Xml.Schema.XmlSchema schema = null;
  3671. dsSchema.Write(s1);
  3672. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3673. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3674. s2.SetLength(0);
  3675. schema.Write(s2);
  3676. if ((s1.Length == s2.Length)) {
  3677. s1.Position = 0;
  3678. s2.Position = 0;
  3679. for (; ((s1.Position != s1.Length)
  3680. && (s1.ReadByte() == s2.ReadByte())); ) {
  3681. ;
  3682. }
  3683. if ((s1.Position == s1.Length)) {
  3684. return type;
  3685. }
  3686. }
  3687. }
  3688. }
  3689. finally {
  3690. if ((s1 != null)) {
  3691. s1.Close();
  3692. }
  3693. if ((s2 != null)) {
  3694. s2.Close();
  3695. }
  3696. }
  3697. }
  3698. xs.Add(dsSchema);
  3699. return type;
  3700. }
  3701. }
  3702. /// <summary>
  3703. ///Represents the strongly named DataTable class.
  3704. ///</summary>
  3705. [global::System.Serializable()]
  3706. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3707. public partial class Type4FilterDataTable : global::System.Data.TypedTableBase<Type4FilterRow> {
  3708. private global::System.Data.DataColumn columnTypePartner;
  3709. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3711. public Type4FilterDataTable() {
  3712. this.TableName = "Type4Filter";
  3713. this.BeginInit();
  3714. this.InitClass();
  3715. this.EndInit();
  3716. }
  3717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3719. internal Type4FilterDataTable(global::System.Data.DataTable table) {
  3720. this.TableName = table.TableName;
  3721. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3722. this.CaseSensitive = table.CaseSensitive;
  3723. }
  3724. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3725. this.Locale = table.Locale;
  3726. }
  3727. if ((table.Namespace != table.DataSet.Namespace)) {
  3728. this.Namespace = table.Namespace;
  3729. }
  3730. this.Prefix = table.Prefix;
  3731. this.MinimumCapacity = table.MinimumCapacity;
  3732. }
  3733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3735. protected Type4FilterDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3736. base(info, context) {
  3737. this.InitVars();
  3738. }
  3739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3741. public global::System.Data.DataColumn TypePartnerColumn {
  3742. get {
  3743. return this.columnTypePartner;
  3744. }
  3745. }
  3746. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3747. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3748. [global::System.ComponentModel.Browsable(false)]
  3749. public int Count {
  3750. get {
  3751. return this.Rows.Count;
  3752. }
  3753. }
  3754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3756. public Type4FilterRow this[int index] {
  3757. get {
  3758. return ((Type4FilterRow)(this.Rows[index]));
  3759. }
  3760. }
  3761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3762. public event Type4FilterRowChangeEventHandler Type4FilterRowChanging;
  3763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3764. public event Type4FilterRowChangeEventHandler Type4FilterRowChanged;
  3765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3766. public event Type4FilterRowChangeEventHandler Type4FilterRowDeleting;
  3767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3768. public event Type4FilterRowChangeEventHandler Type4FilterRowDeleted;
  3769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3771. public void AddType4FilterRow(Type4FilterRow row) {
  3772. this.Rows.Add(row);
  3773. }
  3774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3776. public Type4FilterRow AddType4FilterRow(string TypePartner) {
  3777. Type4FilterRow rowType4FilterRow = ((Type4FilterRow)(this.NewRow()));
  3778. object[] columnValuesArray = new object[] {
  3779. TypePartner};
  3780. rowType4FilterRow.ItemArray = columnValuesArray;
  3781. this.Rows.Add(rowType4FilterRow);
  3782. return rowType4FilterRow;
  3783. }
  3784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3786. public override global::System.Data.DataTable Clone() {
  3787. Type4FilterDataTable cln = ((Type4FilterDataTable)(base.Clone()));
  3788. cln.InitVars();
  3789. return cln;
  3790. }
  3791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3793. protected override global::System.Data.DataTable CreateInstance() {
  3794. return new Type4FilterDataTable();
  3795. }
  3796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3798. internal void InitVars() {
  3799. this.columnTypePartner = base.Columns["TypePartner"];
  3800. }
  3801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3803. private void InitClass() {
  3804. this.columnTypePartner = new global::System.Data.DataColumn("TypePartner", typeof(string), null, global::System.Data.MappingType.Element);
  3805. base.Columns.Add(this.columnTypePartner);
  3806. this.columnTypePartner.ReadOnly = true;
  3807. this.columnTypePartner.Caption = "Column1";
  3808. this.columnTypePartner.MaxLength = 50;
  3809. }
  3810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3812. public Type4FilterRow NewType4FilterRow() {
  3813. return ((Type4FilterRow)(this.NewRow()));
  3814. }
  3815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3817. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3818. return new Type4FilterRow(builder);
  3819. }
  3820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3822. protected override global::System.Type GetRowType() {
  3823. return typeof(Type4FilterRow);
  3824. }
  3825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3827. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3828. base.OnRowChanged(e);
  3829. if ((this.Type4FilterRowChanged != null)) {
  3830. this.Type4FilterRowChanged(this, new Type4FilterRowChangeEvent(((Type4FilterRow)(e.Row)), e.Action));
  3831. }
  3832. }
  3833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3835. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3836. base.OnRowChanging(e);
  3837. if ((this.Type4FilterRowChanging != null)) {
  3838. this.Type4FilterRowChanging(this, new Type4FilterRowChangeEvent(((Type4FilterRow)(e.Row)), e.Action));
  3839. }
  3840. }
  3841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3843. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3844. base.OnRowDeleted(e);
  3845. if ((this.Type4FilterRowDeleted != null)) {
  3846. this.Type4FilterRowDeleted(this, new Type4FilterRowChangeEvent(((Type4FilterRow)(e.Row)), e.Action));
  3847. }
  3848. }
  3849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3851. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3852. base.OnRowDeleting(e);
  3853. if ((this.Type4FilterRowDeleting != null)) {
  3854. this.Type4FilterRowDeleting(this, new Type4FilterRowChangeEvent(((Type4FilterRow)(e.Row)), e.Action));
  3855. }
  3856. }
  3857. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3858. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3859. public void RemoveType4FilterRow(Type4FilterRow row) {
  3860. this.Rows.Remove(row);
  3861. }
  3862. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3863. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3864. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3865. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3866. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3867. AlfafloorGDVDataSet ds = new AlfafloorGDVDataSet();
  3868. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3869. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3870. any1.MinOccurs = new decimal(0);
  3871. any1.MaxOccurs = decimal.MaxValue;
  3872. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3873. sequence.Items.Add(any1);
  3874. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3875. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3876. any2.MinOccurs = new decimal(1);
  3877. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3878. sequence.Items.Add(any2);
  3879. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3880. attribute1.Name = "namespace";
  3881. attribute1.FixedValue = ds.Namespace;
  3882. type.Attributes.Add(attribute1);
  3883. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3884. attribute2.Name = "tableTypeName";
  3885. attribute2.FixedValue = "Type4FilterDataTable";
  3886. type.Attributes.Add(attribute2);
  3887. type.Particle = sequence;
  3888. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3889. if (xs.Contains(dsSchema.TargetNamespace)) {
  3890. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3891. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3892. try {
  3893. global::System.Xml.Schema.XmlSchema schema = null;
  3894. dsSchema.Write(s1);
  3895. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3896. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3897. s2.SetLength(0);
  3898. schema.Write(s2);
  3899. if ((s1.Length == s2.Length)) {
  3900. s1.Position = 0;
  3901. s2.Position = 0;
  3902. for (; ((s1.Position != s1.Length)
  3903. && (s1.ReadByte() == s2.ReadByte())); ) {
  3904. ;
  3905. }
  3906. if ((s1.Position == s1.Length)) {
  3907. return type;
  3908. }
  3909. }
  3910. }
  3911. }
  3912. finally {
  3913. if ((s1 != null)) {
  3914. s1.Close();
  3915. }
  3916. if ((s2 != null)) {
  3917. s2.Close();
  3918. }
  3919. }
  3920. }
  3921. xs.Add(dsSchema);
  3922. return type;
  3923. }
  3924. }
  3925. /// <summary>
  3926. ///Represents strongly named DataRow class.
  3927. ///</summary>
  3928. public partial class CityRow : global::System.Data.DataRow {
  3929. private CityDataTable tableCity;
  3930. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3931. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3932. internal CityRow(global::System.Data.DataRowBuilder rb) :
  3933. base(rb) {
  3934. this.tableCity = ((CityDataTable)(this.Table));
  3935. }
  3936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3938. public int IDCity {
  3939. get {
  3940. return ((int)(this[this.tableCity.IDCityColumn]));
  3941. }
  3942. set {
  3943. this[this.tableCity.IDCityColumn] = value;
  3944. }
  3945. }
  3946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3948. public string City {
  3949. get {
  3950. try {
  3951. return ((string)(this[this.tableCity.CityColumn]));
  3952. }
  3953. catch (global::System.InvalidCastException e) {
  3954. throw new global::System.Data.StrongTypingException("The value for column \'City\' in table \'City\' is DBNull.", e);
  3955. }
  3956. }
  3957. set {
  3958. this[this.tableCity.CityColumn] = value;
  3959. }
  3960. }
  3961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3963. public bool IsCityNull() {
  3964. return this.IsNull(this.tableCity.CityColumn);
  3965. }
  3966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3968. public void SetCityNull() {
  3969. this[this.tableCity.CityColumn] = global::System.Convert.DBNull;
  3970. }
  3971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3973. public PartnerRow[] GetPartnerRows() {
  3974. if ((this.Table.ChildRelations["FK_Partner_City"] == null)) {
  3975. return new PartnerRow[0];
  3976. }
  3977. else {
  3978. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_City"])));
  3979. }
  3980. }
  3981. }
  3982. /// <summary>
  3983. ///Represents strongly named DataRow class.
  3984. ///</summary>
  3985. public partial class ManagerRow : global::System.Data.DataRow {
  3986. private ManagerDataTable tableManager;
  3987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3989. internal ManagerRow(global::System.Data.DataRowBuilder rb) :
  3990. base(rb) {
  3991. this.tableManager = ((ManagerDataTable)(this.Table));
  3992. }
  3993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3995. public int IDManager {
  3996. get {
  3997. return ((int)(this[this.tableManager.IDManagerColumn]));
  3998. }
  3999. set {
  4000. this[this.tableManager.IDManagerColumn] = value;
  4001. }
  4002. }
  4003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4005. public string Surname {
  4006. get {
  4007. try {
  4008. return ((string)(this[this.tableManager.SurnameColumn]));
  4009. }
  4010. catch (global::System.InvalidCastException e) {
  4011. throw new global::System.Data.StrongTypingException("The value for column \'Surname\' in table \'Manager\' is DBNull.", e);
  4012. }
  4013. }
  4014. set {
  4015. this[this.tableManager.SurnameColumn] = value;
  4016. }
  4017. }
  4018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4020. public string Name {
  4021. get {
  4022. try {
  4023. return ((string)(this[this.tableManager.NameColumn]));
  4024. }
  4025. catch (global::System.InvalidCastException e) {
  4026. throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Manager\' is DBNull.", e);
  4027. }
  4028. }
  4029. set {
  4030. this[this.tableManager.NameColumn] = value;
  4031. }
  4032. }
  4033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4035. public string Patronomyc {
  4036. get {
  4037. try {
  4038. return ((string)(this[this.tableManager.PatronomycColumn]));
  4039. }
  4040. catch (global::System.InvalidCastException e) {
  4041. throw new global::System.Data.StrongTypingException("The value for column \'Patronomyc\' in table \'Manager\' is DBNull.", e);
  4042. }
  4043. }
  4044. set {
  4045. this[this.tableManager.PatronomycColumn] = value;
  4046. }
  4047. }
  4048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4050. public string Login {
  4051. get {
  4052. try {
  4053. return ((string)(this[this.tableManager.LoginColumn]));
  4054. }
  4055. catch (global::System.InvalidCastException e) {
  4056. throw new global::System.Data.StrongTypingException("The value for column \'Login\' in table \'Manager\' is DBNull.", e);
  4057. }
  4058. }
  4059. set {
  4060. this[this.tableManager.LoginColumn] = value;
  4061. }
  4062. }
  4063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4065. public string Password {
  4066. get {
  4067. try {
  4068. return ((string)(this[this.tableManager.PasswordColumn]));
  4069. }
  4070. catch (global::System.InvalidCastException e) {
  4071. throw new global::System.Data.StrongTypingException("The value for column \'Password\' in table \'Manager\' is DBNull.", e);
  4072. }
  4073. }
  4074. set {
  4075. this[this.tableManager.PasswordColumn] = value;
  4076. }
  4077. }
  4078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4080. public string Photo {
  4081. get {
  4082. try {
  4083. return ((string)(this[this.tableManager.PhotoColumn]));
  4084. }
  4085. catch (global::System.InvalidCastException e) {
  4086. throw new global::System.Data.StrongTypingException("The value for column \'Photo\' in table \'Manager\' is DBNull.", e);
  4087. }
  4088. }
  4089. set {
  4090. this[this.tableManager.PhotoColumn] = value;
  4091. }
  4092. }
  4093. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4094. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4095. public bool IsSurnameNull() {
  4096. return this.IsNull(this.tableManager.SurnameColumn);
  4097. }
  4098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4100. public void SetSurnameNull() {
  4101. this[this.tableManager.SurnameColumn] = global::System.Convert.DBNull;
  4102. }
  4103. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4105. public bool IsNameNull() {
  4106. return this.IsNull(this.tableManager.NameColumn);
  4107. }
  4108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4110. public void SetNameNull() {
  4111. this[this.tableManager.NameColumn] = global::System.Convert.DBNull;
  4112. }
  4113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4115. public bool IsPatronomycNull() {
  4116. return this.IsNull(this.tableManager.PatronomycColumn);
  4117. }
  4118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4120. public void SetPatronomycNull() {
  4121. this[this.tableManager.PatronomycColumn] = global::System.Convert.DBNull;
  4122. }
  4123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4125. public bool IsLoginNull() {
  4126. return this.IsNull(this.tableManager.LoginColumn);
  4127. }
  4128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4129. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4130. public void SetLoginNull() {
  4131. this[this.tableManager.LoginColumn] = global::System.Convert.DBNull;
  4132. }
  4133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4135. public bool IsPasswordNull() {
  4136. return this.IsNull(this.tableManager.PasswordColumn);
  4137. }
  4138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4140. public void SetPasswordNull() {
  4141. this[this.tableManager.PasswordColumn] = global::System.Convert.DBNull;
  4142. }
  4143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4145. public bool IsPhotoNull() {
  4146. return this.IsNull(this.tableManager.PhotoColumn);
  4147. }
  4148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4150. public void SetPhotoNull() {
  4151. this[this.tableManager.PhotoColumn] = global::System.Convert.DBNull;
  4152. }
  4153. }
  4154. /// <summary>
  4155. ///Represents strongly named DataRow class.
  4156. ///</summary>
  4157. public partial class PartnerRow : global::System.Data.DataRow {
  4158. private PartnerDataTable tablePartner;
  4159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4161. internal PartnerRow(global::System.Data.DataRowBuilder rb) :
  4162. base(rb) {
  4163. this.tablePartner = ((PartnerDataTable)(this.Table));
  4164. }
  4165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4167. public int IDPartner {
  4168. get {
  4169. return ((int)(this[this.tablePartner.IDPartnerColumn]));
  4170. }
  4171. set {
  4172. this[this.tablePartner.IDPartnerColumn] = value;
  4173. }
  4174. }
  4175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4177. public int IDTypePartner {
  4178. get {
  4179. return ((int)(this[this.tablePartner.IDTypePartnerColumn]));
  4180. }
  4181. set {
  4182. this[this.tablePartner.IDTypePartnerColumn] = value;
  4183. }
  4184. }
  4185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4187. public string Namepartner {
  4188. get {
  4189. try {
  4190. return ((string)(this[this.tablePartner.NamepartnerColumn]));
  4191. }
  4192. catch (global::System.InvalidCastException e) {
  4193. throw new global::System.Data.StrongTypingException("The value for column \'Namepartner\' in table \'Partner\' is DBNull.", e);
  4194. }
  4195. }
  4196. set {
  4197. this[this.tablePartner.NamepartnerColumn] = value;
  4198. }
  4199. }
  4200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4202. public string Surname {
  4203. get {
  4204. try {
  4205. return ((string)(this[this.tablePartner.SurnameColumn]));
  4206. }
  4207. catch (global::System.InvalidCastException e) {
  4208. throw new global::System.Data.StrongTypingException("The value for column \'Surname\' in table \'Partner\' is DBNull.", e);
  4209. }
  4210. }
  4211. set {
  4212. this[this.tablePartner.SurnameColumn] = value;
  4213. }
  4214. }
  4215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4217. public string Name {
  4218. get {
  4219. try {
  4220. return ((string)(this[this.tablePartner.NameColumn]));
  4221. }
  4222. catch (global::System.InvalidCastException e) {
  4223. throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Partner\' is DBNull.", e);
  4224. }
  4225. }
  4226. set {
  4227. this[this.tablePartner.NameColumn] = value;
  4228. }
  4229. }
  4230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4232. public string Patronomyc {
  4233. get {
  4234. try {
  4235. return ((string)(this[this.tablePartner.PatronomycColumn]));
  4236. }
  4237. catch (global::System.InvalidCastException e) {
  4238. throw new global::System.Data.StrongTypingException("The value for column \'Patronomyc\' in table \'Partner\' is DBNull.", e);
  4239. }
  4240. }
  4241. set {
  4242. this[this.tablePartner.PatronomycColumn] = value;
  4243. }
  4244. }
  4245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4247. public string Email {
  4248. get {
  4249. try {
  4250. return ((string)(this[this.tablePartner.EmailColumn]));
  4251. }
  4252. catch (global::System.InvalidCastException e) {
  4253. throw new global::System.Data.StrongTypingException("The value for column \'Email\' in table \'Partner\' is DBNull.", e);
  4254. }
  4255. }
  4256. set {
  4257. this[this.tablePartner.EmailColumn] = value;
  4258. }
  4259. }
  4260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4262. public string Phone {
  4263. get {
  4264. try {
  4265. return ((string)(this[this.tablePartner.PhoneColumn]));
  4266. }
  4267. catch (global::System.InvalidCastException e) {
  4268. throw new global::System.Data.StrongTypingException("The value for column \'Phone\' in table \'Partner\' is DBNull.", e);
  4269. }
  4270. }
  4271. set {
  4272. this[this.tablePartner.PhoneColumn] = value;
  4273. }
  4274. }
  4275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4277. public int IDPostCode {
  4278. get {
  4279. try {
  4280. return ((int)(this[this.tablePartner.IDPostCodeColumn]));
  4281. }
  4282. catch (global::System.InvalidCastException e) {
  4283. throw new global::System.Data.StrongTypingException("The value for column \'IDPostCode\' in table \'Partner\' is DBNull.", e);
  4284. }
  4285. }
  4286. set {
  4287. this[this.tablePartner.IDPostCodeColumn] = value;
  4288. }
  4289. }
  4290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4292. public int IDRegion {
  4293. get {
  4294. try {
  4295. return ((int)(this[this.tablePartner.IDRegionColumn]));
  4296. }
  4297. catch (global::System.InvalidCastException e) {
  4298. throw new global::System.Data.StrongTypingException("The value for column \'IDRegion\' in table \'Partner\' is DBNull.", e);
  4299. }
  4300. }
  4301. set {
  4302. this[this.tablePartner.IDRegionColumn] = value;
  4303. }
  4304. }
  4305. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4306. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4307. public int IDCity {
  4308. get {
  4309. try {
  4310. return ((int)(this[this.tablePartner.IDCityColumn]));
  4311. }
  4312. catch (global::System.InvalidCastException e) {
  4313. throw new global::System.Data.StrongTypingException("The value for column \'IDCity\' in table \'Partner\' is DBNull.", e);
  4314. }
  4315. }
  4316. set {
  4317. this[this.tablePartner.IDCityColumn] = value;
  4318. }
  4319. }
  4320. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4321. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4322. public int IDStreet {
  4323. get {
  4324. try {
  4325. return ((int)(this[this.tablePartner.IDStreetColumn]));
  4326. }
  4327. catch (global::System.InvalidCastException e) {
  4328. throw new global::System.Data.StrongTypingException("The value for column \'IDStreet\' in table \'Partner\' is DBNull.", e);
  4329. }
  4330. }
  4331. set {
  4332. this[this.tablePartner.IDStreetColumn] = value;
  4333. }
  4334. }
  4335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4337. public int House {
  4338. get {
  4339. try {
  4340. return ((int)(this[this.tablePartner.HouseColumn]));
  4341. }
  4342. catch (global::System.InvalidCastException e) {
  4343. throw new global::System.Data.StrongTypingException("The value for column \'House\' in table \'Partner\' is DBNull.", e);
  4344. }
  4345. }
  4346. set {
  4347. this[this.tablePartner.HouseColumn] = value;
  4348. }
  4349. }
  4350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4352. public string INN {
  4353. get {
  4354. try {
  4355. return ((string)(this[this.tablePartner.INNColumn]));
  4356. }
  4357. catch (global::System.InvalidCastException e) {
  4358. throw new global::System.Data.StrongTypingException("The value for column \'INN\' in table \'Partner\' is DBNull.", e);
  4359. }
  4360. }
  4361. set {
  4362. this[this.tablePartner.INNColumn] = value;
  4363. }
  4364. }
  4365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4367. public int Rating {
  4368. get {
  4369. try {
  4370. return ((int)(this[this.tablePartner.RatingColumn]));
  4371. }
  4372. catch (global::System.InvalidCastException e) {
  4373. throw new global::System.Data.StrongTypingException("The value for column \'Rating\' in table \'Partner\' is DBNull.", e);
  4374. }
  4375. }
  4376. set {
  4377. this[this.tablePartner.RatingColumn] = value;
  4378. }
  4379. }
  4380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4382. public CityRow CityRow {
  4383. get {
  4384. return ((CityRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_City"])));
  4385. }
  4386. set {
  4387. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_City"]);
  4388. }
  4389. }
  4390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4392. public PostCodeRow PostCodeRow {
  4393. get {
  4394. return ((PostCodeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_PostCode"])));
  4395. }
  4396. set {
  4397. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_PostCode"]);
  4398. }
  4399. }
  4400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4402. public RegionRow RegionRow {
  4403. get {
  4404. return ((RegionRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_Region"])));
  4405. }
  4406. set {
  4407. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_Region"]);
  4408. }
  4409. }
  4410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4412. public StreetRow StreetRow {
  4413. get {
  4414. return ((StreetRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_Street"])));
  4415. }
  4416. set {
  4417. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_Street"]);
  4418. }
  4419. }
  4420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4422. public TypePartnerRow TypePartnerRow {
  4423. get {
  4424. return ((TypePartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_TypePartner"])));
  4425. }
  4426. set {
  4427. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_TypePartner"]);
  4428. }
  4429. }
  4430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4432. public bool IsNamepartnerNull() {
  4433. return this.IsNull(this.tablePartner.NamepartnerColumn);
  4434. }
  4435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4437. public void SetNamepartnerNull() {
  4438. this[this.tablePartner.NamepartnerColumn] = global::System.Convert.DBNull;
  4439. }
  4440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4442. public bool IsSurnameNull() {
  4443. return this.IsNull(this.tablePartner.SurnameColumn);
  4444. }
  4445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4447. public void SetSurnameNull() {
  4448. this[this.tablePartner.SurnameColumn] = global::System.Convert.DBNull;
  4449. }
  4450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4452. public bool IsNameNull() {
  4453. return this.IsNull(this.tablePartner.NameColumn);
  4454. }
  4455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4457. public void SetNameNull() {
  4458. this[this.tablePartner.NameColumn] = global::System.Convert.DBNull;
  4459. }
  4460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4462. public bool IsPatronomycNull() {
  4463. return this.IsNull(this.tablePartner.PatronomycColumn);
  4464. }
  4465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4467. public void SetPatronomycNull() {
  4468. this[this.tablePartner.PatronomycColumn] = global::System.Convert.DBNull;
  4469. }
  4470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4472. public bool IsEmailNull() {
  4473. return this.IsNull(this.tablePartner.EmailColumn);
  4474. }
  4475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4477. public void SetEmailNull() {
  4478. this[this.tablePartner.EmailColumn] = global::System.Convert.DBNull;
  4479. }
  4480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4482. public bool IsPhoneNull() {
  4483. return this.IsNull(this.tablePartner.PhoneColumn);
  4484. }
  4485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4487. public void SetPhoneNull() {
  4488. this[this.tablePartner.PhoneColumn] = global::System.Convert.DBNull;
  4489. }
  4490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4492. public bool IsIDPostCodeNull() {
  4493. return this.IsNull(this.tablePartner.IDPostCodeColumn);
  4494. }
  4495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4497. public void SetIDPostCodeNull() {
  4498. this[this.tablePartner.IDPostCodeColumn] = global::System.Convert.DBNull;
  4499. }
  4500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4502. public bool IsIDRegionNull() {
  4503. return this.IsNull(this.tablePartner.IDRegionColumn);
  4504. }
  4505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4507. public void SetIDRegionNull() {
  4508. this[this.tablePartner.IDRegionColumn] = global::System.Convert.DBNull;
  4509. }
  4510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4512. public bool IsIDCityNull() {
  4513. return this.IsNull(this.tablePartner.IDCityColumn);
  4514. }
  4515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4517. public void SetIDCityNull() {
  4518. this[this.tablePartner.IDCityColumn] = global::System.Convert.DBNull;
  4519. }
  4520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4521. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4522. public bool IsIDStreetNull() {
  4523. return this.IsNull(this.tablePartner.IDStreetColumn);
  4524. }
  4525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4526. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4527. public void SetIDStreetNull() {
  4528. this[this.tablePartner.IDStreetColumn] = global::System.Convert.DBNull;
  4529. }
  4530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4532. public bool IsHouseNull() {
  4533. return this.IsNull(this.tablePartner.HouseColumn);
  4534. }
  4535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4537. public void SetHouseNull() {
  4538. this[this.tablePartner.HouseColumn] = global::System.Convert.DBNull;
  4539. }
  4540. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4542. public bool IsINNNull() {
  4543. return this.IsNull(this.tablePartner.INNColumn);
  4544. }
  4545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4547. public void SetINNNull() {
  4548. this[this.tablePartner.INNColumn] = global::System.Convert.DBNull;
  4549. }
  4550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4552. public bool IsRatingNull() {
  4553. return this.IsNull(this.tablePartner.RatingColumn);
  4554. }
  4555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4557. public void SetRatingNull() {
  4558. this[this.tablePartner.RatingColumn] = global::System.Convert.DBNull;
  4559. }
  4560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4562. public PartnerProductsRow[] GetPartnerProductsRows() {
  4563. if ((this.Table.ChildRelations["FK_PartnerProducts_Partner"] == null)) {
  4564. return new PartnerProductsRow[0];
  4565. }
  4566. else {
  4567. return ((PartnerProductsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_PartnerProducts_Partner"])));
  4568. }
  4569. }
  4570. }
  4571. /// <summary>
  4572. ///Represents strongly named DataRow class.
  4573. ///</summary>
  4574. public partial class PartnerProductsRow : global::System.Data.DataRow {
  4575. private PartnerProductsDataTable tablePartnerProducts;
  4576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4578. internal PartnerProductsRow(global::System.Data.DataRowBuilder rb) :
  4579. base(rb) {
  4580. this.tablePartnerProducts = ((PartnerProductsDataTable)(this.Table));
  4581. }
  4582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4584. public int IDPartnerProduct {
  4585. get {
  4586. return ((int)(this[this.tablePartnerProducts.IDPartnerProductColumn]));
  4587. }
  4588. set {
  4589. this[this.tablePartnerProducts.IDPartnerProductColumn] = value;
  4590. }
  4591. }
  4592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4594. public int IDProduct {
  4595. get {
  4596. try {
  4597. return ((int)(this[this.tablePartnerProducts.IDProductColumn]));
  4598. }
  4599. catch (global::System.InvalidCastException e) {
  4600. throw new global::System.Data.StrongTypingException("The value for column \'IDProduct\' in table \'PartnerProducts\' is DBNull.", e);
  4601. }
  4602. }
  4603. set {
  4604. this[this.tablePartnerProducts.IDProductColumn] = value;
  4605. }
  4606. }
  4607. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4609. public int IDPartner {
  4610. get {
  4611. try {
  4612. return ((int)(this[this.tablePartnerProducts.IDPartnerColumn]));
  4613. }
  4614. catch (global::System.InvalidCastException e) {
  4615. throw new global::System.Data.StrongTypingException("The value for column \'IDPartner\' in table \'PartnerProducts\' is DBNull.", e);
  4616. }
  4617. }
  4618. set {
  4619. this[this.tablePartnerProducts.IDPartnerColumn] = value;
  4620. }
  4621. }
  4622. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4623. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4624. public int CountProduct {
  4625. get {
  4626. try {
  4627. return ((int)(this[this.tablePartnerProducts.CountProductColumn]));
  4628. }
  4629. catch (global::System.InvalidCastException e) {
  4630. throw new global::System.Data.StrongTypingException("The value for column \'CountProduct\' in table \'PartnerProducts\' is DBNull.", e);
  4631. }
  4632. }
  4633. set {
  4634. this[this.tablePartnerProducts.CountProductColumn] = value;
  4635. }
  4636. }
  4637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4639. public System.DateTime DateSale {
  4640. get {
  4641. try {
  4642. return ((global::System.DateTime)(this[this.tablePartnerProducts.DateSaleColumn]));
  4643. }
  4644. catch (global::System.InvalidCastException e) {
  4645. throw new global::System.Data.StrongTypingException("The value for column \'DateSale\' in table \'PartnerProducts\' is DBNull.", e);
  4646. }
  4647. }
  4648. set {
  4649. this[this.tablePartnerProducts.DateSaleColumn] = value;
  4650. }
  4651. }
  4652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4654. public PartnerRow PartnerRow {
  4655. get {
  4656. return ((PartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_PartnerProducts_Partner"])));
  4657. }
  4658. set {
  4659. this.SetParentRow(value, this.Table.ParentRelations["FK_PartnerProducts_Partner"]);
  4660. }
  4661. }
  4662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4664. public ProductRow ProductRow {
  4665. get {
  4666. return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_PartnerProducts_Product"])));
  4667. }
  4668. set {
  4669. this.SetParentRow(value, this.Table.ParentRelations["FK_PartnerProducts_Product"]);
  4670. }
  4671. }
  4672. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4674. public bool IsIDProductNull() {
  4675. return this.IsNull(this.tablePartnerProducts.IDProductColumn);
  4676. }
  4677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4679. public void SetIDProductNull() {
  4680. this[this.tablePartnerProducts.IDProductColumn] = global::System.Convert.DBNull;
  4681. }
  4682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4684. public bool IsIDPartnerNull() {
  4685. return this.IsNull(this.tablePartnerProducts.IDPartnerColumn);
  4686. }
  4687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4689. public void SetIDPartnerNull() {
  4690. this[this.tablePartnerProducts.IDPartnerColumn] = global::System.Convert.DBNull;
  4691. }
  4692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4694. public bool IsCountProductNull() {
  4695. return this.IsNull(this.tablePartnerProducts.CountProductColumn);
  4696. }
  4697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4699. public void SetCountProductNull() {
  4700. this[this.tablePartnerProducts.CountProductColumn] = global::System.Convert.DBNull;
  4701. }
  4702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4704. public bool IsDateSaleNull() {
  4705. return this.IsNull(this.tablePartnerProducts.DateSaleColumn);
  4706. }
  4707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4709. public void SetDateSaleNull() {
  4710. this[this.tablePartnerProducts.DateSaleColumn] = global::System.Convert.DBNull;
  4711. }
  4712. }
  4713. /// <summary>
  4714. ///Represents strongly named DataRow class.
  4715. ///</summary>
  4716. public partial class PostCodeRow : global::System.Data.DataRow {
  4717. private PostCodeDataTable tablePostCode;
  4718. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4719. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4720. internal PostCodeRow(global::System.Data.DataRowBuilder rb) :
  4721. base(rb) {
  4722. this.tablePostCode = ((PostCodeDataTable)(this.Table));
  4723. }
  4724. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4725. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4726. public int IDPostCode {
  4727. get {
  4728. return ((int)(this[this.tablePostCode.IDPostCodeColumn]));
  4729. }
  4730. set {
  4731. this[this.tablePostCode.IDPostCodeColumn] = value;
  4732. }
  4733. }
  4734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4736. public int PostCode {
  4737. get {
  4738. try {
  4739. return ((int)(this[this.tablePostCode.PostCodeColumn]));
  4740. }
  4741. catch (global::System.InvalidCastException e) {
  4742. throw new global::System.Data.StrongTypingException("The value for column \'PostCode\' in table \'PostCode\' is DBNull.", e);
  4743. }
  4744. }
  4745. set {
  4746. this[this.tablePostCode.PostCodeColumn] = value;
  4747. }
  4748. }
  4749. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4750. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4751. public bool IsPostCodeNull() {
  4752. return this.IsNull(this.tablePostCode.PostCodeColumn);
  4753. }
  4754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4756. public void SetPostCodeNull() {
  4757. this[this.tablePostCode.PostCodeColumn] = global::System.Convert.DBNull;
  4758. }
  4759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4761. public PartnerRow[] GetPartnerRows() {
  4762. if ((this.Table.ChildRelations["FK_Partner_PostCode"] == null)) {
  4763. return new PartnerRow[0];
  4764. }
  4765. else {
  4766. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_PostCode"])));
  4767. }
  4768. }
  4769. }
  4770. /// <summary>
  4771. ///Represents strongly named DataRow class.
  4772. ///</summary>
  4773. public partial class ProductRow : global::System.Data.DataRow {
  4774. private ProductDataTable tableProduct;
  4775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4777. internal ProductRow(global::System.Data.DataRowBuilder rb) :
  4778. base(rb) {
  4779. this.tableProduct = ((ProductDataTable)(this.Table));
  4780. }
  4781. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4782. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4783. public int IDProduct {
  4784. get {
  4785. return ((int)(this[this.tableProduct.IDProductColumn]));
  4786. }
  4787. set {
  4788. this[this.tableProduct.IDProductColumn] = value;
  4789. }
  4790. }
  4791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4793. public int IDProductType {
  4794. get {
  4795. try {
  4796. return ((int)(this[this.tableProduct.IDProductTypeColumn]));
  4797. }
  4798. catch (global::System.InvalidCastException e) {
  4799. throw new global::System.Data.StrongTypingException("The value for column \'IDProductType\' in table \'Product\' is DBNull.", e);
  4800. }
  4801. }
  4802. set {
  4803. this[this.tableProduct.IDProductTypeColumn] = value;
  4804. }
  4805. }
  4806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4808. public string ProductName {
  4809. get {
  4810. try {
  4811. return ((string)(this[this.tableProduct.ProductNameColumn]));
  4812. }
  4813. catch (global::System.InvalidCastException e) {
  4814. throw new global::System.Data.StrongTypingException("The value for column \'ProductName\' in table \'Product\' is DBNull.", e);
  4815. }
  4816. }
  4817. set {
  4818. this[this.tableProduct.ProductNameColumn] = value;
  4819. }
  4820. }
  4821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4823. public string Article {
  4824. get {
  4825. try {
  4826. return ((string)(this[this.tableProduct.ArticleColumn]));
  4827. }
  4828. catch (global::System.InvalidCastException e) {
  4829. throw new global::System.Data.StrongTypingException("The value for column \'Article\' in table \'Product\' is DBNull.", e);
  4830. }
  4831. }
  4832. set {
  4833. this[this.tableProduct.ArticleColumn] = value;
  4834. }
  4835. }
  4836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4838. public decimal Cost {
  4839. get {
  4840. try {
  4841. return ((decimal)(this[this.tableProduct.CostColumn]));
  4842. }
  4843. catch (global::System.InvalidCastException e) {
  4844. throw new global::System.Data.StrongTypingException("The value for column \'Cost\' in table \'Product\' is DBNull.", e);
  4845. }
  4846. }
  4847. set {
  4848. this[this.tableProduct.CostColumn] = value;
  4849. }
  4850. }
  4851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4853. public ProductTypeRow ProductTypeRow {
  4854. get {
  4855. return ((ProductTypeRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_ProductType"])));
  4856. }
  4857. set {
  4858. this.SetParentRow(value, this.Table.ParentRelations["FK_Product_ProductType"]);
  4859. }
  4860. }
  4861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4863. public bool IsIDProductTypeNull() {
  4864. return this.IsNull(this.tableProduct.IDProductTypeColumn);
  4865. }
  4866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4868. public void SetIDProductTypeNull() {
  4869. this[this.tableProduct.IDProductTypeColumn] = global::System.Convert.DBNull;
  4870. }
  4871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4873. public bool IsProductNameNull() {
  4874. return this.IsNull(this.tableProduct.ProductNameColumn);
  4875. }
  4876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4878. public void SetProductNameNull() {
  4879. this[this.tableProduct.ProductNameColumn] = global::System.Convert.DBNull;
  4880. }
  4881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4883. public bool IsArticleNull() {
  4884. return this.IsNull(this.tableProduct.ArticleColumn);
  4885. }
  4886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4888. public void SetArticleNull() {
  4889. this[this.tableProduct.ArticleColumn] = global::System.Convert.DBNull;
  4890. }
  4891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4892. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4893. public bool IsCostNull() {
  4894. return this.IsNull(this.tableProduct.CostColumn);
  4895. }
  4896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4897. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4898. public void SetCostNull() {
  4899. this[this.tableProduct.CostColumn] = global::System.Convert.DBNull;
  4900. }
  4901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4903. public PartnerProductsRow[] GetPartnerProductsRows() {
  4904. if ((this.Table.ChildRelations["FK_PartnerProducts_Product"] == null)) {
  4905. return new PartnerProductsRow[0];
  4906. }
  4907. else {
  4908. return ((PartnerProductsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_PartnerProducts_Product"])));
  4909. }
  4910. }
  4911. }
  4912. /// <summary>
  4913. ///Represents strongly named DataRow class.
  4914. ///</summary>
  4915. public partial class ProductTypeRow : global::System.Data.DataRow {
  4916. private ProductTypeDataTable tableProductType;
  4917. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4918. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4919. internal ProductTypeRow(global::System.Data.DataRowBuilder rb) :
  4920. base(rb) {
  4921. this.tableProductType = ((ProductTypeDataTable)(this.Table));
  4922. }
  4923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4925. public int IDProductType {
  4926. get {
  4927. return ((int)(this[this.tableProductType.IDProductTypeColumn]));
  4928. }
  4929. set {
  4930. this[this.tableProductType.IDProductTypeColumn] = value;
  4931. }
  4932. }
  4933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4935. public string ProductType {
  4936. get {
  4937. try {
  4938. return ((string)(this[this.tableProductType.ProductTypeColumn]));
  4939. }
  4940. catch (global::System.InvalidCastException e) {
  4941. throw new global::System.Data.StrongTypingException("The value for column \'ProductType\' in table \'ProductType\' is DBNull.", e);
  4942. }
  4943. }
  4944. set {
  4945. this[this.tableProductType.ProductTypeColumn] = value;
  4946. }
  4947. }
  4948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4949. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4950. public double Сoefficient {
  4951. get {
  4952. try {
  4953. return ((double)(this[this.tableProductType.СoefficientColumn]));
  4954. }
  4955. catch (global::System.InvalidCastException e) {
  4956. throw new global::System.Data.StrongTypingException("The value for column \'Сoefficient\' in table \'ProductType\' is DBNull.", e);
  4957. }
  4958. }
  4959. set {
  4960. this[this.tableProductType.СoefficientColumn] = value;
  4961. }
  4962. }
  4963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4965. public bool IsProductTypeNull() {
  4966. return this.IsNull(this.tableProductType.ProductTypeColumn);
  4967. }
  4968. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4969. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4970. public void SetProductTypeNull() {
  4971. this[this.tableProductType.ProductTypeColumn] = global::System.Convert.DBNull;
  4972. }
  4973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4975. public bool IsСoefficientNull() {
  4976. return this.IsNull(this.tableProductType.СoefficientColumn);
  4977. }
  4978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4980. public void SetСoefficientNull() {
  4981. this[this.tableProductType.СoefficientColumn] = global::System.Convert.DBNull;
  4982. }
  4983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4985. public ProductRow[] GetProductRows() {
  4986. if ((this.Table.ChildRelations["FK_Product_ProductType"] == null)) {
  4987. return new ProductRow[0];
  4988. }
  4989. else {
  4990. return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_ProductType"])));
  4991. }
  4992. }
  4993. }
  4994. /// <summary>
  4995. ///Represents strongly named DataRow class.
  4996. ///</summary>
  4997. public partial class RegionRow : global::System.Data.DataRow {
  4998. private RegionDataTable tableRegion;
  4999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5001. internal RegionRow(global::System.Data.DataRowBuilder rb) :
  5002. base(rb) {
  5003. this.tableRegion = ((RegionDataTable)(this.Table));
  5004. }
  5005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5007. public int IDRegion {
  5008. get {
  5009. return ((int)(this[this.tableRegion.IDRegionColumn]));
  5010. }
  5011. set {
  5012. this[this.tableRegion.IDRegionColumn] = value;
  5013. }
  5014. }
  5015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5017. public string Region {
  5018. get {
  5019. try {
  5020. return ((string)(this[this.tableRegion.RegionColumn]));
  5021. }
  5022. catch (global::System.InvalidCastException e) {
  5023. throw new global::System.Data.StrongTypingException("The value for column \'Region\' in table \'Region\' is DBNull.", e);
  5024. }
  5025. }
  5026. set {
  5027. this[this.tableRegion.RegionColumn] = value;
  5028. }
  5029. }
  5030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5032. public bool IsRegionNull() {
  5033. return this.IsNull(this.tableRegion.RegionColumn);
  5034. }
  5035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5037. public void SetRegionNull() {
  5038. this[this.tableRegion.RegionColumn] = global::System.Convert.DBNull;
  5039. }
  5040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5042. public PartnerRow[] GetPartnerRows() {
  5043. if ((this.Table.ChildRelations["FK_Partner_Region"] == null)) {
  5044. return new PartnerRow[0];
  5045. }
  5046. else {
  5047. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_Region"])));
  5048. }
  5049. }
  5050. }
  5051. /// <summary>
  5052. ///Represents strongly named DataRow class.
  5053. ///</summary>
  5054. public partial class StreetRow : global::System.Data.DataRow {
  5055. private StreetDataTable tableStreet;
  5056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5058. internal StreetRow(global::System.Data.DataRowBuilder rb) :
  5059. base(rb) {
  5060. this.tableStreet = ((StreetDataTable)(this.Table));
  5061. }
  5062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5064. public int IDStreet {
  5065. get {
  5066. return ((int)(this[this.tableStreet.IDStreetColumn]));
  5067. }
  5068. set {
  5069. this[this.tableStreet.IDStreetColumn] = value;
  5070. }
  5071. }
  5072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5074. public string Street {
  5075. get {
  5076. try {
  5077. return ((string)(this[this.tableStreet.StreetColumn]));
  5078. }
  5079. catch (global::System.InvalidCastException e) {
  5080. throw new global::System.Data.StrongTypingException("The value for column \'Street\' in table \'Street\' is DBNull.", e);
  5081. }
  5082. }
  5083. set {
  5084. this[this.tableStreet.StreetColumn] = value;
  5085. }
  5086. }
  5087. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5088. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5089. public bool IsStreetNull() {
  5090. return this.IsNull(this.tableStreet.StreetColumn);
  5091. }
  5092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5094. public void SetStreetNull() {
  5095. this[this.tableStreet.StreetColumn] = global::System.Convert.DBNull;
  5096. }
  5097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5099. public PartnerRow[] GetPartnerRows() {
  5100. if ((this.Table.ChildRelations["FK_Partner_Street"] == null)) {
  5101. return new PartnerRow[0];
  5102. }
  5103. else {
  5104. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_Street"])));
  5105. }
  5106. }
  5107. }
  5108. /// <summary>
  5109. ///Represents strongly named DataRow class.
  5110. ///</summary>
  5111. public partial class TypeMaterialRow : global::System.Data.DataRow {
  5112. private TypeMaterialDataTable tableTypeMaterial;
  5113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5115. internal TypeMaterialRow(global::System.Data.DataRowBuilder rb) :
  5116. base(rb) {
  5117. this.tableTypeMaterial = ((TypeMaterialDataTable)(this.Table));
  5118. }
  5119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5121. public int IDTypeMaterial {
  5122. get {
  5123. return ((int)(this[this.tableTypeMaterial.IDTypeMaterialColumn]));
  5124. }
  5125. set {
  5126. this[this.tableTypeMaterial.IDTypeMaterialColumn] = value;
  5127. }
  5128. }
  5129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5131. public string TypeMaterial {
  5132. get {
  5133. try {
  5134. return ((string)(this[this.tableTypeMaterial.TypeMaterialColumn]));
  5135. }
  5136. catch (global::System.InvalidCastException e) {
  5137. throw new global::System.Data.StrongTypingException("The value for column \'TypeMaterial\' in table \'TypeMaterial\' is DBNull.", e);
  5138. }
  5139. }
  5140. set {
  5141. this[this.tableTypeMaterial.TypeMaterialColumn] = value;
  5142. }
  5143. }
  5144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5146. public double DefectPercent {
  5147. get {
  5148. try {
  5149. return ((double)(this[this.tableTypeMaterial.DefectPercentColumn]));
  5150. }
  5151. catch (global::System.InvalidCastException e) {
  5152. throw new global::System.Data.StrongTypingException("The value for column \'DefectPercent\' in table \'TypeMaterial\' is DBNull.", e);
  5153. }
  5154. }
  5155. set {
  5156. this[this.tableTypeMaterial.DefectPercentColumn] = value;
  5157. }
  5158. }
  5159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5161. public bool IsTypeMaterialNull() {
  5162. return this.IsNull(this.tableTypeMaterial.TypeMaterialColumn);
  5163. }
  5164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5166. public void SetTypeMaterialNull() {
  5167. this[this.tableTypeMaterial.TypeMaterialColumn] = global::System.Convert.DBNull;
  5168. }
  5169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5171. public bool IsDefectPercentNull() {
  5172. return this.IsNull(this.tableTypeMaterial.DefectPercentColumn);
  5173. }
  5174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5176. public void SetDefectPercentNull() {
  5177. this[this.tableTypeMaterial.DefectPercentColumn] = global::System.Convert.DBNull;
  5178. }
  5179. }
  5180. /// <summary>
  5181. ///Represents strongly named DataRow class.
  5182. ///</summary>
  5183. public partial class TypePartnerRow : global::System.Data.DataRow {
  5184. private TypePartnerDataTable tableTypePartner;
  5185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5187. internal TypePartnerRow(global::System.Data.DataRowBuilder rb) :
  5188. base(rb) {
  5189. this.tableTypePartner = ((TypePartnerDataTable)(this.Table));
  5190. }
  5191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5193. public int IDTypePartner {
  5194. get {
  5195. return ((int)(this[this.tableTypePartner.IDTypePartnerColumn]));
  5196. }
  5197. set {
  5198. this[this.tableTypePartner.IDTypePartnerColumn] = value;
  5199. }
  5200. }
  5201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5203. public string TypePartner {
  5204. get {
  5205. try {
  5206. return ((string)(this[this.tableTypePartner.TypePartnerColumn]));
  5207. }
  5208. catch (global::System.InvalidCastException e) {
  5209. throw new global::System.Data.StrongTypingException("The value for column \'TypePartner\' in table \'TypePartner\' is DBNull.", e);
  5210. }
  5211. }
  5212. set {
  5213. this[this.tableTypePartner.TypePartnerColumn] = value;
  5214. }
  5215. }
  5216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5218. public bool IsTypePartnerNull() {
  5219. return this.IsNull(this.tableTypePartner.TypePartnerColumn);
  5220. }
  5221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5223. public void SetTypePartnerNull() {
  5224. this[this.tableTypePartner.TypePartnerColumn] = global::System.Convert.DBNull;
  5225. }
  5226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5228. public PartnerRow[] GetPartnerRows() {
  5229. if ((this.Table.ChildRelations["FK_Partner_TypePartner"] == null)) {
  5230. return new PartnerRow[0];
  5231. }
  5232. else {
  5233. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_TypePartner"])));
  5234. }
  5235. }
  5236. }
  5237. /// <summary>
  5238. ///Represents strongly named DataRow class.
  5239. ///</summary>
  5240. public partial class Type4FilterRow : global::System.Data.DataRow {
  5241. private Type4FilterDataTable tableType4Filter;
  5242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5244. internal Type4FilterRow(global::System.Data.DataRowBuilder rb) :
  5245. base(rb) {
  5246. this.tableType4Filter = ((Type4FilterDataTable)(this.Table));
  5247. }
  5248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5250. public string TypePartner {
  5251. get {
  5252. try {
  5253. return ((string)(this[this.tableType4Filter.TypePartnerColumn]));
  5254. }
  5255. catch (global::System.InvalidCastException e) {
  5256. throw new global::System.Data.StrongTypingException("The value for column \'TypePartner\' in table \'Type4Filter\' is DBNull.", e);
  5257. }
  5258. }
  5259. set {
  5260. this[this.tableType4Filter.TypePartnerColumn] = value;
  5261. }
  5262. }
  5263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5265. public bool IsTypePartnerNull() {
  5266. return this.IsNull(this.tableType4Filter.TypePartnerColumn);
  5267. }
  5268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5270. public void SetTypePartnerNull() {
  5271. this[this.tableType4Filter.TypePartnerColumn] = global::System.Convert.DBNull;
  5272. }
  5273. }
  5274. /// <summary>
  5275. ///Row event argument class
  5276. ///</summary>
  5277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5278. public class CityRowChangeEvent : global::System.EventArgs {
  5279. private CityRow eventRow;
  5280. private global::System.Data.DataRowAction eventAction;
  5281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5283. public CityRowChangeEvent(CityRow row, global::System.Data.DataRowAction action) {
  5284. this.eventRow = row;
  5285. this.eventAction = action;
  5286. }
  5287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5289. public CityRow Row {
  5290. get {
  5291. return this.eventRow;
  5292. }
  5293. }
  5294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5296. public global::System.Data.DataRowAction Action {
  5297. get {
  5298. return this.eventAction;
  5299. }
  5300. }
  5301. }
  5302. /// <summary>
  5303. ///Row event argument class
  5304. ///</summary>
  5305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5306. public class ManagerRowChangeEvent : global::System.EventArgs {
  5307. private ManagerRow eventRow;
  5308. private global::System.Data.DataRowAction eventAction;
  5309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5311. public ManagerRowChangeEvent(ManagerRow row, global::System.Data.DataRowAction action) {
  5312. this.eventRow = row;
  5313. this.eventAction = action;
  5314. }
  5315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5317. public ManagerRow Row {
  5318. get {
  5319. return this.eventRow;
  5320. }
  5321. }
  5322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5324. public global::System.Data.DataRowAction Action {
  5325. get {
  5326. return this.eventAction;
  5327. }
  5328. }
  5329. }
  5330. /// <summary>
  5331. ///Row event argument class
  5332. ///</summary>
  5333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5334. public class PartnerRowChangeEvent : global::System.EventArgs {
  5335. private PartnerRow eventRow;
  5336. private global::System.Data.DataRowAction eventAction;
  5337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5339. public PartnerRowChangeEvent(PartnerRow row, global::System.Data.DataRowAction action) {
  5340. this.eventRow = row;
  5341. this.eventAction = action;
  5342. }
  5343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5345. public PartnerRow Row {
  5346. get {
  5347. return this.eventRow;
  5348. }
  5349. }
  5350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5352. public global::System.Data.DataRowAction Action {
  5353. get {
  5354. return this.eventAction;
  5355. }
  5356. }
  5357. }
  5358. /// <summary>
  5359. ///Row event argument class
  5360. ///</summary>
  5361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5362. public class PartnerProductsRowChangeEvent : global::System.EventArgs {
  5363. private PartnerProductsRow eventRow;
  5364. private global::System.Data.DataRowAction eventAction;
  5365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5367. public PartnerProductsRowChangeEvent(PartnerProductsRow row, global::System.Data.DataRowAction action) {
  5368. this.eventRow = row;
  5369. this.eventAction = action;
  5370. }
  5371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5373. public PartnerProductsRow Row {
  5374. get {
  5375. return this.eventRow;
  5376. }
  5377. }
  5378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5380. public global::System.Data.DataRowAction Action {
  5381. get {
  5382. return this.eventAction;
  5383. }
  5384. }
  5385. }
  5386. /// <summary>
  5387. ///Row event argument class
  5388. ///</summary>
  5389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5390. public class PostCodeRowChangeEvent : global::System.EventArgs {
  5391. private PostCodeRow eventRow;
  5392. private global::System.Data.DataRowAction eventAction;
  5393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5395. public PostCodeRowChangeEvent(PostCodeRow row, global::System.Data.DataRowAction action) {
  5396. this.eventRow = row;
  5397. this.eventAction = action;
  5398. }
  5399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5401. public PostCodeRow Row {
  5402. get {
  5403. return this.eventRow;
  5404. }
  5405. }
  5406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5408. public global::System.Data.DataRowAction Action {
  5409. get {
  5410. return this.eventAction;
  5411. }
  5412. }
  5413. }
  5414. /// <summary>
  5415. ///Row event argument class
  5416. ///</summary>
  5417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5418. public class ProductRowChangeEvent : global::System.EventArgs {
  5419. private ProductRow eventRow;
  5420. private global::System.Data.DataRowAction eventAction;
  5421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5423. public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
  5424. this.eventRow = row;
  5425. this.eventAction = action;
  5426. }
  5427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5429. public ProductRow Row {
  5430. get {
  5431. return this.eventRow;
  5432. }
  5433. }
  5434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5436. public global::System.Data.DataRowAction Action {
  5437. get {
  5438. return this.eventAction;
  5439. }
  5440. }
  5441. }
  5442. /// <summary>
  5443. ///Row event argument class
  5444. ///</summary>
  5445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5446. public class ProductTypeRowChangeEvent : global::System.EventArgs {
  5447. private ProductTypeRow eventRow;
  5448. private global::System.Data.DataRowAction eventAction;
  5449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5451. public ProductTypeRowChangeEvent(ProductTypeRow row, global::System.Data.DataRowAction action) {
  5452. this.eventRow = row;
  5453. this.eventAction = action;
  5454. }
  5455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5457. public ProductTypeRow Row {
  5458. get {
  5459. return this.eventRow;
  5460. }
  5461. }
  5462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5464. public global::System.Data.DataRowAction Action {
  5465. get {
  5466. return this.eventAction;
  5467. }
  5468. }
  5469. }
  5470. /// <summary>
  5471. ///Row event argument class
  5472. ///</summary>
  5473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5474. public class RegionRowChangeEvent : global::System.EventArgs {
  5475. private RegionRow eventRow;
  5476. private global::System.Data.DataRowAction eventAction;
  5477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5479. public RegionRowChangeEvent(RegionRow row, global::System.Data.DataRowAction action) {
  5480. this.eventRow = row;
  5481. this.eventAction = action;
  5482. }
  5483. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5485. public RegionRow Row {
  5486. get {
  5487. return this.eventRow;
  5488. }
  5489. }
  5490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5492. public global::System.Data.DataRowAction Action {
  5493. get {
  5494. return this.eventAction;
  5495. }
  5496. }
  5497. }
  5498. /// <summary>
  5499. ///Row event argument class
  5500. ///</summary>
  5501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5502. public class StreetRowChangeEvent : global::System.EventArgs {
  5503. private StreetRow eventRow;
  5504. private global::System.Data.DataRowAction eventAction;
  5505. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5506. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5507. public StreetRowChangeEvent(StreetRow row, global::System.Data.DataRowAction action) {
  5508. this.eventRow = row;
  5509. this.eventAction = action;
  5510. }
  5511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5513. public StreetRow Row {
  5514. get {
  5515. return this.eventRow;
  5516. }
  5517. }
  5518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5520. public global::System.Data.DataRowAction Action {
  5521. get {
  5522. return this.eventAction;
  5523. }
  5524. }
  5525. }
  5526. /// <summary>
  5527. ///Row event argument class
  5528. ///</summary>
  5529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5530. public class TypeMaterialRowChangeEvent : global::System.EventArgs {
  5531. private TypeMaterialRow eventRow;
  5532. private global::System.Data.DataRowAction eventAction;
  5533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5535. public TypeMaterialRowChangeEvent(TypeMaterialRow row, global::System.Data.DataRowAction action) {
  5536. this.eventRow = row;
  5537. this.eventAction = action;
  5538. }
  5539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5541. public TypeMaterialRow Row {
  5542. get {
  5543. return this.eventRow;
  5544. }
  5545. }
  5546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5548. public global::System.Data.DataRowAction Action {
  5549. get {
  5550. return this.eventAction;
  5551. }
  5552. }
  5553. }
  5554. /// <summary>
  5555. ///Row event argument class
  5556. ///</summary>
  5557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5558. public class TypePartnerRowChangeEvent : global::System.EventArgs {
  5559. private TypePartnerRow eventRow;
  5560. private global::System.Data.DataRowAction eventAction;
  5561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5563. public TypePartnerRowChangeEvent(TypePartnerRow row, global::System.Data.DataRowAction action) {
  5564. this.eventRow = row;
  5565. this.eventAction = action;
  5566. }
  5567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5569. public TypePartnerRow Row {
  5570. get {
  5571. return this.eventRow;
  5572. }
  5573. }
  5574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5576. public global::System.Data.DataRowAction Action {
  5577. get {
  5578. return this.eventAction;
  5579. }
  5580. }
  5581. }
  5582. /// <summary>
  5583. ///Row event argument class
  5584. ///</summary>
  5585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5586. public class Type4FilterRowChangeEvent : global::System.EventArgs {
  5587. private Type4FilterRow eventRow;
  5588. private global::System.Data.DataRowAction eventAction;
  5589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5591. public Type4FilterRowChangeEvent(Type4FilterRow row, global::System.Data.DataRowAction action) {
  5592. this.eventRow = row;
  5593. this.eventAction = action;
  5594. }
  5595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5597. public Type4FilterRow Row {
  5598. get {
  5599. return this.eventRow;
  5600. }
  5601. }
  5602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5604. public global::System.Data.DataRowAction Action {
  5605. get {
  5606. return this.eventAction;
  5607. }
  5608. }
  5609. }
  5610. }
  5611. }
  5612. namespace СУБД_Альфапол.AlfafloorGDVDataSetTableAdapters {
  5613. /// <summary>
  5614. ///Represents the connection and commands used to retrieve and save data.
  5615. ///</summary>
  5616. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5617. [global::System.ComponentModel.ToolboxItem(true)]
  5618. [global::System.ComponentModel.DataObjectAttribute(true)]
  5619. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5620. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5621. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5622. public partial class CityTableAdapter : global::System.ComponentModel.Component {
  5623. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5624. private global::System.Data.SqlClient.SqlConnection _connection;
  5625. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5626. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5627. private bool _clearBeforeFill;
  5628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5630. public CityTableAdapter() {
  5631. this.ClearBeforeFill = true;
  5632. }
  5633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5635. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5636. get {
  5637. if ((this._adapter == null)) {
  5638. this.InitAdapter();
  5639. }
  5640. return this._adapter;
  5641. }
  5642. }
  5643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5645. internal global::System.Data.SqlClient.SqlConnection Connection {
  5646. get {
  5647. if ((this._connection == null)) {
  5648. this.InitConnection();
  5649. }
  5650. return this._connection;
  5651. }
  5652. set {
  5653. this._connection = value;
  5654. if ((this.Adapter.InsertCommand != null)) {
  5655. this.Adapter.InsertCommand.Connection = value;
  5656. }
  5657. if ((this.Adapter.DeleteCommand != null)) {
  5658. this.Adapter.DeleteCommand.Connection = value;
  5659. }
  5660. if ((this.Adapter.UpdateCommand != null)) {
  5661. this.Adapter.UpdateCommand.Connection = value;
  5662. }
  5663. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5664. if ((this.CommandCollection[i] != null)) {
  5665. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5666. }
  5667. }
  5668. }
  5669. }
  5670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5672. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5673. get {
  5674. return this._transaction;
  5675. }
  5676. set {
  5677. this._transaction = value;
  5678. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5679. this.CommandCollection[i].Transaction = this._transaction;
  5680. }
  5681. if (((this.Adapter != null)
  5682. && (this.Adapter.DeleteCommand != null))) {
  5683. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5684. }
  5685. if (((this.Adapter != null)
  5686. && (this.Adapter.InsertCommand != null))) {
  5687. this.Adapter.InsertCommand.Transaction = this._transaction;
  5688. }
  5689. if (((this.Adapter != null)
  5690. && (this.Adapter.UpdateCommand != null))) {
  5691. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5692. }
  5693. }
  5694. }
  5695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5697. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5698. get {
  5699. if ((this._commandCollection == null)) {
  5700. this.InitCommandCollection();
  5701. }
  5702. return this._commandCollection;
  5703. }
  5704. }
  5705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5707. public bool ClearBeforeFill {
  5708. get {
  5709. return this._clearBeforeFill;
  5710. }
  5711. set {
  5712. this._clearBeforeFill = value;
  5713. }
  5714. }
  5715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5717. private void InitAdapter() {
  5718. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  5719. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  5720. tableMapping.SourceTable = "Table";
  5721. tableMapping.DataSetTable = "City";
  5722. tableMapping.ColumnMappings.Add("IDCity", "IDCity");
  5723. tableMapping.ColumnMappings.Add("City", "City");
  5724. this._adapter.TableMappings.Add(tableMapping);
  5725. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  5726. this._adapter.DeleteCommand.Connection = this.Connection;
  5727. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[City] WHERE (([IDCity] = @Original_IDCity) AND ((@IsNull_City " +
  5728. "= 1 AND [City] IS NULL) OR ([City] = @Original_City)))";
  5729. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  5730. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDCity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5731. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_City", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5732. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_City", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5733. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  5734. this._adapter.InsertCommand.Connection = this.Connection;
  5735. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[City] ([City]) VALUES (@City);\r\nSELECT IDCity, City FROM City " +
  5736. "WHERE (IDCity = SCOPE_IDENTITY())";
  5737. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  5738. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@City", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5739. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  5740. this._adapter.UpdateCommand.Connection = this.Connection;
  5741. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[City] SET [City] = @City WHERE (([IDCity] = @Original_IDCity) AND (" +
  5742. "(@IsNull_City = 1 AND [City] IS NULL) OR ([City] = @Original_City)));\r\nSELECT ID" +
  5743. "City, City FROM City WHERE (IDCity = @IDCity)";
  5744. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  5745. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@City", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5746. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDCity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5747. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_City", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  5748. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_City", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  5749. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDCity", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDCity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  5750. }
  5751. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5752. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5753. private void InitConnection() {
  5754. this._connection = new global::System.Data.SqlClient.SqlConnection();
  5755. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  5756. }
  5757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5759. private void InitCommandCollection() {
  5760. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  5761. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  5762. this._commandCollection[0].Connection = this.Connection;
  5763. this._commandCollection[0].CommandText = "SELECT IDCity, City FROM dbo.City";
  5764. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  5765. }
  5766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5768. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5769. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  5770. public virtual int Fill(AlfafloorGDVDataSet.CityDataTable dataTable) {
  5771. this.Adapter.SelectCommand = this.CommandCollection[0];
  5772. if ((this.ClearBeforeFill == true)) {
  5773. dataTable.Clear();
  5774. }
  5775. int returnValue = this.Adapter.Fill(dataTable);
  5776. return returnValue;
  5777. }
  5778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5780. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5781. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  5782. public virtual AlfafloorGDVDataSet.CityDataTable GetData() {
  5783. this.Adapter.SelectCommand = this.CommandCollection[0];
  5784. AlfafloorGDVDataSet.CityDataTable dataTable = new AlfafloorGDVDataSet.CityDataTable();
  5785. this.Adapter.Fill(dataTable);
  5786. return dataTable;
  5787. }
  5788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5790. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5791. public virtual int Update(AlfafloorGDVDataSet.CityDataTable dataTable) {
  5792. return this.Adapter.Update(dataTable);
  5793. }
  5794. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5795. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5796. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5797. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  5798. return this.Adapter.Update(dataSet, "City");
  5799. }
  5800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5802. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5803. public virtual int Update(global::System.Data.DataRow dataRow) {
  5804. return this.Adapter.Update(new global::System.Data.DataRow[] {
  5805. dataRow});
  5806. }
  5807. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5808. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5809. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5810. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  5811. return this.Adapter.Update(dataRows);
  5812. }
  5813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5815. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5816. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  5817. public virtual int Delete(int Original_IDCity, string Original_City) {
  5818. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDCity));
  5819. if ((Original_City == null)) {
  5820. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  5821. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  5822. }
  5823. else {
  5824. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  5825. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_City));
  5826. }
  5827. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  5828. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5829. != global::System.Data.ConnectionState.Open)) {
  5830. this.Adapter.DeleteCommand.Connection.Open();
  5831. }
  5832. try {
  5833. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  5834. return returnValue;
  5835. }
  5836. finally {
  5837. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5838. this.Adapter.DeleteCommand.Connection.Close();
  5839. }
  5840. }
  5841. }
  5842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5844. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5845. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  5846. public virtual int Insert(string City) {
  5847. if ((City == null)) {
  5848. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  5849. }
  5850. else {
  5851. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(City));
  5852. }
  5853. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  5854. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5855. != global::System.Data.ConnectionState.Open)) {
  5856. this.Adapter.InsertCommand.Connection.Open();
  5857. }
  5858. try {
  5859. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  5860. return returnValue;
  5861. }
  5862. finally {
  5863. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5864. this.Adapter.InsertCommand.Connection.Close();
  5865. }
  5866. }
  5867. }
  5868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5870. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5871. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5872. public virtual int Update(string City, int Original_IDCity, string Original_City, int IDCity) {
  5873. if ((City == null)) {
  5874. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  5875. }
  5876. else {
  5877. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(City));
  5878. }
  5879. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IDCity));
  5880. if ((Original_City == null)) {
  5881. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  5882. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  5883. }
  5884. else {
  5885. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  5886. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_City));
  5887. }
  5888. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IDCity));
  5889. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  5890. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  5891. != global::System.Data.ConnectionState.Open)) {
  5892. this.Adapter.UpdateCommand.Connection.Open();
  5893. }
  5894. try {
  5895. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  5896. return returnValue;
  5897. }
  5898. finally {
  5899. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  5900. this.Adapter.UpdateCommand.Connection.Close();
  5901. }
  5902. }
  5903. }
  5904. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5905. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5906. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5907. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  5908. public virtual int Update(string City, int Original_IDCity, string Original_City) {
  5909. return this.Update(City, Original_IDCity, Original_City, Original_IDCity);
  5910. }
  5911. }
  5912. /// <summary>
  5913. ///Represents the connection and commands used to retrieve and save data.
  5914. ///</summary>
  5915. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  5916. [global::System.ComponentModel.ToolboxItem(true)]
  5917. [global::System.ComponentModel.DataObjectAttribute(true)]
  5918. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  5919. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  5920. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  5921. public partial class ManagerTableAdapter : global::System.ComponentModel.Component {
  5922. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  5923. private global::System.Data.SqlClient.SqlConnection _connection;
  5924. private global::System.Data.SqlClient.SqlTransaction _transaction;
  5925. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  5926. private bool _clearBeforeFill;
  5927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5929. public ManagerTableAdapter() {
  5930. this.ClearBeforeFill = true;
  5931. }
  5932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5934. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  5935. get {
  5936. if ((this._adapter == null)) {
  5937. this.InitAdapter();
  5938. }
  5939. return this._adapter;
  5940. }
  5941. }
  5942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5944. internal global::System.Data.SqlClient.SqlConnection Connection {
  5945. get {
  5946. if ((this._connection == null)) {
  5947. this.InitConnection();
  5948. }
  5949. return this._connection;
  5950. }
  5951. set {
  5952. this._connection = value;
  5953. if ((this.Adapter.InsertCommand != null)) {
  5954. this.Adapter.InsertCommand.Connection = value;
  5955. }
  5956. if ((this.Adapter.DeleteCommand != null)) {
  5957. this.Adapter.DeleteCommand.Connection = value;
  5958. }
  5959. if ((this.Adapter.UpdateCommand != null)) {
  5960. this.Adapter.UpdateCommand.Connection = value;
  5961. }
  5962. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5963. if ((this.CommandCollection[i] != null)) {
  5964. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  5965. }
  5966. }
  5967. }
  5968. }
  5969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5971. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  5972. get {
  5973. return this._transaction;
  5974. }
  5975. set {
  5976. this._transaction = value;
  5977. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  5978. this.CommandCollection[i].Transaction = this._transaction;
  5979. }
  5980. if (((this.Adapter != null)
  5981. && (this.Adapter.DeleteCommand != null))) {
  5982. this.Adapter.DeleteCommand.Transaction = this._transaction;
  5983. }
  5984. if (((this.Adapter != null)
  5985. && (this.Adapter.InsertCommand != null))) {
  5986. this.Adapter.InsertCommand.Transaction = this._transaction;
  5987. }
  5988. if (((this.Adapter != null)
  5989. && (this.Adapter.UpdateCommand != null))) {
  5990. this.Adapter.UpdateCommand.Transaction = this._transaction;
  5991. }
  5992. }
  5993. }
  5994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5996. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  5997. get {
  5998. if ((this._commandCollection == null)) {
  5999. this.InitCommandCollection();
  6000. }
  6001. return this._commandCollection;
  6002. }
  6003. }
  6004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6006. public bool ClearBeforeFill {
  6007. get {
  6008. return this._clearBeforeFill;
  6009. }
  6010. set {
  6011. this._clearBeforeFill = value;
  6012. }
  6013. }
  6014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6016. private void InitAdapter() {
  6017. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6018. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6019. tableMapping.SourceTable = "Table";
  6020. tableMapping.DataSetTable = "Manager";
  6021. tableMapping.ColumnMappings.Add("IDManager", "IDManager");
  6022. tableMapping.ColumnMappings.Add("Surname", "Surname");
  6023. tableMapping.ColumnMappings.Add("Name", "Name");
  6024. tableMapping.ColumnMappings.Add("Patronomyc", "Patronomyc");
  6025. tableMapping.ColumnMappings.Add("Login", "Login");
  6026. tableMapping.ColumnMappings.Add("Password", "Password");
  6027. tableMapping.ColumnMappings.Add("Photo", "Photo");
  6028. this._adapter.TableMappings.Add(tableMapping);
  6029. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6030. this._adapter.DeleteCommand.Connection = this.Connection;
  6031. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Manager] WHERE (([IDManager] = @Original_IDManager) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronomyc = 1 AND [Patronomyc] IS NULL) OR ([Patronomyc] = @Original_Patronomyc)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)))";
  6032. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6033. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDManager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6034. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Surname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6035. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6036. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6037. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6038. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronomyc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6039. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronomyc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6040. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6041. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6042. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6043. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6044. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6045. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6046. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6047. this._adapter.InsertCommand.Connection = this.Connection;
  6048. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Manager] ([Surname], [Name], [Patronomyc], [Login], [Password], [Photo]) VALUES (@Surname, @Name, @Patronomyc, @Login, @Password, @Photo);
  6049. SELECT IDManager, Surname, Name, Patronomyc, Login, Password, Photo FROM Manager WHERE (IDManager = SCOPE_IDENTITY())";
  6050. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6051. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6052. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6053. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronomyc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6054. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6055. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6056. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6057. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6058. this._adapter.UpdateCommand.Connection = this.Connection;
  6059. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Manager] SET [Surname] = @Surname, [Name] = @Name, [Patronomyc] = @Patronomyc, [Login] = @Login, [Password] = @Password, [Photo] = @Photo WHERE (([IDManager] = @Original_IDManager) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronomyc = 1 AND [Patronomyc] IS NULL) OR ([Patronomyc] = @Original_Patronomyc)) AND ((@IsNull_Login = 1 AND [Login] IS NULL) OR ([Login] = @Original_Login)) AND ((@IsNull_Password = 1 AND [Password] IS NULL) OR ([Password] = @Original_Password)) AND ((@IsNull_Photo = 1 AND [Photo] IS NULL) OR ([Photo] = @Original_Photo)));
  6060. SELECT IDManager, Surname, Name, Patronomyc, Login, Password, Photo FROM Manager WHERE (IDManager = @IDManager)";
  6061. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6062. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6063. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6064. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronomyc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6065. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6066. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6067. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6068. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDManager", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDManager", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6069. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Surname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6070. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6071. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6072. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6073. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronomyc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6074. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronomyc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6075. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Login", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6076. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6077. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Password", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6078. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6079. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Photo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6080. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Photo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Photo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6081. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDManager", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDManager", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6082. }
  6083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6085. private void InitConnection() {
  6086. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6087. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  6088. }
  6089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6091. private void InitCommandCollection() {
  6092. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6093. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6094. this._commandCollection[0].Connection = this.Connection;
  6095. this._commandCollection[0].CommandText = "SELECT IDManager, Surname, Name, Patronomyc, Login, Password, Photo FROM dbo.Mana" +
  6096. "ger";
  6097. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6098. }
  6099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6101. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6102. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6103. public virtual int Fill(AlfafloorGDVDataSet.ManagerDataTable dataTable) {
  6104. this.Adapter.SelectCommand = this.CommandCollection[0];
  6105. if ((this.ClearBeforeFill == true)) {
  6106. dataTable.Clear();
  6107. }
  6108. int returnValue = this.Adapter.Fill(dataTable);
  6109. return returnValue;
  6110. }
  6111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6113. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6114. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6115. public virtual AlfafloorGDVDataSet.ManagerDataTable GetData() {
  6116. this.Adapter.SelectCommand = this.CommandCollection[0];
  6117. AlfafloorGDVDataSet.ManagerDataTable dataTable = new AlfafloorGDVDataSet.ManagerDataTable();
  6118. this.Adapter.Fill(dataTable);
  6119. return dataTable;
  6120. }
  6121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6123. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6124. public virtual int Update(AlfafloorGDVDataSet.ManagerDataTable dataTable) {
  6125. return this.Adapter.Update(dataTable);
  6126. }
  6127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6129. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6130. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  6131. return this.Adapter.Update(dataSet, "Manager");
  6132. }
  6133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6135. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6136. public virtual int Update(global::System.Data.DataRow dataRow) {
  6137. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6138. dataRow});
  6139. }
  6140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6142. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6143. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6144. return this.Adapter.Update(dataRows);
  6145. }
  6146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6148. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6149. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6150. public virtual int Delete(int Original_IDManager, string Original_Surname, string Original_Name, string Original_Patronomyc, string Original_Login, string Original_Password, string Original_Photo) {
  6151. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDManager));
  6152. if ((Original_Surname == null)) {
  6153. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6154. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6155. }
  6156. else {
  6157. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6158. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Surname));
  6159. }
  6160. if ((Original_Name == null)) {
  6161. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6162. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6163. }
  6164. else {
  6165. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6166. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Name));
  6167. }
  6168. if ((Original_Patronomyc == null)) {
  6169. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6170. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6171. }
  6172. else {
  6173. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6174. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Patronomyc));
  6175. }
  6176. if ((Original_Login == null)) {
  6177. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6178. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6179. }
  6180. else {
  6181. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6182. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Login));
  6183. }
  6184. if ((Original_Password == null)) {
  6185. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6186. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6187. }
  6188. else {
  6189. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6190. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Password));
  6191. }
  6192. if ((Original_Photo == null)) {
  6193. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  6194. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  6195. }
  6196. else {
  6197. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  6198. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Photo));
  6199. }
  6200. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6201. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6202. != global::System.Data.ConnectionState.Open)) {
  6203. this.Adapter.DeleteCommand.Connection.Open();
  6204. }
  6205. try {
  6206. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6207. return returnValue;
  6208. }
  6209. finally {
  6210. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6211. this.Adapter.DeleteCommand.Connection.Close();
  6212. }
  6213. }
  6214. }
  6215. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6216. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6217. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6218. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6219. public virtual int Insert(string Surname, string Name, string Patronomyc, string Login, string Password, string Photo) {
  6220. if ((Surname == null)) {
  6221. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6222. }
  6223. else {
  6224. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Surname));
  6225. }
  6226. if ((Name == null)) {
  6227. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6228. }
  6229. else {
  6230. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  6231. }
  6232. if ((Patronomyc == null)) {
  6233. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6234. }
  6235. else {
  6236. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronomyc));
  6237. }
  6238. if ((Login == null)) {
  6239. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6240. }
  6241. else {
  6242. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Login));
  6243. }
  6244. if ((Password == null)) {
  6245. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6246. }
  6247. else {
  6248. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Password));
  6249. }
  6250. if ((Photo == null)) {
  6251. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6252. }
  6253. else {
  6254. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Photo));
  6255. }
  6256. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6257. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6258. != global::System.Data.ConnectionState.Open)) {
  6259. this.Adapter.InsertCommand.Connection.Open();
  6260. }
  6261. try {
  6262. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6263. return returnValue;
  6264. }
  6265. finally {
  6266. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6267. this.Adapter.InsertCommand.Connection.Close();
  6268. }
  6269. }
  6270. }
  6271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6273. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6274. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6275. public virtual int Update(string Surname, string Name, string Patronomyc, string Login, string Password, string Photo, int Original_IDManager, string Original_Surname, string Original_Name, string Original_Patronomyc, string Original_Login, string Original_Password, string Original_Photo, int IDManager) {
  6276. if ((Surname == null)) {
  6277. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6278. }
  6279. else {
  6280. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Surname));
  6281. }
  6282. if ((Name == null)) {
  6283. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6284. }
  6285. else {
  6286. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  6287. }
  6288. if ((Patronomyc == null)) {
  6289. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6290. }
  6291. else {
  6292. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronomyc));
  6293. }
  6294. if ((Login == null)) {
  6295. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6296. }
  6297. else {
  6298. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Login));
  6299. }
  6300. if ((Password == null)) {
  6301. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6302. }
  6303. else {
  6304. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Password));
  6305. }
  6306. if ((Photo == null)) {
  6307. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6308. }
  6309. else {
  6310. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Photo));
  6311. }
  6312. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IDManager));
  6313. if ((Original_Surname == null)) {
  6314. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  6315. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  6316. }
  6317. else {
  6318. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  6319. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Surname));
  6320. }
  6321. if ((Original_Name == null)) {
  6322. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  6323. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  6324. }
  6325. else {
  6326. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  6327. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Name));
  6328. }
  6329. if ((Original_Patronomyc == null)) {
  6330. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  6331. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  6332. }
  6333. else {
  6334. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  6335. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Patronomyc));
  6336. }
  6337. if ((Original_Login == null)) {
  6338. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  6339. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  6340. }
  6341. else {
  6342. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  6343. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Login));
  6344. }
  6345. if ((Original_Password == null)) {
  6346. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  6347. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  6348. }
  6349. else {
  6350. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  6351. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Password));
  6352. }
  6353. if ((Original_Photo == null)) {
  6354. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  6355. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  6356. }
  6357. else {
  6358. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  6359. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Photo));
  6360. }
  6361. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(IDManager));
  6362. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6363. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6364. != global::System.Data.ConnectionState.Open)) {
  6365. this.Adapter.UpdateCommand.Connection.Open();
  6366. }
  6367. try {
  6368. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6369. return returnValue;
  6370. }
  6371. finally {
  6372. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6373. this.Adapter.UpdateCommand.Connection.Close();
  6374. }
  6375. }
  6376. }
  6377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6379. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6380. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6381. public virtual int Update(string Surname, string Name, string Patronomyc, string Login, string Password, string Photo, int Original_IDManager, string Original_Surname, string Original_Name, string Original_Patronomyc, string Original_Login, string Original_Password, string Original_Photo) {
  6382. return this.Update(Surname, Name, Patronomyc, Login, Password, Photo, Original_IDManager, Original_Surname, Original_Name, Original_Patronomyc, Original_Login, Original_Password, Original_Photo, Original_IDManager);
  6383. }
  6384. }
  6385. /// <summary>
  6386. ///Represents the connection and commands used to retrieve and save data.
  6387. ///</summary>
  6388. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6389. [global::System.ComponentModel.ToolboxItem(true)]
  6390. [global::System.ComponentModel.DataObjectAttribute(true)]
  6391. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6392. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6393. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6394. public partial class PartnerTableAdapter : global::System.ComponentModel.Component {
  6395. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6396. private global::System.Data.SqlClient.SqlConnection _connection;
  6397. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6398. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6399. private bool _clearBeforeFill;
  6400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6402. public PartnerTableAdapter() {
  6403. this.ClearBeforeFill = true;
  6404. }
  6405. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6406. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6407. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6408. get {
  6409. if ((this._adapter == null)) {
  6410. this.InitAdapter();
  6411. }
  6412. return this._adapter;
  6413. }
  6414. }
  6415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6417. internal global::System.Data.SqlClient.SqlConnection Connection {
  6418. get {
  6419. if ((this._connection == null)) {
  6420. this.InitConnection();
  6421. }
  6422. return this._connection;
  6423. }
  6424. set {
  6425. this._connection = value;
  6426. if ((this.Adapter.InsertCommand != null)) {
  6427. this.Adapter.InsertCommand.Connection = value;
  6428. }
  6429. if ((this.Adapter.DeleteCommand != null)) {
  6430. this.Adapter.DeleteCommand.Connection = value;
  6431. }
  6432. if ((this.Adapter.UpdateCommand != null)) {
  6433. this.Adapter.UpdateCommand.Connection = value;
  6434. }
  6435. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6436. if ((this.CommandCollection[i] != null)) {
  6437. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6438. }
  6439. }
  6440. }
  6441. }
  6442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6444. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6445. get {
  6446. return this._transaction;
  6447. }
  6448. set {
  6449. this._transaction = value;
  6450. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6451. this.CommandCollection[i].Transaction = this._transaction;
  6452. }
  6453. if (((this.Adapter != null)
  6454. && (this.Adapter.DeleteCommand != null))) {
  6455. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6456. }
  6457. if (((this.Adapter != null)
  6458. && (this.Adapter.InsertCommand != null))) {
  6459. this.Adapter.InsertCommand.Transaction = this._transaction;
  6460. }
  6461. if (((this.Adapter != null)
  6462. && (this.Adapter.UpdateCommand != null))) {
  6463. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6464. }
  6465. }
  6466. }
  6467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6469. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6470. get {
  6471. if ((this._commandCollection == null)) {
  6472. this.InitCommandCollection();
  6473. }
  6474. return this._commandCollection;
  6475. }
  6476. }
  6477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6479. public bool ClearBeforeFill {
  6480. get {
  6481. return this._clearBeforeFill;
  6482. }
  6483. set {
  6484. this._clearBeforeFill = value;
  6485. }
  6486. }
  6487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6489. private void InitAdapter() {
  6490. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6491. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6492. tableMapping.SourceTable = "Table";
  6493. tableMapping.DataSetTable = "Partner";
  6494. tableMapping.ColumnMappings.Add("IDPartner", "IDPartner");
  6495. tableMapping.ColumnMappings.Add("IDTypePartner", "IDTypePartner");
  6496. tableMapping.ColumnMappings.Add("Namepartner", "Namepartner");
  6497. tableMapping.ColumnMappings.Add("Surname", "Surname");
  6498. tableMapping.ColumnMappings.Add("Name", "Name");
  6499. tableMapping.ColumnMappings.Add("Patronomyc", "Patronomyc");
  6500. tableMapping.ColumnMappings.Add("Email", "Email");
  6501. tableMapping.ColumnMappings.Add("Phone", "Phone");
  6502. tableMapping.ColumnMappings.Add("IDPostCode", "IDPostCode");
  6503. tableMapping.ColumnMappings.Add("IDRegion", "IDRegion");
  6504. tableMapping.ColumnMappings.Add("IDCity", "IDCity");
  6505. tableMapping.ColumnMappings.Add("IDStreet", "IDStreet");
  6506. tableMapping.ColumnMappings.Add("House", "House");
  6507. tableMapping.ColumnMappings.Add("INN", "INN");
  6508. tableMapping.ColumnMappings.Add("Rating", "Rating");
  6509. this._adapter.TableMappings.Add(tableMapping);
  6510. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6511. this._adapter.DeleteCommand.Connection = this.Connection;
  6512. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Partner] WHERE (([IDPartner] = @Original_IDPartner) AND ([IDTypePartner] = @Original_IDTypePartner) AND ((@IsNull_Namepartner = 1 AND [Namepartner] IS NULL) OR ([Namepartner] = @Original_Namepartner)) AND ((@IsNull_Surname = 1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronomyc = 1 AND [Patronomyc] IS NULL) OR ([Patronomyc] = @Original_Patronomyc)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)) AND ((@IsNull_IDPostCode = 1 AND [IDPostCode] IS NULL) OR ([IDPostCode] = @Original_IDPostCode)) AND ((@IsNull_IDRegion = 1 AND [IDRegion] IS NULL) OR ([IDRegion] = @Original_IDRegion)) AND ((@IsNull_IDCity = 1 AND [IDCity] IS NULL) OR ([IDCity] = @Original_IDCity)) AND ((@IsNull_IDStreet = 1 AND [IDStreet] IS NULL) OR ([IDStreet] = @Original_IDStreet)) AND ((@IsNull_House = 1 AND [House] IS NULL) OR ([House] = @Original_House)) AND ((@IsNull_INN = 1 AND [INN] IS NULL) OR ([INN] = @Original_INN)) AND ((@IsNull_Rating = 1 AND [Rating] IS NULL) OR ([Rating] = @Original_Rating)))";
  6513. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6514. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDPartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6515. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDTypePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6516. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Namepartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Namepartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6517. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Namepartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Namepartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6518. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Surname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6519. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6520. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6521. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6522. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronomyc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6523. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronomyc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6524. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6525. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6526. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6527. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6528. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDPostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6529. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDPostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6530. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDRegion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDRegion", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6531. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDRegion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDRegion", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6532. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDCity", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6533. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDCity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6534. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDStreet", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6535. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDStreet", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6536. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_House", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "House", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6537. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_House", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "House", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6538. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_INN", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6539. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_INN", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6540. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Rating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6541. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Rating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6542. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6543. this._adapter.InsertCommand.Connection = this.Connection;
  6544. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Partner] ([IDTypePartner], [Namepartner], [Surname], [Name], [Patronomyc], [Email], [Phone], [IDPostCode], [IDRegion], [IDCity], [IDStreet], [House], [INN], [Rating]) VALUES (@IDTypePartner, @Namepartner, @Surname, @Name, @Patronomyc, @Email, @Phone, @IDPostCode, @IDRegion, @IDCity, @IDStreet, @House, @INN, @Rating);
  6545. SELECT IDPartner, IDTypePartner, Namepartner, Surname, Name, Patronomyc, Email, Phone, IDPostCode, IDRegion, IDCity, IDStreet, House, INN, Rating FROM Partner WHERE (IDPartner = SCOPE_IDENTITY())";
  6546. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6547. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDTypePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6548. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Namepartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Namepartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6549. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6550. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6551. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronomyc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6552. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6553. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6554. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDPostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6555. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDRegion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDRegion", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6556. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDCity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6557. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDStreet", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6558. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@House", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "House", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6559. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@INN", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6560. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Rating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6561. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6562. this._adapter.UpdateCommand.Connection = this.Connection;
  6563. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Partner] SET [IDTypePartner] = @IDTypePartner, [Namepartner] = @Nam" +
  6564. "epartner, [Surname] = @Surname, [Name] = @Name, [Patronomyc] = @Patronomyc, [Ema" +
  6565. "il] = @Email, [Phone] = @Phone, [IDPostCode] = @IDPostCode, [IDRegion] = @IDRegi" +
  6566. "on, [IDCity] = @IDCity, [IDStreet] = @IDStreet, [House] = @House, [INN] = @INN, " +
  6567. "[Rating] = @Rating WHERE (([IDPartner] = @Original_IDPartner) AND ([IDTypePartne" +
  6568. "r] = @Original_IDTypePartner) AND ((@IsNull_Namepartner = 1 AND [Namepartner] IS" +
  6569. " NULL) OR ([Namepartner] = @Original_Namepartner)) AND ((@IsNull_Surname = 1 AND" +
  6570. " [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name = 1 A" +
  6571. "ND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronomyc = 1 AN" +
  6572. "D [Patronomyc] IS NULL) OR ([Patronomyc] = @Original_Patronomyc)) AND ((@IsNull_" +
  6573. "Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_Pho" +
  6574. "ne = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)) AND ((@IsNull_IDPost" +
  6575. "Code = 1 AND [IDPostCode] IS NULL) OR ([IDPostCode] = @Original_IDPostCode)) AND" +
  6576. " ((@IsNull_IDRegion = 1 AND [IDRegion] IS NULL) OR ([IDRegion] = @Original_IDReg" +
  6577. "ion)) AND ((@IsNull_IDCity = 1 AND [IDCity] IS NULL) OR ([IDCity] = @Original_ID" +
  6578. "City)) AND ((@IsNull_IDStreet = 1 AND [IDStreet] IS NULL) OR ([IDStreet] = @Orig" +
  6579. "inal_IDStreet)) AND ((@IsNull_House = 1 AND [House] IS NULL) OR ([House] = @Orig" +
  6580. "inal_House)) AND ((@IsNull_INN = 1 AND [INN] IS NULL) OR ([INN] = @Original_INN)" +
  6581. ") AND ((@IsNull_Rating = 1 AND [Rating] IS NULL) OR ([Rating] = @Original_Rating" +
  6582. ")));\r\nSELECT IDPartner, IDTypePartner, Namepartner, Surname, Name, Patronomyc, E" +
  6583. "mail, Phone, IDPostCode, IDRegion, IDCity, IDStreet, House, INN, Rating FROM Par" +
  6584. "tner WHERE (IDPartner = @IDPartner)";
  6585. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6586. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDTypePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6587. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Namepartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Namepartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6588. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6589. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6590. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronomyc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6591. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6592. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6593. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDPostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6594. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDRegion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDRegion", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6595. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDCity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6596. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDStreet", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6597. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@House", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "House", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6598. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@INN", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6599. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Rating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6600. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDPartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6601. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDTypePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6602. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Namepartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Namepartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6603. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Namepartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Namepartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6604. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Surname", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6605. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Surname", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Surname", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6606. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Name", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6607. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6608. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronomyc", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6609. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronomyc", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronomyc", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6610. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6611. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6612. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Phone", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6613. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Phone", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Phone", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6614. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDPostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6615. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDPostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6616. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDRegion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDRegion", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6617. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDRegion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDRegion", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6618. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDCity", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6619. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDCity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDCity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6620. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDStreet", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6621. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDStreet", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6622. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_House", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "House", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6623. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_House", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "House", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6624. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_INN", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6625. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_INN", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "INN", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6626. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Rating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6627. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Rating", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6628. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDPartner", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDPartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6629. }
  6630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6631. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6632. private void InitConnection() {
  6633. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6634. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  6635. }
  6636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6638. private void InitCommandCollection() {
  6639. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6640. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6641. this._commandCollection[0].Connection = this.Connection;
  6642. this._commandCollection[0].CommandText = "SELECT IDPartner, IDTypePartner, Namepartner, Surname, Name, Patronomyc, Email, P" +
  6643. "hone, IDPostCode, IDRegion, IDCity, IDStreet, House, INN, Rating FROM dbo.Partne" +
  6644. "r";
  6645. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6646. }
  6647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6648. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6649. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6650. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6651. public virtual int Fill(AlfafloorGDVDataSet.PartnerDataTable dataTable) {
  6652. this.Adapter.SelectCommand = this.CommandCollection[0];
  6653. if ((this.ClearBeforeFill == true)) {
  6654. dataTable.Clear();
  6655. }
  6656. int returnValue = this.Adapter.Fill(dataTable);
  6657. return returnValue;
  6658. }
  6659. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6660. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6661. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6662. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6663. public virtual AlfafloorGDVDataSet.PartnerDataTable GetData() {
  6664. this.Adapter.SelectCommand = this.CommandCollection[0];
  6665. AlfafloorGDVDataSet.PartnerDataTable dataTable = new AlfafloorGDVDataSet.PartnerDataTable();
  6666. this.Adapter.Fill(dataTable);
  6667. return dataTable;
  6668. }
  6669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6671. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6672. public virtual int Update(AlfafloorGDVDataSet.PartnerDataTable dataTable) {
  6673. return this.Adapter.Update(dataTable);
  6674. }
  6675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6677. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6678. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  6679. return this.Adapter.Update(dataSet, "Partner");
  6680. }
  6681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6683. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6684. public virtual int Update(global::System.Data.DataRow dataRow) {
  6685. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6686. dataRow});
  6687. }
  6688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6690. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6691. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6692. return this.Adapter.Update(dataRows);
  6693. }
  6694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6696. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6697. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6698. public virtual int Delete(int Original_IDPartner, int Original_IDTypePartner, string Original_Namepartner, string Original_Surname, string Original_Name, string Original_Patronomyc, string Original_Email, string Original_Phone, global::System.Nullable<int> Original_IDPostCode, global::System.Nullable<int> Original_IDRegion, global::System.Nullable<int> Original_IDCity, global::System.Nullable<int> Original_IDStreet, global::System.Nullable<int> Original_House, string Original_INN, global::System.Nullable<int> Original_Rating) {
  6699. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDPartner));
  6700. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_IDTypePartner));
  6701. if ((Original_Namepartner == null)) {
  6702. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
  6703. this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
  6704. }
  6705. else {
  6706. this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
  6707. this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_Namepartner));
  6708. }
  6709. if ((Original_Surname == null)) {
  6710. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
  6711. this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
  6712. }
  6713. else {
  6714. this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
  6715. this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Surname));
  6716. }
  6717. if ((Original_Name == null)) {
  6718. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
  6719. this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
  6720. }
  6721. else {
  6722. this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
  6723. this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Name));
  6724. }
  6725. if ((Original_Patronomyc == null)) {
  6726. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
  6727. this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
  6728. }
  6729. else {
  6730. this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
  6731. this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_Patronomyc));
  6732. }
  6733. if ((Original_Email == null)) {
  6734. this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(1));
  6735. this.Adapter.DeleteCommand.Parameters[11].Value = global::System.DBNull.Value;
  6736. }
  6737. else {
  6738. this.Adapter.DeleteCommand.Parameters[10].Value = ((object)(0));
  6739. this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_Email));
  6740. }
  6741. if ((Original_Phone == null)) {
  6742. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(1));
  6743. this.Adapter.DeleteCommand.Parameters[13].Value = global::System.DBNull.Value;
  6744. }
  6745. else {
  6746. this.Adapter.DeleteCommand.Parameters[12].Value = ((object)(0));
  6747. this.Adapter.DeleteCommand.Parameters[13].Value = ((string)(Original_Phone));
  6748. }
  6749. if ((Original_IDPostCode.HasValue == true)) {
  6750. this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(0));
  6751. this.Adapter.DeleteCommand.Parameters[15].Value = ((int)(Original_IDPostCode.Value));
  6752. }
  6753. else {
  6754. this.Adapter.DeleteCommand.Parameters[14].Value = ((object)(1));
  6755. this.Adapter.DeleteCommand.Parameters[15].Value = global::System.DBNull.Value;
  6756. }
  6757. if ((Original_IDRegion.HasValue == true)) {
  6758. this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(0));
  6759. this.Adapter.DeleteCommand.Parameters[17].Value = ((int)(Original_IDRegion.Value));
  6760. }
  6761. else {
  6762. this.Adapter.DeleteCommand.Parameters[16].Value = ((object)(1));
  6763. this.Adapter.DeleteCommand.Parameters[17].Value = global::System.DBNull.Value;
  6764. }
  6765. if ((Original_IDCity.HasValue == true)) {
  6766. this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(0));
  6767. this.Adapter.DeleteCommand.Parameters[19].Value = ((int)(Original_IDCity.Value));
  6768. }
  6769. else {
  6770. this.Adapter.DeleteCommand.Parameters[18].Value = ((object)(1));
  6771. this.Adapter.DeleteCommand.Parameters[19].Value = global::System.DBNull.Value;
  6772. }
  6773. if ((Original_IDStreet.HasValue == true)) {
  6774. this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(0));
  6775. this.Adapter.DeleteCommand.Parameters[21].Value = ((int)(Original_IDStreet.Value));
  6776. }
  6777. else {
  6778. this.Adapter.DeleteCommand.Parameters[20].Value = ((object)(1));
  6779. this.Adapter.DeleteCommand.Parameters[21].Value = global::System.DBNull.Value;
  6780. }
  6781. if ((Original_House.HasValue == true)) {
  6782. this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(0));
  6783. this.Adapter.DeleteCommand.Parameters[23].Value = ((int)(Original_House.Value));
  6784. }
  6785. else {
  6786. this.Adapter.DeleteCommand.Parameters[22].Value = ((object)(1));
  6787. this.Adapter.DeleteCommand.Parameters[23].Value = global::System.DBNull.Value;
  6788. }
  6789. if ((Original_INN == null)) {
  6790. this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(1));
  6791. this.Adapter.DeleteCommand.Parameters[25].Value = global::System.DBNull.Value;
  6792. }
  6793. else {
  6794. this.Adapter.DeleteCommand.Parameters[24].Value = ((object)(0));
  6795. this.Adapter.DeleteCommand.Parameters[25].Value = ((string)(Original_INN));
  6796. }
  6797. if ((Original_Rating.HasValue == true)) {
  6798. this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(0));
  6799. this.Adapter.DeleteCommand.Parameters[27].Value = ((int)(Original_Rating.Value));
  6800. }
  6801. else {
  6802. this.Adapter.DeleteCommand.Parameters[26].Value = ((object)(1));
  6803. this.Adapter.DeleteCommand.Parameters[27].Value = global::System.DBNull.Value;
  6804. }
  6805. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6806. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6807. != global::System.Data.ConnectionState.Open)) {
  6808. this.Adapter.DeleteCommand.Connection.Open();
  6809. }
  6810. try {
  6811. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6812. return returnValue;
  6813. }
  6814. finally {
  6815. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6816. this.Adapter.DeleteCommand.Connection.Close();
  6817. }
  6818. }
  6819. }
  6820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6822. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6823. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6824. public virtual int Insert(int IDTypePartner, string Namepartner, string Surname, string Name, string Patronomyc, string Email, string Phone, global::System.Nullable<int> IDPostCode, global::System.Nullable<int> IDRegion, global::System.Nullable<int> IDCity, global::System.Nullable<int> IDStreet, global::System.Nullable<int> House, string INN, global::System.Nullable<int> Rating) {
  6825. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IDTypePartner));
  6826. if ((Namepartner == null)) {
  6827. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6828. }
  6829. else {
  6830. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Namepartner));
  6831. }
  6832. if ((Surname == null)) {
  6833. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6834. }
  6835. else {
  6836. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Surname));
  6837. }
  6838. if ((Name == null)) {
  6839. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  6840. }
  6841. else {
  6842. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Name));
  6843. }
  6844. if ((Patronomyc == null)) {
  6845. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  6846. }
  6847. else {
  6848. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Patronomyc));
  6849. }
  6850. if ((Email == null)) {
  6851. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  6852. }
  6853. else {
  6854. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Email));
  6855. }
  6856. if ((Phone == null)) {
  6857. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  6858. }
  6859. else {
  6860. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Phone));
  6861. }
  6862. if ((IDPostCode.HasValue == true)) {
  6863. this.Adapter.InsertCommand.Parameters[7].Value = ((int)(IDPostCode.Value));
  6864. }
  6865. else {
  6866. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  6867. }
  6868. if ((IDRegion.HasValue == true)) {
  6869. this.Adapter.InsertCommand.Parameters[8].Value = ((int)(IDRegion.Value));
  6870. }
  6871. else {
  6872. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  6873. }
  6874. if ((IDCity.HasValue == true)) {
  6875. this.Adapter.InsertCommand.Parameters[9].Value = ((int)(IDCity.Value));
  6876. }
  6877. else {
  6878. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  6879. }
  6880. if ((IDStreet.HasValue == true)) {
  6881. this.Adapter.InsertCommand.Parameters[10].Value = ((int)(IDStreet.Value));
  6882. }
  6883. else {
  6884. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  6885. }
  6886. if ((House.HasValue == true)) {
  6887. this.Adapter.InsertCommand.Parameters[11].Value = ((int)(House.Value));
  6888. }
  6889. else {
  6890. this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
  6891. }
  6892. if ((INN == null)) {
  6893. this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
  6894. }
  6895. else {
  6896. this.Adapter.InsertCommand.Parameters[12].Value = ((string)(INN));
  6897. }
  6898. if ((Rating.HasValue == true)) {
  6899. this.Adapter.InsertCommand.Parameters[13].Value = ((int)(Rating.Value));
  6900. }
  6901. else {
  6902. this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
  6903. }
  6904. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6905. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6906. != global::System.Data.ConnectionState.Open)) {
  6907. this.Adapter.InsertCommand.Connection.Open();
  6908. }
  6909. try {
  6910. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6911. return returnValue;
  6912. }
  6913. finally {
  6914. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6915. this.Adapter.InsertCommand.Connection.Close();
  6916. }
  6917. }
  6918. }
  6919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6921. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6922. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6923. public virtual int Update(
  6924. int IDTypePartner,
  6925. string Namepartner,
  6926. string Surname,
  6927. string Name,
  6928. string Patronomyc,
  6929. string Email,
  6930. string Phone,
  6931. global::System.Nullable<int> IDPostCode,
  6932. global::System.Nullable<int> IDRegion,
  6933. global::System.Nullable<int> IDCity,
  6934. global::System.Nullable<int> IDStreet,
  6935. global::System.Nullable<int> House,
  6936. string INN,
  6937. global::System.Nullable<int> Rating,
  6938. int Original_IDPartner,
  6939. int Original_IDTypePartner,
  6940. string Original_Namepartner,
  6941. string Original_Surname,
  6942. string Original_Name,
  6943. string Original_Patronomyc,
  6944. string Original_Email,
  6945. string Original_Phone,
  6946. global::System.Nullable<int> Original_IDPostCode,
  6947. global::System.Nullable<int> Original_IDRegion,
  6948. global::System.Nullable<int> Original_IDCity,
  6949. global::System.Nullable<int> Original_IDStreet,
  6950. global::System.Nullable<int> Original_House,
  6951. string Original_INN,
  6952. global::System.Nullable<int> Original_Rating,
  6953. int IDPartner) {
  6954. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IDTypePartner));
  6955. if ((Namepartner == null)) {
  6956. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  6957. }
  6958. else {
  6959. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Namepartner));
  6960. }
  6961. if ((Surname == null)) {
  6962. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  6963. }
  6964. else {
  6965. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Surname));
  6966. }
  6967. if ((Name == null)) {
  6968. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6969. }
  6970. else {
  6971. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Name));
  6972. }
  6973. if ((Patronomyc == null)) {
  6974. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  6975. }
  6976. else {
  6977. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Patronomyc));
  6978. }
  6979. if ((Email == null)) {
  6980. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  6981. }
  6982. else {
  6983. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Email));
  6984. }
  6985. if ((Phone == null)) {
  6986. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  6987. }
  6988. else {
  6989. this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Phone));
  6990. }
  6991. if ((IDPostCode.HasValue == true)) {
  6992. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(IDPostCode.Value));
  6993. }
  6994. else {
  6995. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  6996. }
  6997. if ((IDRegion.HasValue == true)) {
  6998. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(IDRegion.Value));
  6999. }
  7000. else {
  7001. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7002. }
  7003. if ((IDCity.HasValue == true)) {
  7004. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(IDCity.Value));
  7005. }
  7006. else {
  7007. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  7008. }
  7009. if ((IDStreet.HasValue == true)) {
  7010. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(IDStreet.Value));
  7011. }
  7012. else {
  7013. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7014. }
  7015. if ((House.HasValue == true)) {
  7016. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(House.Value));
  7017. }
  7018. else {
  7019. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  7020. }
  7021. if ((INN == null)) {
  7022. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7023. }
  7024. else {
  7025. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(INN));
  7026. }
  7027. if ((Rating.HasValue == true)) {
  7028. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Rating.Value));
  7029. }
  7030. else {
  7031. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  7032. }
  7033. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_IDPartner));
  7034. this.Adapter.UpdateCommand.Parameters[15].Value = ((int)(Original_IDTypePartner));
  7035. if ((Original_Namepartner == null)) {
  7036. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(1));
  7037. this.Adapter.UpdateCommand.Parameters[17].Value = global::System.DBNull.Value;
  7038. }
  7039. else {
  7040. this.Adapter.UpdateCommand.Parameters[16].Value = ((object)(0));
  7041. this.Adapter.UpdateCommand.Parameters[17].Value = ((string)(Original_Namepartner));
  7042. }
  7043. if ((Original_Surname == null)) {
  7044. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(1));
  7045. this.Adapter.UpdateCommand.Parameters[19].Value = global::System.DBNull.Value;
  7046. }
  7047. else {
  7048. this.Adapter.UpdateCommand.Parameters[18].Value = ((object)(0));
  7049. this.Adapter.UpdateCommand.Parameters[19].Value = ((string)(Original_Surname));
  7050. }
  7051. if ((Original_Name == null)) {
  7052. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
  7053. this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
  7054. }
  7055. else {
  7056. this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
  7057. this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_Name));
  7058. }
  7059. if ((Original_Patronomyc == null)) {
  7060. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
  7061. this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
  7062. }
  7063. else {
  7064. this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
  7065. this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_Patronomyc));
  7066. }
  7067. if ((Original_Email == null)) {
  7068. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
  7069. this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
  7070. }
  7071. else {
  7072. this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
  7073. this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_Email));
  7074. }
  7075. if ((Original_Phone == null)) {
  7076. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
  7077. this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
  7078. }
  7079. else {
  7080. this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
  7081. this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_Phone));
  7082. }
  7083. if ((Original_IDPostCode.HasValue == true)) {
  7084. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
  7085. this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(Original_IDPostCode.Value));
  7086. }
  7087. else {
  7088. this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
  7089. this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
  7090. }
  7091. if ((Original_IDRegion.HasValue == true)) {
  7092. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
  7093. this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_IDRegion.Value));
  7094. }
  7095. else {
  7096. this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
  7097. this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
  7098. }
  7099. if ((Original_IDCity.HasValue == true)) {
  7100. this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
  7101. this.Adapter.UpdateCommand.Parameters[33].Value = ((int)(Original_IDCity.Value));
  7102. }
  7103. else {
  7104. this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
  7105. this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
  7106. }
  7107. if ((Original_IDStreet.HasValue == true)) {
  7108. this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
  7109. this.Adapter.UpdateCommand.Parameters[35].Value = ((int)(Original_IDStreet.Value));
  7110. }
  7111. else {
  7112. this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
  7113. this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
  7114. }
  7115. if ((Original_House.HasValue == true)) {
  7116. this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
  7117. this.Adapter.UpdateCommand.Parameters[37].Value = ((int)(Original_House.Value));
  7118. }
  7119. else {
  7120. this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1));
  7121. this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
  7122. }
  7123. if ((Original_INN == null)) {
  7124. this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1));
  7125. this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value;
  7126. }
  7127. else {
  7128. this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0));
  7129. this.Adapter.UpdateCommand.Parameters[39].Value = ((string)(Original_INN));
  7130. }
  7131. if ((Original_Rating.HasValue == true)) {
  7132. this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0));
  7133. this.Adapter.UpdateCommand.Parameters[41].Value = ((int)(Original_Rating.Value));
  7134. }
  7135. else {
  7136. this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1));
  7137. this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value;
  7138. }
  7139. this.Adapter.UpdateCommand.Parameters[42].Value = ((int)(IDPartner));
  7140. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7141. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7142. != global::System.Data.ConnectionState.Open)) {
  7143. this.Adapter.UpdateCommand.Connection.Open();
  7144. }
  7145. try {
  7146. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7147. return returnValue;
  7148. }
  7149. finally {
  7150. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7151. this.Adapter.UpdateCommand.Connection.Close();
  7152. }
  7153. }
  7154. }
  7155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7157. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7158. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7159. public virtual int Update(
  7160. int IDTypePartner,
  7161. string Namepartner,
  7162. string Surname,
  7163. string Name,
  7164. string Patronomyc,
  7165. string Email,
  7166. string Phone,
  7167. global::System.Nullable<int> IDPostCode,
  7168. global::System.Nullable<int> IDRegion,
  7169. global::System.Nullable<int> IDCity,
  7170. global::System.Nullable<int> IDStreet,
  7171. global::System.Nullable<int> House,
  7172. string INN,
  7173. global::System.Nullable<int> Rating,
  7174. int Original_IDPartner,
  7175. int Original_IDTypePartner,
  7176. string Original_Namepartner,
  7177. string Original_Surname,
  7178. string Original_Name,
  7179. string Original_Patronomyc,
  7180. string Original_Email,
  7181. string Original_Phone,
  7182. global::System.Nullable<int> Original_IDPostCode,
  7183. global::System.Nullable<int> Original_IDRegion,
  7184. global::System.Nullable<int> Original_IDCity,
  7185. global::System.Nullable<int> Original_IDStreet,
  7186. global::System.Nullable<int> Original_House,
  7187. string Original_INN,
  7188. global::System.Nullable<int> Original_Rating) {
  7189. return this.Update(IDTypePartner, Namepartner, Surname, Name, Patronomyc, Email, Phone, IDPostCode, IDRegion, IDCity, IDStreet, House, INN, Rating, Original_IDPartner, Original_IDTypePartner, Original_Namepartner, Original_Surname, Original_Name, Original_Patronomyc, Original_Email, Original_Phone, Original_IDPostCode, Original_IDRegion, Original_IDCity, Original_IDStreet, Original_House, Original_INN, Original_Rating, Original_IDPartner);
  7190. }
  7191. }
  7192. /// <summary>
  7193. ///Represents the connection and commands used to retrieve and save data.
  7194. ///</summary>
  7195. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7196. [global::System.ComponentModel.ToolboxItem(true)]
  7197. [global::System.ComponentModel.DataObjectAttribute(true)]
  7198. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7199. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7200. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7201. public partial class PartnerProductsTableAdapter : global::System.ComponentModel.Component {
  7202. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7203. private global::System.Data.SqlClient.SqlConnection _connection;
  7204. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7205. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7206. private bool _clearBeforeFill;
  7207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7209. public PartnerProductsTableAdapter() {
  7210. this.ClearBeforeFill = true;
  7211. }
  7212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7214. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7215. get {
  7216. if ((this._adapter == null)) {
  7217. this.InitAdapter();
  7218. }
  7219. return this._adapter;
  7220. }
  7221. }
  7222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7224. internal global::System.Data.SqlClient.SqlConnection Connection {
  7225. get {
  7226. if ((this._connection == null)) {
  7227. this.InitConnection();
  7228. }
  7229. return this._connection;
  7230. }
  7231. set {
  7232. this._connection = value;
  7233. if ((this.Adapter.InsertCommand != null)) {
  7234. this.Adapter.InsertCommand.Connection = value;
  7235. }
  7236. if ((this.Adapter.DeleteCommand != null)) {
  7237. this.Adapter.DeleteCommand.Connection = value;
  7238. }
  7239. if ((this.Adapter.UpdateCommand != null)) {
  7240. this.Adapter.UpdateCommand.Connection = value;
  7241. }
  7242. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7243. if ((this.CommandCollection[i] != null)) {
  7244. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7245. }
  7246. }
  7247. }
  7248. }
  7249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7251. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7252. get {
  7253. return this._transaction;
  7254. }
  7255. set {
  7256. this._transaction = value;
  7257. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7258. this.CommandCollection[i].Transaction = this._transaction;
  7259. }
  7260. if (((this.Adapter != null)
  7261. && (this.Adapter.DeleteCommand != null))) {
  7262. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7263. }
  7264. if (((this.Adapter != null)
  7265. && (this.Adapter.InsertCommand != null))) {
  7266. this.Adapter.InsertCommand.Transaction = this._transaction;
  7267. }
  7268. if (((this.Adapter != null)
  7269. && (this.Adapter.UpdateCommand != null))) {
  7270. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7271. }
  7272. }
  7273. }
  7274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7276. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7277. get {
  7278. if ((this._commandCollection == null)) {
  7279. this.InitCommandCollection();
  7280. }
  7281. return this._commandCollection;
  7282. }
  7283. }
  7284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7286. public bool ClearBeforeFill {
  7287. get {
  7288. return this._clearBeforeFill;
  7289. }
  7290. set {
  7291. this._clearBeforeFill = value;
  7292. }
  7293. }
  7294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7296. private void InitAdapter() {
  7297. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7298. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7299. tableMapping.SourceTable = "Table";
  7300. tableMapping.DataSetTable = "PartnerProducts";
  7301. tableMapping.ColumnMappings.Add("IDPartnerProduct", "IDPartnerProduct");
  7302. tableMapping.ColumnMappings.Add("IDProduct", "IDProduct");
  7303. tableMapping.ColumnMappings.Add("IDPartner", "IDPartner");
  7304. tableMapping.ColumnMappings.Add("CountProduct", "CountProduct");
  7305. tableMapping.ColumnMappings.Add("DateSale", "DateSale");
  7306. this._adapter.TableMappings.Add(tableMapping);
  7307. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7308. this._adapter.DeleteCommand.Connection = this.Connection;
  7309. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[PartnerProducts] WHERE (([IDPartnerProduct] = @Original_IDPartnerProduct) AND ((@IsNull_IDProduct = 1 AND [IDProduct] IS NULL) OR ([IDProduct] = @Original_IDProduct)) AND ((@IsNull_IDPartner = 1 AND [IDPartner] IS NULL) OR ([IDPartner] = @Original_IDPartner)) AND ((@IsNull_CountProduct = 1 AND [CountProduct] IS NULL) OR ([CountProduct] = @Original_CountProduct)) AND ((@IsNull_DateSale = 1 AND [DateSale] IS NULL) OR ([DateSale] = @Original_DateSale)))";
  7310. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7311. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDPartnerProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPartnerProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7312. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7313. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7314. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDPartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7315. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDPartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7316. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7317. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7318. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DateSale", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateSale", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7319. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DateSale", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateSale", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7320. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7321. this._adapter.InsertCommand.Connection = this.Connection;
  7322. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[PartnerProducts] ([IDProduct], [IDPartner], [CountProduct], [DateSale]) VALUES (@IDProduct, @IDPartner, @CountProduct, @DateSale);
  7323. SELECT IDPartnerProduct, IDProduct, IDPartner, CountProduct, DateSale FROM PartnerProducts WHERE (IDPartnerProduct = SCOPE_IDENTITY())";
  7324. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7325. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7326. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDPartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7327. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7328. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DateSale", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateSale", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7329. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7330. this._adapter.UpdateCommand.Connection = this.Connection;
  7331. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[PartnerProducts] SET [IDProduct] = @IDProduct, [IDPartner] = @IDPartner, [CountProduct] = @CountProduct, [DateSale] = @DateSale WHERE (([IDPartnerProduct] = @Original_IDPartnerProduct) AND ((@IsNull_IDProduct = 1 AND [IDProduct] IS NULL) OR ([IDProduct] = @Original_IDProduct)) AND ((@IsNull_IDPartner = 1 AND [IDPartner] IS NULL) OR ([IDPartner] = @Original_IDPartner)) AND ((@IsNull_CountProduct = 1 AND [CountProduct] IS NULL) OR ([CountProduct] = @Original_CountProduct)) AND ((@IsNull_DateSale = 1 AND [DateSale] IS NULL) OR ([DateSale] = @Original_DateSale)));
  7332. SELECT IDPartnerProduct, IDProduct, IDPartner, CountProduct, DateSale FROM PartnerProducts WHERE (IDPartnerProduct = @IDPartnerProduct)";
  7333. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7334. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7335. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDPartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7336. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7337. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DateSale", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateSale", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7338. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDPartnerProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPartnerProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7339. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7340. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7341. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDPartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7342. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDPartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7343. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7344. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CountProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CountProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7345. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DateSale", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateSale", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7346. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DateSale", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DateSale", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7347. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDPartnerProduct", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDPartnerProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7348. }
  7349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7351. private void InitConnection() {
  7352. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7353. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  7354. }
  7355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7357. private void InitCommandCollection() {
  7358. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7359. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7360. this._commandCollection[0].Connection = this.Connection;
  7361. this._commandCollection[0].CommandText = "SELECT IDPartnerProduct, IDProduct, IDPartner, CountProduct, DateSale FROM dbo.Pa" +
  7362. "rtnerProducts";
  7363. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7364. }
  7365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7367. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7368. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7369. public virtual int Fill(AlfafloorGDVDataSet.PartnerProductsDataTable dataTable) {
  7370. this.Adapter.SelectCommand = this.CommandCollection[0];
  7371. if ((this.ClearBeforeFill == true)) {
  7372. dataTable.Clear();
  7373. }
  7374. int returnValue = this.Adapter.Fill(dataTable);
  7375. return returnValue;
  7376. }
  7377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7378. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7379. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7380. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7381. public virtual AlfafloorGDVDataSet.PartnerProductsDataTable GetData() {
  7382. this.Adapter.SelectCommand = this.CommandCollection[0];
  7383. AlfafloorGDVDataSet.PartnerProductsDataTable dataTable = new AlfafloorGDVDataSet.PartnerProductsDataTable();
  7384. this.Adapter.Fill(dataTable);
  7385. return dataTable;
  7386. }
  7387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7389. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7390. public virtual int Update(AlfafloorGDVDataSet.PartnerProductsDataTable dataTable) {
  7391. return this.Adapter.Update(dataTable);
  7392. }
  7393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7395. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7396. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  7397. return this.Adapter.Update(dataSet, "PartnerProducts");
  7398. }
  7399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7401. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7402. public virtual int Update(global::System.Data.DataRow dataRow) {
  7403. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7404. dataRow});
  7405. }
  7406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7408. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7409. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7410. return this.Adapter.Update(dataRows);
  7411. }
  7412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7413. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7414. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7415. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7416. public virtual int Delete(int Original_IDPartnerProduct, global::System.Nullable<int> Original_IDProduct, global::System.Nullable<int> Original_IDPartner, global::System.Nullable<int> Original_CountProduct, global::System.Nullable<global::System.DateTime> Original_DateSale) {
  7417. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDPartnerProduct));
  7418. if ((Original_IDProduct.HasValue == true)) {
  7419. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7420. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IDProduct.Value));
  7421. }
  7422. else {
  7423. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7424. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7425. }
  7426. if ((Original_IDPartner.HasValue == true)) {
  7427. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7428. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_IDPartner.Value));
  7429. }
  7430. else {
  7431. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7432. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7433. }
  7434. if ((Original_CountProduct.HasValue == true)) {
  7435. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7436. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_CountProduct.Value));
  7437. }
  7438. else {
  7439. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7440. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7441. }
  7442. if ((Original_DateSale.HasValue == true)) {
  7443. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  7444. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_DateSale.Value));
  7445. }
  7446. else {
  7447. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  7448. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  7449. }
  7450. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7451. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7452. != global::System.Data.ConnectionState.Open)) {
  7453. this.Adapter.DeleteCommand.Connection.Open();
  7454. }
  7455. try {
  7456. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7457. return returnValue;
  7458. }
  7459. finally {
  7460. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7461. this.Adapter.DeleteCommand.Connection.Close();
  7462. }
  7463. }
  7464. }
  7465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7467. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7468. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7469. public virtual int Insert(global::System.Nullable<int> IDProduct, global::System.Nullable<int> IDPartner, global::System.Nullable<int> CountProduct, global::System.Nullable<global::System.DateTime> DateSale) {
  7470. if ((IDProduct.HasValue == true)) {
  7471. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IDProduct.Value));
  7472. }
  7473. else {
  7474. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7475. }
  7476. if ((IDPartner.HasValue == true)) {
  7477. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(IDPartner.Value));
  7478. }
  7479. else {
  7480. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7481. }
  7482. if ((CountProduct.HasValue == true)) {
  7483. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(CountProduct.Value));
  7484. }
  7485. else {
  7486. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7487. }
  7488. if ((DateSale.HasValue == true)) {
  7489. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DateSale.Value));
  7490. }
  7491. else {
  7492. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7493. }
  7494. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7495. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7496. != global::System.Data.ConnectionState.Open)) {
  7497. this.Adapter.InsertCommand.Connection.Open();
  7498. }
  7499. try {
  7500. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7501. return returnValue;
  7502. }
  7503. finally {
  7504. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7505. this.Adapter.InsertCommand.Connection.Close();
  7506. }
  7507. }
  7508. }
  7509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7511. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7512. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7513. public virtual int Update(global::System.Nullable<int> IDProduct, global::System.Nullable<int> IDPartner, global::System.Nullable<int> CountProduct, global::System.Nullable<global::System.DateTime> DateSale, int Original_IDPartnerProduct, global::System.Nullable<int> Original_IDProduct, global::System.Nullable<int> Original_IDPartner, global::System.Nullable<int> Original_CountProduct, global::System.Nullable<global::System.DateTime> Original_DateSale, int IDPartnerProduct) {
  7514. if ((IDProduct.HasValue == true)) {
  7515. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IDProduct.Value));
  7516. }
  7517. else {
  7518. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7519. }
  7520. if ((IDPartner.HasValue == true)) {
  7521. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(IDPartner.Value));
  7522. }
  7523. else {
  7524. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7525. }
  7526. if ((CountProduct.HasValue == true)) {
  7527. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(CountProduct.Value));
  7528. }
  7529. else {
  7530. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7531. }
  7532. if ((DateSale.HasValue == true)) {
  7533. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DateSale.Value));
  7534. }
  7535. else {
  7536. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7537. }
  7538. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IDPartnerProduct));
  7539. if ((Original_IDProduct.HasValue == true)) {
  7540. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  7541. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IDProduct.Value));
  7542. }
  7543. else {
  7544. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  7545. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7546. }
  7547. if ((Original_IDPartner.HasValue == true)) {
  7548. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  7549. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_IDPartner.Value));
  7550. }
  7551. else {
  7552. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  7553. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7554. }
  7555. if ((Original_CountProduct.HasValue == true)) {
  7556. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  7557. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_CountProduct.Value));
  7558. }
  7559. else {
  7560. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  7561. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7562. }
  7563. if ((Original_DateSale.HasValue == true)) {
  7564. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  7565. this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(Original_DateSale.Value));
  7566. }
  7567. else {
  7568. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  7569. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7570. }
  7571. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(IDPartnerProduct));
  7572. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7573. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7574. != global::System.Data.ConnectionState.Open)) {
  7575. this.Adapter.UpdateCommand.Connection.Open();
  7576. }
  7577. try {
  7578. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7579. return returnValue;
  7580. }
  7581. finally {
  7582. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7583. this.Adapter.UpdateCommand.Connection.Close();
  7584. }
  7585. }
  7586. }
  7587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7589. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7590. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7591. public virtual int Update(global::System.Nullable<int> IDProduct, global::System.Nullable<int> IDPartner, global::System.Nullable<int> CountProduct, global::System.Nullable<global::System.DateTime> DateSale, int Original_IDPartnerProduct, global::System.Nullable<int> Original_IDProduct, global::System.Nullable<int> Original_IDPartner, global::System.Nullable<int> Original_CountProduct, global::System.Nullable<global::System.DateTime> Original_DateSale) {
  7592. return this.Update(IDProduct, IDPartner, CountProduct, DateSale, Original_IDPartnerProduct, Original_IDProduct, Original_IDPartner, Original_CountProduct, Original_DateSale, Original_IDPartnerProduct);
  7593. }
  7594. }
  7595. /// <summary>
  7596. ///Represents the connection and commands used to retrieve and save data.
  7597. ///</summary>
  7598. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7599. [global::System.ComponentModel.ToolboxItem(true)]
  7600. [global::System.ComponentModel.DataObjectAttribute(true)]
  7601. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7602. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7603. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7604. public partial class PostCodeTableAdapter : global::System.ComponentModel.Component {
  7605. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7606. private global::System.Data.SqlClient.SqlConnection _connection;
  7607. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7608. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7609. private bool _clearBeforeFill;
  7610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7612. public PostCodeTableAdapter() {
  7613. this.ClearBeforeFill = true;
  7614. }
  7615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7617. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7618. get {
  7619. if ((this._adapter == null)) {
  7620. this.InitAdapter();
  7621. }
  7622. return this._adapter;
  7623. }
  7624. }
  7625. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7626. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7627. internal global::System.Data.SqlClient.SqlConnection Connection {
  7628. get {
  7629. if ((this._connection == null)) {
  7630. this.InitConnection();
  7631. }
  7632. return this._connection;
  7633. }
  7634. set {
  7635. this._connection = value;
  7636. if ((this.Adapter.InsertCommand != null)) {
  7637. this.Adapter.InsertCommand.Connection = value;
  7638. }
  7639. if ((this.Adapter.DeleteCommand != null)) {
  7640. this.Adapter.DeleteCommand.Connection = value;
  7641. }
  7642. if ((this.Adapter.UpdateCommand != null)) {
  7643. this.Adapter.UpdateCommand.Connection = value;
  7644. }
  7645. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7646. if ((this.CommandCollection[i] != null)) {
  7647. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7648. }
  7649. }
  7650. }
  7651. }
  7652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7654. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7655. get {
  7656. return this._transaction;
  7657. }
  7658. set {
  7659. this._transaction = value;
  7660. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7661. this.CommandCollection[i].Transaction = this._transaction;
  7662. }
  7663. if (((this.Adapter != null)
  7664. && (this.Adapter.DeleteCommand != null))) {
  7665. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7666. }
  7667. if (((this.Adapter != null)
  7668. && (this.Adapter.InsertCommand != null))) {
  7669. this.Adapter.InsertCommand.Transaction = this._transaction;
  7670. }
  7671. if (((this.Adapter != null)
  7672. && (this.Adapter.UpdateCommand != null))) {
  7673. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7674. }
  7675. }
  7676. }
  7677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7679. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7680. get {
  7681. if ((this._commandCollection == null)) {
  7682. this.InitCommandCollection();
  7683. }
  7684. return this._commandCollection;
  7685. }
  7686. }
  7687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7689. public bool ClearBeforeFill {
  7690. get {
  7691. return this._clearBeforeFill;
  7692. }
  7693. set {
  7694. this._clearBeforeFill = value;
  7695. }
  7696. }
  7697. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7698. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7699. private void InitAdapter() {
  7700. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7701. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7702. tableMapping.SourceTable = "Table";
  7703. tableMapping.DataSetTable = "PostCode";
  7704. tableMapping.ColumnMappings.Add("IDPostCode", "IDPostCode");
  7705. tableMapping.ColumnMappings.Add("PostCode", "PostCode");
  7706. this._adapter.TableMappings.Add(tableMapping);
  7707. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7708. this._adapter.DeleteCommand.Connection = this.Connection;
  7709. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[PostCode] WHERE (([IDPostCode] = @Original_IDPostCode) AND ((@" +
  7710. "IsNull_PostCode = 1 AND [PostCode] IS NULL) OR ([PostCode] = @Original_PostCode)" +
  7711. "))";
  7712. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7713. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDPostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7714. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7715. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7716. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7717. this._adapter.InsertCommand.Connection = this.Connection;
  7718. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[PostCode] ([PostCode]) VALUES (@PostCode);\r\nSELECT IDPostCode," +
  7719. " PostCode FROM PostCode WHERE (IDPostCode = SCOPE_IDENTITY())";
  7720. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7721. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7722. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7723. this._adapter.UpdateCommand.Connection = this.Connection;
  7724. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[PostCode] SET [PostCode] = @PostCode WHERE (([IDPostCode] = @Original_IDPostCode) AND ((@IsNull_PostCode = 1 AND [PostCode] IS NULL) OR ([PostCode] = @Original_PostCode)));
  7725. SELECT IDPostCode, PostCode FROM PostCode WHERE (IDPostCode = @IDPostCode)";
  7726. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7727. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7728. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDPostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7729. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostCode", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7730. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PostCode", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PostCode", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7731. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDPostCode", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDPostCode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7732. }
  7733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7735. private void InitConnection() {
  7736. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7737. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  7738. }
  7739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7741. private void InitCommandCollection() {
  7742. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7743. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7744. this._commandCollection[0].Connection = this.Connection;
  7745. this._commandCollection[0].CommandText = "SELECT IDPostCode, PostCode FROM dbo.PostCode";
  7746. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7747. }
  7748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7750. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7751. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7752. public virtual int Fill(AlfafloorGDVDataSet.PostCodeDataTable dataTable) {
  7753. this.Adapter.SelectCommand = this.CommandCollection[0];
  7754. if ((this.ClearBeforeFill == true)) {
  7755. dataTable.Clear();
  7756. }
  7757. int returnValue = this.Adapter.Fill(dataTable);
  7758. return returnValue;
  7759. }
  7760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7762. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7763. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7764. public virtual AlfafloorGDVDataSet.PostCodeDataTable GetData() {
  7765. this.Adapter.SelectCommand = this.CommandCollection[0];
  7766. AlfafloorGDVDataSet.PostCodeDataTable dataTable = new AlfafloorGDVDataSet.PostCodeDataTable();
  7767. this.Adapter.Fill(dataTable);
  7768. return dataTable;
  7769. }
  7770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7772. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7773. public virtual int Update(AlfafloorGDVDataSet.PostCodeDataTable dataTable) {
  7774. return this.Adapter.Update(dataTable);
  7775. }
  7776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7778. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7779. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  7780. return this.Adapter.Update(dataSet, "PostCode");
  7781. }
  7782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7784. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7785. public virtual int Update(global::System.Data.DataRow dataRow) {
  7786. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7787. dataRow});
  7788. }
  7789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7791. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7792. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7793. return this.Adapter.Update(dataRows);
  7794. }
  7795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7797. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7798. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7799. public virtual int Delete(int Original_IDPostCode, global::System.Nullable<int> Original_PostCode) {
  7800. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDPostCode));
  7801. if ((Original_PostCode.HasValue == true)) {
  7802. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7803. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_PostCode.Value));
  7804. }
  7805. else {
  7806. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7807. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7808. }
  7809. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7810. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7811. != global::System.Data.ConnectionState.Open)) {
  7812. this.Adapter.DeleteCommand.Connection.Open();
  7813. }
  7814. try {
  7815. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7816. return returnValue;
  7817. }
  7818. finally {
  7819. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7820. this.Adapter.DeleteCommand.Connection.Close();
  7821. }
  7822. }
  7823. }
  7824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7826. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7827. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7828. public virtual int Insert(global::System.Nullable<int> PostCode) {
  7829. if ((PostCode.HasValue == true)) {
  7830. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(PostCode.Value));
  7831. }
  7832. else {
  7833. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7834. }
  7835. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7836. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7837. != global::System.Data.ConnectionState.Open)) {
  7838. this.Adapter.InsertCommand.Connection.Open();
  7839. }
  7840. try {
  7841. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7842. return returnValue;
  7843. }
  7844. finally {
  7845. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7846. this.Adapter.InsertCommand.Connection.Close();
  7847. }
  7848. }
  7849. }
  7850. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7851. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7852. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7853. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7854. public virtual int Update(global::System.Nullable<int> PostCode, int Original_IDPostCode, global::System.Nullable<int> Original_PostCode, int IDPostCode) {
  7855. if ((PostCode.HasValue == true)) {
  7856. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(PostCode.Value));
  7857. }
  7858. else {
  7859. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7860. }
  7861. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IDPostCode));
  7862. if ((Original_PostCode.HasValue == true)) {
  7863. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  7864. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_PostCode.Value));
  7865. }
  7866. else {
  7867. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  7868. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7869. }
  7870. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IDPostCode));
  7871. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7872. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7873. != global::System.Data.ConnectionState.Open)) {
  7874. this.Adapter.UpdateCommand.Connection.Open();
  7875. }
  7876. try {
  7877. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7878. return returnValue;
  7879. }
  7880. finally {
  7881. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7882. this.Adapter.UpdateCommand.Connection.Close();
  7883. }
  7884. }
  7885. }
  7886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7888. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7889. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7890. public virtual int Update(global::System.Nullable<int> PostCode, int Original_IDPostCode, global::System.Nullable<int> Original_PostCode) {
  7891. return this.Update(PostCode, Original_IDPostCode, Original_PostCode, Original_IDPostCode);
  7892. }
  7893. }
  7894. /// <summary>
  7895. ///Represents the connection and commands used to retrieve and save data.
  7896. ///</summary>
  7897. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7898. [global::System.ComponentModel.ToolboxItem(true)]
  7899. [global::System.ComponentModel.DataObjectAttribute(true)]
  7900. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7901. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7902. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7903. public partial class ProductTableAdapter : global::System.ComponentModel.Component {
  7904. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7905. private global::System.Data.SqlClient.SqlConnection _connection;
  7906. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7907. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7908. private bool _clearBeforeFill;
  7909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7910. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7911. public ProductTableAdapter() {
  7912. this.ClearBeforeFill = true;
  7913. }
  7914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7915. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7916. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7917. get {
  7918. if ((this._adapter == null)) {
  7919. this.InitAdapter();
  7920. }
  7921. return this._adapter;
  7922. }
  7923. }
  7924. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7925. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7926. internal global::System.Data.SqlClient.SqlConnection Connection {
  7927. get {
  7928. if ((this._connection == null)) {
  7929. this.InitConnection();
  7930. }
  7931. return this._connection;
  7932. }
  7933. set {
  7934. this._connection = value;
  7935. if ((this.Adapter.InsertCommand != null)) {
  7936. this.Adapter.InsertCommand.Connection = value;
  7937. }
  7938. if ((this.Adapter.DeleteCommand != null)) {
  7939. this.Adapter.DeleteCommand.Connection = value;
  7940. }
  7941. if ((this.Adapter.UpdateCommand != null)) {
  7942. this.Adapter.UpdateCommand.Connection = value;
  7943. }
  7944. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7945. if ((this.CommandCollection[i] != null)) {
  7946. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7947. }
  7948. }
  7949. }
  7950. }
  7951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7953. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7954. get {
  7955. return this._transaction;
  7956. }
  7957. set {
  7958. this._transaction = value;
  7959. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7960. this.CommandCollection[i].Transaction = this._transaction;
  7961. }
  7962. if (((this.Adapter != null)
  7963. && (this.Adapter.DeleteCommand != null))) {
  7964. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7965. }
  7966. if (((this.Adapter != null)
  7967. && (this.Adapter.InsertCommand != null))) {
  7968. this.Adapter.InsertCommand.Transaction = this._transaction;
  7969. }
  7970. if (((this.Adapter != null)
  7971. && (this.Adapter.UpdateCommand != null))) {
  7972. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7973. }
  7974. }
  7975. }
  7976. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7977. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7978. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7979. get {
  7980. if ((this._commandCollection == null)) {
  7981. this.InitCommandCollection();
  7982. }
  7983. return this._commandCollection;
  7984. }
  7985. }
  7986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7988. public bool ClearBeforeFill {
  7989. get {
  7990. return this._clearBeforeFill;
  7991. }
  7992. set {
  7993. this._clearBeforeFill = value;
  7994. }
  7995. }
  7996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7998. private void InitAdapter() {
  7999. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8000. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8001. tableMapping.SourceTable = "Table";
  8002. tableMapping.DataSetTable = "Product";
  8003. tableMapping.ColumnMappings.Add("IDProduct", "IDProduct");
  8004. tableMapping.ColumnMappings.Add("IDProductType", "IDProductType");
  8005. tableMapping.ColumnMappings.Add("ProductName", "ProductName");
  8006. tableMapping.ColumnMappings.Add("Article", "Article");
  8007. tableMapping.ColumnMappings.Add("Cost", "Cost");
  8008. this._adapter.TableMappings.Add(tableMapping);
  8009. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8010. this._adapter.DeleteCommand.Connection = this.Connection;
  8011. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Product] WHERE (([IDProduct] = @Original_IDProduct) AND ((@IsNull_IDProductType = 1 AND [IDProductType] IS NULL) OR ([IDProductType] = @Original_IDProductType)) AND ((@IsNull_ProductName = 1 AND [ProductName] IS NULL) OR ([ProductName] = @Original_ProductName)) AND ((@IsNull_Article = 1 AND [Article] IS NULL) OR ([Article] = @Original_Article)) AND ((@IsNull_Cost = 1 AND [Cost] IS NULL) OR ([Cost] = @Original_Cost)))";
  8012. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8013. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8014. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8015. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8016. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8017. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8018. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Article", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8019. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Article", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8020. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8021. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8022. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8023. this._adapter.InsertCommand.Connection = this.Connection;
  8024. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Product] ([IDProductType], [ProductName], [Article], [Cost]) V" +
  8025. "ALUES (@IDProductType, @ProductName, @Article, @Cost);\r\nSELECT IDProduct, IDProd" +
  8026. "uctType, ProductName, Article, Cost FROM Product WHERE (IDProduct = SCOPE_IDENTI" +
  8027. "TY())";
  8028. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8029. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8030. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8031. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Article", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8032. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8033. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8034. this._adapter.UpdateCommand.Connection = this.Connection;
  8035. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Product] SET [IDProductType] = @IDProductType, [ProductName] = @ProductName, [Article] = @Article, [Cost] = @Cost WHERE (([IDProduct] = @Original_IDProduct) AND ((@IsNull_IDProductType = 1 AND [IDProductType] IS NULL) OR ([IDProductType] = @Original_IDProductType)) AND ((@IsNull_ProductName = 1 AND [ProductName] IS NULL) OR ([ProductName] = @Original_ProductName)) AND ((@IsNull_Article = 1 AND [Article] IS NULL) OR ([Article] = @Original_Article)) AND ((@IsNull_Cost = 1 AND [Cost] IS NULL) OR ([Cost] = @Original_Cost)));
  8036. SELECT IDProduct, IDProductType, ProductName, Article, Cost FROM Product WHERE (IDProduct = @IDProduct)";
  8037. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8038. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8039. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8040. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Article", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8041. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8042. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8043. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_IDProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8044. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8045. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductName", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8046. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductName", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8047. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Article", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8048. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Article", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8049. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Cost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8050. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Cost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Cost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8051. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDProduct", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8052. }
  8053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8055. private void InitConnection() {
  8056. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8057. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  8058. }
  8059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8061. private void InitCommandCollection() {
  8062. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8063. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8064. this._commandCollection[0].Connection = this.Connection;
  8065. this._commandCollection[0].CommandText = "SELECT IDProduct, IDProductType, ProductName, Article, Cost FROM dbo.Product";
  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", "17.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(AlfafloorGDVDataSet.ProductDataTable 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", "17.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 AlfafloorGDVDataSet.ProductDataTable GetData() {
  8085. this.Adapter.SelectCommand = this.CommandCollection[0];
  8086. AlfafloorGDVDataSet.ProductDataTable dataTable = new AlfafloorGDVDataSet.ProductDataTable();
  8087. this.Adapter.Fill(dataTable);
  8088. return dataTable;
  8089. }
  8090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8092. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8093. public virtual int Update(AlfafloorGDVDataSet.ProductDataTable dataTable) {
  8094. return this.Adapter.Update(dataTable);
  8095. }
  8096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8098. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8099. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  8100. return this.Adapter.Update(dataSet, "Product");
  8101. }
  8102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8104. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8105. public virtual int Update(global::System.Data.DataRow dataRow) {
  8106. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8107. dataRow});
  8108. }
  8109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8111. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8112. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8113. return this.Adapter.Update(dataRows);
  8114. }
  8115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8117. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8118. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8119. public virtual int Delete(int Original_IDProduct, global::System.Nullable<int> Original_IDProductType, string Original_ProductName, string Original_Article, global::System.Nullable<decimal> Original_Cost) {
  8120. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDProduct));
  8121. if ((Original_IDProductType.HasValue == true)) {
  8122. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8123. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_IDProductType.Value));
  8124. }
  8125. else {
  8126. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8127. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8128. }
  8129. if ((Original_ProductName == null)) {
  8130. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8131. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8132. }
  8133. else {
  8134. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8135. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_ProductName));
  8136. }
  8137. if ((Original_Article == null)) {
  8138. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  8139. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  8140. }
  8141. else {
  8142. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  8143. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Article));
  8144. }
  8145. if ((Original_Cost.HasValue == true)) {
  8146. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  8147. this.Adapter.DeleteCommand.Parameters[8].Value = ((decimal)(Original_Cost.Value));
  8148. }
  8149. else {
  8150. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  8151. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  8152. }
  8153. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8154. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8155. != global::System.Data.ConnectionState.Open)) {
  8156. this.Adapter.DeleteCommand.Connection.Open();
  8157. }
  8158. try {
  8159. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8160. return returnValue;
  8161. }
  8162. finally {
  8163. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8164. this.Adapter.DeleteCommand.Connection.Close();
  8165. }
  8166. }
  8167. }
  8168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8170. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8171. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8172. public virtual int Insert(global::System.Nullable<int> IDProductType, string ProductName, string Article, global::System.Nullable<decimal> Cost) {
  8173. if ((IDProductType.HasValue == true)) {
  8174. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(IDProductType.Value));
  8175. }
  8176. else {
  8177. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8178. }
  8179. if ((ProductName == null)) {
  8180. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8181. }
  8182. else {
  8183. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ProductName));
  8184. }
  8185. if ((Article == null)) {
  8186. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8187. }
  8188. else {
  8189. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Article));
  8190. }
  8191. if ((Cost.HasValue == true)) {
  8192. this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(Cost.Value));
  8193. }
  8194. else {
  8195. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8196. }
  8197. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8198. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8199. != global::System.Data.ConnectionState.Open)) {
  8200. this.Adapter.InsertCommand.Connection.Open();
  8201. }
  8202. try {
  8203. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8204. return returnValue;
  8205. }
  8206. finally {
  8207. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8208. this.Adapter.InsertCommand.Connection.Close();
  8209. }
  8210. }
  8211. }
  8212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8214. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8215. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8216. public virtual int Update(global::System.Nullable<int> IDProductType, string ProductName, string Article, global::System.Nullable<decimal> Cost, int Original_IDProduct, global::System.Nullable<int> Original_IDProductType, string Original_ProductName, string Original_Article, global::System.Nullable<decimal> Original_Cost, int IDProduct) {
  8217. if ((IDProductType.HasValue == true)) {
  8218. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(IDProductType.Value));
  8219. }
  8220. else {
  8221. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8222. }
  8223. if ((ProductName == null)) {
  8224. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8225. }
  8226. else {
  8227. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ProductName));
  8228. }
  8229. if ((Article == null)) {
  8230. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8231. }
  8232. else {
  8233. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Article));
  8234. }
  8235. if ((Cost.HasValue == true)) {
  8236. this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(Cost.Value));
  8237. }
  8238. else {
  8239. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8240. }
  8241. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_IDProduct));
  8242. if ((Original_IDProductType.HasValue == true)) {
  8243. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  8244. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_IDProductType.Value));
  8245. }
  8246. else {
  8247. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  8248. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8249. }
  8250. if ((Original_ProductName == null)) {
  8251. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  8252. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  8253. }
  8254. else {
  8255. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  8256. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_ProductName));
  8257. }
  8258. if ((Original_Article == null)) {
  8259. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8260. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8261. }
  8262. else {
  8263. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8264. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Article));
  8265. }
  8266. if ((Original_Cost.HasValue == true)) {
  8267. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  8268. this.Adapter.UpdateCommand.Parameters[12].Value = ((decimal)(Original_Cost.Value));
  8269. }
  8270. else {
  8271. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  8272. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  8273. }
  8274. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(IDProduct));
  8275. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8276. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8277. != global::System.Data.ConnectionState.Open)) {
  8278. this.Adapter.UpdateCommand.Connection.Open();
  8279. }
  8280. try {
  8281. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8282. return returnValue;
  8283. }
  8284. finally {
  8285. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8286. this.Adapter.UpdateCommand.Connection.Close();
  8287. }
  8288. }
  8289. }
  8290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8292. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8293. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8294. public virtual int Update(global::System.Nullable<int> IDProductType, string ProductName, string Article, global::System.Nullable<decimal> Cost, int Original_IDProduct, global::System.Nullable<int> Original_IDProductType, string Original_ProductName, string Original_Article, global::System.Nullable<decimal> Original_Cost) {
  8295. return this.Update(IDProductType, ProductName, Article, Cost, Original_IDProduct, Original_IDProductType, Original_ProductName, Original_Article, Original_Cost, Original_IDProduct);
  8296. }
  8297. }
  8298. /// <summary>
  8299. ///Represents the connection and commands used to retrieve and save data.
  8300. ///</summary>
  8301. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8302. [global::System.ComponentModel.ToolboxItem(true)]
  8303. [global::System.ComponentModel.DataObjectAttribute(true)]
  8304. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8305. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8306. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8307. public partial class ProductTypeTableAdapter : global::System.ComponentModel.Component {
  8308. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8309. private global::System.Data.SqlClient.SqlConnection _connection;
  8310. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8311. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8312. private bool _clearBeforeFill;
  8313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8315. public ProductTypeTableAdapter() {
  8316. this.ClearBeforeFill = true;
  8317. }
  8318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8320. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8321. get {
  8322. if ((this._adapter == null)) {
  8323. this.InitAdapter();
  8324. }
  8325. return this._adapter;
  8326. }
  8327. }
  8328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8330. internal global::System.Data.SqlClient.SqlConnection Connection {
  8331. get {
  8332. if ((this._connection == null)) {
  8333. this.InitConnection();
  8334. }
  8335. return this._connection;
  8336. }
  8337. set {
  8338. this._connection = value;
  8339. if ((this.Adapter.InsertCommand != null)) {
  8340. this.Adapter.InsertCommand.Connection = value;
  8341. }
  8342. if ((this.Adapter.DeleteCommand != null)) {
  8343. this.Adapter.DeleteCommand.Connection = value;
  8344. }
  8345. if ((this.Adapter.UpdateCommand != null)) {
  8346. this.Adapter.UpdateCommand.Connection = value;
  8347. }
  8348. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8349. if ((this.CommandCollection[i] != null)) {
  8350. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8351. }
  8352. }
  8353. }
  8354. }
  8355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8357. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8358. get {
  8359. return this._transaction;
  8360. }
  8361. set {
  8362. this._transaction = value;
  8363. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8364. this.CommandCollection[i].Transaction = this._transaction;
  8365. }
  8366. if (((this.Adapter != null)
  8367. && (this.Adapter.DeleteCommand != null))) {
  8368. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8369. }
  8370. if (((this.Adapter != null)
  8371. && (this.Adapter.InsertCommand != null))) {
  8372. this.Adapter.InsertCommand.Transaction = this._transaction;
  8373. }
  8374. if (((this.Adapter != null)
  8375. && (this.Adapter.UpdateCommand != null))) {
  8376. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8377. }
  8378. }
  8379. }
  8380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8382. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8383. get {
  8384. if ((this._commandCollection == null)) {
  8385. this.InitCommandCollection();
  8386. }
  8387. return this._commandCollection;
  8388. }
  8389. }
  8390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8392. public bool ClearBeforeFill {
  8393. get {
  8394. return this._clearBeforeFill;
  8395. }
  8396. set {
  8397. this._clearBeforeFill = value;
  8398. }
  8399. }
  8400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8402. private void InitAdapter() {
  8403. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8404. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8405. tableMapping.SourceTable = "Table";
  8406. tableMapping.DataSetTable = "ProductType";
  8407. tableMapping.ColumnMappings.Add("IDProductType", "IDProductType");
  8408. tableMapping.ColumnMappings.Add("ProductType", "ProductType");
  8409. tableMapping.ColumnMappings.Add("Сoefficient", "Сoefficient");
  8410. this._adapter.TableMappings.Add(tableMapping);
  8411. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8412. this._adapter.DeleteCommand.Connection = this.Connection;
  8413. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ProductType] WHERE (([IDProductType] = @Original_IDProductType) AND ((@IsNull_ProductType = 1 AND [ProductType] IS NULL) OR ([ProductType] = @Original_ProductType)) AND ((@IsNull_Сoefficient = 1 AND [Сoefficient] IS NULL) OR ([Сoefficient] = @Original_Сoefficient)))";
  8414. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8415. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8416. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductType", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8417. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8418. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Сoefficient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сoefficient", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8419. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Сoefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сoefficient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8420. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8421. this._adapter.InsertCommand.Connection = this.Connection;
  8422. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[ProductType] ([ProductType], [Сoefficient]) VALUES (@ProductTy" +
  8423. "pe, @Сoefficient);\r\nSELECT IDProductType, ProductType, Сoefficient FROM ProductT" +
  8424. "ype WHERE (IDProductType = SCOPE_IDENTITY())";
  8425. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8426. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8427. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Сoefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сoefficient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8428. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8429. this._adapter.UpdateCommand.Connection = this.Connection;
  8430. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductType] SET [ProductType] = @ProductType, [Сoefficient] = @Сoefficient WHERE (([IDProductType] = @Original_IDProductType) AND ((@IsNull_ProductType = 1 AND [ProductType] IS NULL) OR ([ProductType] = @Original_ProductType)) AND ((@IsNull_Сoefficient = 1 AND [Сoefficient] IS NULL) OR ([Сoefficient] = @Original_Сoefficient)));
  8431. SELECT IDProductType, ProductType, Сoefficient FROM ProductType WHERE (IDProductType = @IDProductType)";
  8432. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8433. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8434. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Сoefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сoefficient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8435. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8436. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ProductType", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductType", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8437. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductType", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8438. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Сoefficient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сoefficient", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8439. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Сoefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Сoefficient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8440. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDProductType", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDProductType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8441. }
  8442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8444. private void InitConnection() {
  8445. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8446. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  8447. }
  8448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8450. private void InitCommandCollection() {
  8451. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8452. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8453. this._commandCollection[0].Connection = this.Connection;
  8454. this._commandCollection[0].CommandText = "SELECT IDProductType, ProductType, Сoefficient FROM dbo.ProductType";
  8455. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8456. }
  8457. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8458. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8459. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8460. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8461. public virtual int Fill(AlfafloorGDVDataSet.ProductTypeDataTable dataTable) {
  8462. this.Adapter.SelectCommand = this.CommandCollection[0];
  8463. if ((this.ClearBeforeFill == true)) {
  8464. dataTable.Clear();
  8465. }
  8466. int returnValue = this.Adapter.Fill(dataTable);
  8467. return returnValue;
  8468. }
  8469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8471. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8472. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8473. public virtual AlfafloorGDVDataSet.ProductTypeDataTable GetData() {
  8474. this.Adapter.SelectCommand = this.CommandCollection[0];
  8475. AlfafloorGDVDataSet.ProductTypeDataTable dataTable = new AlfafloorGDVDataSet.ProductTypeDataTable();
  8476. this.Adapter.Fill(dataTable);
  8477. return dataTable;
  8478. }
  8479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8481. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8482. public virtual int Update(AlfafloorGDVDataSet.ProductTypeDataTable dataTable) {
  8483. return this.Adapter.Update(dataTable);
  8484. }
  8485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8487. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8488. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  8489. return this.Adapter.Update(dataSet, "ProductType");
  8490. }
  8491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8493. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8494. public virtual int Update(global::System.Data.DataRow dataRow) {
  8495. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8496. dataRow});
  8497. }
  8498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8499. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8500. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8501. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8502. return this.Adapter.Update(dataRows);
  8503. }
  8504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8506. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8507. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8508. public virtual int Delete(int Original_IDProductType, string Original_ProductType, global::System.Nullable<double> Original_Сoefficient) {
  8509. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDProductType));
  8510. if ((Original_ProductType == null)) {
  8511. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8512. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8513. }
  8514. else {
  8515. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8516. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_ProductType));
  8517. }
  8518. if ((Original_Сoefficient.HasValue == true)) {
  8519. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8520. this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_Сoefficient.Value));
  8521. }
  8522. else {
  8523. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8524. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8525. }
  8526. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8527. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8528. != global::System.Data.ConnectionState.Open)) {
  8529. this.Adapter.DeleteCommand.Connection.Open();
  8530. }
  8531. try {
  8532. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8533. return returnValue;
  8534. }
  8535. finally {
  8536. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8537. this.Adapter.DeleteCommand.Connection.Close();
  8538. }
  8539. }
  8540. }
  8541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8543. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8544. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8545. public virtual int Insert(string ProductType, global::System.Nullable<double> Сoefficient) {
  8546. if ((ProductType == null)) {
  8547. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8548. }
  8549. else {
  8550. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ProductType));
  8551. }
  8552. if ((Сoefficient.HasValue == true)) {
  8553. this.Adapter.InsertCommand.Parameters[1].Value = ((double)(Сoefficient.Value));
  8554. }
  8555. else {
  8556. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8557. }
  8558. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8559. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8560. != global::System.Data.ConnectionState.Open)) {
  8561. this.Adapter.InsertCommand.Connection.Open();
  8562. }
  8563. try {
  8564. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8565. return returnValue;
  8566. }
  8567. finally {
  8568. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8569. this.Adapter.InsertCommand.Connection.Close();
  8570. }
  8571. }
  8572. }
  8573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8575. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8576. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8577. public virtual int Update(string ProductType, global::System.Nullable<double> Сoefficient, int Original_IDProductType, string Original_ProductType, global::System.Nullable<double> Original_Сoefficient, int IDProductType) {
  8578. if ((ProductType == null)) {
  8579. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8580. }
  8581. else {
  8582. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ProductType));
  8583. }
  8584. if ((Сoefficient.HasValue == true)) {
  8585. this.Adapter.UpdateCommand.Parameters[1].Value = ((double)(Сoefficient.Value));
  8586. }
  8587. else {
  8588. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8589. }
  8590. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_IDProductType));
  8591. if ((Original_ProductType == null)) {
  8592. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  8593. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  8594. }
  8595. else {
  8596. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  8597. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_ProductType));
  8598. }
  8599. if ((Original_Сoefficient.HasValue == true)) {
  8600. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  8601. this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(Original_Сoefficient.Value));
  8602. }
  8603. else {
  8604. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  8605. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8606. }
  8607. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(IDProductType));
  8608. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8609. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8610. != global::System.Data.ConnectionState.Open)) {
  8611. this.Adapter.UpdateCommand.Connection.Open();
  8612. }
  8613. try {
  8614. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8615. return returnValue;
  8616. }
  8617. finally {
  8618. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8619. this.Adapter.UpdateCommand.Connection.Close();
  8620. }
  8621. }
  8622. }
  8623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8625. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8626. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8627. public virtual int Update(string ProductType, global::System.Nullable<double> Сoefficient, int Original_IDProductType, string Original_ProductType, global::System.Nullable<double> Original_Сoefficient) {
  8628. return this.Update(ProductType, Сoefficient, Original_IDProductType, Original_ProductType, Original_Сoefficient, Original_IDProductType);
  8629. }
  8630. }
  8631. /// <summary>
  8632. ///Represents the connection and commands used to retrieve and save data.
  8633. ///</summary>
  8634. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8635. [global::System.ComponentModel.ToolboxItem(true)]
  8636. [global::System.ComponentModel.DataObjectAttribute(true)]
  8637. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8638. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8639. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8640. public partial class RegionTableAdapter : global::System.ComponentModel.Component {
  8641. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8642. private global::System.Data.SqlClient.SqlConnection _connection;
  8643. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8644. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8645. private bool _clearBeforeFill;
  8646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8648. public RegionTableAdapter() {
  8649. this.ClearBeforeFill = true;
  8650. }
  8651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8653. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8654. get {
  8655. if ((this._adapter == null)) {
  8656. this.InitAdapter();
  8657. }
  8658. return this._adapter;
  8659. }
  8660. }
  8661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8663. internal global::System.Data.SqlClient.SqlConnection Connection {
  8664. get {
  8665. if ((this._connection == null)) {
  8666. this.InitConnection();
  8667. }
  8668. return this._connection;
  8669. }
  8670. set {
  8671. this._connection = value;
  8672. if ((this.Adapter.InsertCommand != null)) {
  8673. this.Adapter.InsertCommand.Connection = value;
  8674. }
  8675. if ((this.Adapter.DeleteCommand != null)) {
  8676. this.Adapter.DeleteCommand.Connection = value;
  8677. }
  8678. if ((this.Adapter.UpdateCommand != null)) {
  8679. this.Adapter.UpdateCommand.Connection = value;
  8680. }
  8681. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8682. if ((this.CommandCollection[i] != null)) {
  8683. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8684. }
  8685. }
  8686. }
  8687. }
  8688. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8689. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8690. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8691. get {
  8692. return this._transaction;
  8693. }
  8694. set {
  8695. this._transaction = value;
  8696. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8697. this.CommandCollection[i].Transaction = this._transaction;
  8698. }
  8699. if (((this.Adapter != null)
  8700. && (this.Adapter.DeleteCommand != null))) {
  8701. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8702. }
  8703. if (((this.Adapter != null)
  8704. && (this.Adapter.InsertCommand != null))) {
  8705. this.Adapter.InsertCommand.Transaction = this._transaction;
  8706. }
  8707. if (((this.Adapter != null)
  8708. && (this.Adapter.UpdateCommand != null))) {
  8709. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8710. }
  8711. }
  8712. }
  8713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8715. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8716. get {
  8717. if ((this._commandCollection == null)) {
  8718. this.InitCommandCollection();
  8719. }
  8720. return this._commandCollection;
  8721. }
  8722. }
  8723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8725. public bool ClearBeforeFill {
  8726. get {
  8727. return this._clearBeforeFill;
  8728. }
  8729. set {
  8730. this._clearBeforeFill = value;
  8731. }
  8732. }
  8733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8735. private void InitAdapter() {
  8736. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8737. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8738. tableMapping.SourceTable = "Table";
  8739. tableMapping.DataSetTable = "Region";
  8740. tableMapping.ColumnMappings.Add("IDRegion", "IDRegion");
  8741. tableMapping.ColumnMappings.Add("Region", "Region");
  8742. this._adapter.TableMappings.Add(tableMapping);
  8743. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8744. this._adapter.DeleteCommand.Connection = this.Connection;
  8745. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Region] WHERE (([IDRegion] = @Original_IDRegion) AND ((@IsNull" +
  8746. "_Region = 1 AND [Region] IS NULL) OR ([Region] = @Original_Region)))";
  8747. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8748. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDRegion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDRegion", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8749. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Region", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Region", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8750. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Region", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Region", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8751. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8752. this._adapter.InsertCommand.Connection = this.Connection;
  8753. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Region] ([Region]) VALUES (@Region);\r\nSELECT IDRegion, Region " +
  8754. "FROM Region WHERE (IDRegion = SCOPE_IDENTITY())";
  8755. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8756. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Region", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Region", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8757. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8758. this._adapter.UpdateCommand.Connection = this.Connection;
  8759. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Region] SET [Region] = @Region WHERE (([IDRegion] = @Original_IDReg" +
  8760. "ion) AND ((@IsNull_Region = 1 AND [Region] IS NULL) OR ([Region] = @Original_Reg" +
  8761. "ion)));\r\nSELECT IDRegion, Region FROM Region WHERE (IDRegion = @IDRegion)";
  8762. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8763. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Region", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Region", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8764. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDRegion", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDRegion", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8765. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Region", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Region", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8766. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Region", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Region", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8767. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDRegion", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDRegion", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8768. }
  8769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8771. private void InitConnection() {
  8772. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8773. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  8774. }
  8775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8777. private void InitCommandCollection() {
  8778. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8779. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8780. this._commandCollection[0].Connection = this.Connection;
  8781. this._commandCollection[0].CommandText = "SELECT IDRegion, Region FROM dbo.Region";
  8782. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8783. }
  8784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8786. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8787. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8788. public virtual int Fill(AlfafloorGDVDataSet.RegionDataTable dataTable) {
  8789. this.Adapter.SelectCommand = this.CommandCollection[0];
  8790. if ((this.ClearBeforeFill == true)) {
  8791. dataTable.Clear();
  8792. }
  8793. int returnValue = this.Adapter.Fill(dataTable);
  8794. return returnValue;
  8795. }
  8796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8798. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8799. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8800. public virtual AlfafloorGDVDataSet.RegionDataTable GetData() {
  8801. this.Adapter.SelectCommand = this.CommandCollection[0];
  8802. AlfafloorGDVDataSet.RegionDataTable dataTable = new AlfafloorGDVDataSet.RegionDataTable();
  8803. this.Adapter.Fill(dataTable);
  8804. return dataTable;
  8805. }
  8806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8808. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8809. public virtual int Update(AlfafloorGDVDataSet.RegionDataTable dataTable) {
  8810. return this.Adapter.Update(dataTable);
  8811. }
  8812. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8813. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8814. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8815. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  8816. return this.Adapter.Update(dataSet, "Region");
  8817. }
  8818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8820. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8821. public virtual int Update(global::System.Data.DataRow dataRow) {
  8822. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8823. dataRow});
  8824. }
  8825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8827. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8828. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8829. return this.Adapter.Update(dataRows);
  8830. }
  8831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8833. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8834. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8835. public virtual int Delete(int Original_IDRegion, string Original_Region) {
  8836. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDRegion));
  8837. if ((Original_Region == null)) {
  8838. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8839. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8840. }
  8841. else {
  8842. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8843. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Region));
  8844. }
  8845. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8846. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8847. != global::System.Data.ConnectionState.Open)) {
  8848. this.Adapter.DeleteCommand.Connection.Open();
  8849. }
  8850. try {
  8851. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8852. return returnValue;
  8853. }
  8854. finally {
  8855. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8856. this.Adapter.DeleteCommand.Connection.Close();
  8857. }
  8858. }
  8859. }
  8860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8862. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8863. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8864. public virtual int Insert(string Region) {
  8865. if ((Region == null)) {
  8866. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8867. }
  8868. else {
  8869. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Region));
  8870. }
  8871. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8872. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8873. != global::System.Data.ConnectionState.Open)) {
  8874. this.Adapter.InsertCommand.Connection.Open();
  8875. }
  8876. try {
  8877. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8878. return returnValue;
  8879. }
  8880. finally {
  8881. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8882. this.Adapter.InsertCommand.Connection.Close();
  8883. }
  8884. }
  8885. }
  8886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8888. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8889. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8890. public virtual int Update(string Region, int Original_IDRegion, string Original_Region, int IDRegion) {
  8891. if ((Region == null)) {
  8892. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8893. }
  8894. else {
  8895. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Region));
  8896. }
  8897. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IDRegion));
  8898. if ((Original_Region == null)) {
  8899. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  8900. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8901. }
  8902. else {
  8903. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  8904. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Region));
  8905. }
  8906. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IDRegion));
  8907. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8908. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8909. != global::System.Data.ConnectionState.Open)) {
  8910. this.Adapter.UpdateCommand.Connection.Open();
  8911. }
  8912. try {
  8913. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8914. return returnValue;
  8915. }
  8916. finally {
  8917. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8918. this.Adapter.UpdateCommand.Connection.Close();
  8919. }
  8920. }
  8921. }
  8922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8924. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8925. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8926. public virtual int Update(string Region, int Original_IDRegion, string Original_Region) {
  8927. return this.Update(Region, Original_IDRegion, Original_Region, Original_IDRegion);
  8928. }
  8929. }
  8930. /// <summary>
  8931. ///Represents the connection and commands used to retrieve and save data.
  8932. ///</summary>
  8933. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8934. [global::System.ComponentModel.ToolboxItem(true)]
  8935. [global::System.ComponentModel.DataObjectAttribute(true)]
  8936. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8937. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8938. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8939. public partial class StreetTableAdapter : global::System.ComponentModel.Component {
  8940. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8941. private global::System.Data.SqlClient.SqlConnection _connection;
  8942. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8943. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8944. private bool _clearBeforeFill;
  8945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8947. public StreetTableAdapter() {
  8948. this.ClearBeforeFill = true;
  8949. }
  8950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8952. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8953. get {
  8954. if ((this._adapter == null)) {
  8955. this.InitAdapter();
  8956. }
  8957. return this._adapter;
  8958. }
  8959. }
  8960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8962. internal global::System.Data.SqlClient.SqlConnection Connection {
  8963. get {
  8964. if ((this._connection == null)) {
  8965. this.InitConnection();
  8966. }
  8967. return this._connection;
  8968. }
  8969. set {
  8970. this._connection = value;
  8971. if ((this.Adapter.InsertCommand != null)) {
  8972. this.Adapter.InsertCommand.Connection = value;
  8973. }
  8974. if ((this.Adapter.DeleteCommand != null)) {
  8975. this.Adapter.DeleteCommand.Connection = value;
  8976. }
  8977. if ((this.Adapter.UpdateCommand != null)) {
  8978. this.Adapter.UpdateCommand.Connection = value;
  8979. }
  8980. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8981. if ((this.CommandCollection[i] != null)) {
  8982. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8983. }
  8984. }
  8985. }
  8986. }
  8987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8989. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8990. get {
  8991. return this._transaction;
  8992. }
  8993. set {
  8994. this._transaction = value;
  8995. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8996. this.CommandCollection[i].Transaction = this._transaction;
  8997. }
  8998. if (((this.Adapter != null)
  8999. && (this.Adapter.DeleteCommand != null))) {
  9000. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9001. }
  9002. if (((this.Adapter != null)
  9003. && (this.Adapter.InsertCommand != null))) {
  9004. this.Adapter.InsertCommand.Transaction = this._transaction;
  9005. }
  9006. if (((this.Adapter != null)
  9007. && (this.Adapter.UpdateCommand != null))) {
  9008. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9009. }
  9010. }
  9011. }
  9012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9014. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9015. get {
  9016. if ((this._commandCollection == null)) {
  9017. this.InitCommandCollection();
  9018. }
  9019. return this._commandCollection;
  9020. }
  9021. }
  9022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9024. public bool ClearBeforeFill {
  9025. get {
  9026. return this._clearBeforeFill;
  9027. }
  9028. set {
  9029. this._clearBeforeFill = value;
  9030. }
  9031. }
  9032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9034. private void InitAdapter() {
  9035. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9036. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9037. tableMapping.SourceTable = "Table";
  9038. tableMapping.DataSetTable = "Street";
  9039. tableMapping.ColumnMappings.Add("IDStreet", "IDStreet");
  9040. tableMapping.ColumnMappings.Add("Street", "Street");
  9041. this._adapter.TableMappings.Add(tableMapping);
  9042. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9043. this._adapter.DeleteCommand.Connection = this.Connection;
  9044. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Street] WHERE (([IDStreet] = @Original_IDStreet) AND ((@IsNull" +
  9045. "_Street = 1 AND [Street] IS NULL) OR ([Street] = @Original_Street)))";
  9046. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9047. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDStreet", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9048. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Street", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Street", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9049. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Street", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Street", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9050. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9051. this._adapter.InsertCommand.Connection = this.Connection;
  9052. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Street] ([Street]) VALUES (@Street);\r\nSELECT IDStreet, Street " +
  9053. "FROM Street WHERE (IDStreet = SCOPE_IDENTITY())";
  9054. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9055. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Street", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Street", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9056. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9057. this._adapter.UpdateCommand.Connection = this.Connection;
  9058. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Street] SET [Street] = @Street WHERE (([IDStreet] = @Original_IDStr" +
  9059. "eet) AND ((@IsNull_Street = 1 AND [Street] IS NULL) OR ([Street] = @Original_Str" +
  9060. "eet)));\r\nSELECT IDStreet, Street FROM Street WHERE (IDStreet = @IDStreet)";
  9061. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9062. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Street", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Street", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9063. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDStreet", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDStreet", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9064. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Street", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Street", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9065. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Street", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Street", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9066. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDStreet", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDStreet", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9067. }
  9068. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9069. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9070. private void InitConnection() {
  9071. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9072. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  9073. }
  9074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9076. private void InitCommandCollection() {
  9077. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9078. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9079. this._commandCollection[0].Connection = this.Connection;
  9080. this._commandCollection[0].CommandText = "SELECT IDStreet, Street FROM dbo.Street";
  9081. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9082. }
  9083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9085. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9086. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9087. public virtual int Fill(AlfafloorGDVDataSet.StreetDataTable dataTable) {
  9088. this.Adapter.SelectCommand = this.CommandCollection[0];
  9089. if ((this.ClearBeforeFill == true)) {
  9090. dataTable.Clear();
  9091. }
  9092. int returnValue = this.Adapter.Fill(dataTable);
  9093. return returnValue;
  9094. }
  9095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9097. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9098. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9099. public virtual AlfafloorGDVDataSet.StreetDataTable GetData() {
  9100. this.Adapter.SelectCommand = this.CommandCollection[0];
  9101. AlfafloorGDVDataSet.StreetDataTable dataTable = new AlfafloorGDVDataSet.StreetDataTable();
  9102. this.Adapter.Fill(dataTable);
  9103. return dataTable;
  9104. }
  9105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9107. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9108. public virtual int Update(AlfafloorGDVDataSet.StreetDataTable dataTable) {
  9109. return this.Adapter.Update(dataTable);
  9110. }
  9111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9113. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9114. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  9115. return this.Adapter.Update(dataSet, "Street");
  9116. }
  9117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9119. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9120. public virtual int Update(global::System.Data.DataRow dataRow) {
  9121. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9122. dataRow});
  9123. }
  9124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9126. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9127. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9128. return this.Adapter.Update(dataRows);
  9129. }
  9130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9131. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9132. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9133. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9134. public virtual int Delete(int Original_IDStreet, string Original_Street) {
  9135. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDStreet));
  9136. if ((Original_Street == null)) {
  9137. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9138. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9139. }
  9140. else {
  9141. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9142. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Street));
  9143. }
  9144. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9145. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9146. != global::System.Data.ConnectionState.Open)) {
  9147. this.Adapter.DeleteCommand.Connection.Open();
  9148. }
  9149. try {
  9150. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9151. return returnValue;
  9152. }
  9153. finally {
  9154. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9155. this.Adapter.DeleteCommand.Connection.Close();
  9156. }
  9157. }
  9158. }
  9159. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9160. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9161. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9162. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9163. public virtual int Insert(string Street) {
  9164. if ((Street == null)) {
  9165. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9166. }
  9167. else {
  9168. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Street));
  9169. }
  9170. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9171. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9172. != global::System.Data.ConnectionState.Open)) {
  9173. this.Adapter.InsertCommand.Connection.Open();
  9174. }
  9175. try {
  9176. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9177. return returnValue;
  9178. }
  9179. finally {
  9180. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9181. this.Adapter.InsertCommand.Connection.Close();
  9182. }
  9183. }
  9184. }
  9185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9186. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9187. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9188. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9189. public virtual int Update(string Street, int Original_IDStreet, string Original_Street, int IDStreet) {
  9190. if ((Street == null)) {
  9191. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9192. }
  9193. else {
  9194. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Street));
  9195. }
  9196. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IDStreet));
  9197. if ((Original_Street == null)) {
  9198. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  9199. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9200. }
  9201. else {
  9202. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  9203. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Street));
  9204. }
  9205. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IDStreet));
  9206. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9207. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9208. != global::System.Data.ConnectionState.Open)) {
  9209. this.Adapter.UpdateCommand.Connection.Open();
  9210. }
  9211. try {
  9212. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9213. return returnValue;
  9214. }
  9215. finally {
  9216. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9217. this.Adapter.UpdateCommand.Connection.Close();
  9218. }
  9219. }
  9220. }
  9221. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9222. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9223. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9224. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9225. public virtual int Update(string Street, int Original_IDStreet, string Original_Street) {
  9226. return this.Update(Street, Original_IDStreet, Original_Street, Original_IDStreet);
  9227. }
  9228. }
  9229. /// <summary>
  9230. ///Represents the connection and commands used to retrieve and save data.
  9231. ///</summary>
  9232. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9233. [global::System.ComponentModel.ToolboxItem(true)]
  9234. [global::System.ComponentModel.DataObjectAttribute(true)]
  9235. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9236. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9237. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9238. public partial class TypeMaterialTableAdapter : global::System.ComponentModel.Component {
  9239. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9240. private global::System.Data.SqlClient.SqlConnection _connection;
  9241. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9242. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9243. private bool _clearBeforeFill;
  9244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9246. public TypeMaterialTableAdapter() {
  9247. this.ClearBeforeFill = true;
  9248. }
  9249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9251. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9252. get {
  9253. if ((this._adapter == null)) {
  9254. this.InitAdapter();
  9255. }
  9256. return this._adapter;
  9257. }
  9258. }
  9259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9261. internal global::System.Data.SqlClient.SqlConnection Connection {
  9262. get {
  9263. if ((this._connection == null)) {
  9264. this.InitConnection();
  9265. }
  9266. return this._connection;
  9267. }
  9268. set {
  9269. this._connection = value;
  9270. if ((this.Adapter.InsertCommand != null)) {
  9271. this.Adapter.InsertCommand.Connection = value;
  9272. }
  9273. if ((this.Adapter.DeleteCommand != null)) {
  9274. this.Adapter.DeleteCommand.Connection = value;
  9275. }
  9276. if ((this.Adapter.UpdateCommand != null)) {
  9277. this.Adapter.UpdateCommand.Connection = value;
  9278. }
  9279. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9280. if ((this.CommandCollection[i] != null)) {
  9281. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9282. }
  9283. }
  9284. }
  9285. }
  9286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9288. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9289. get {
  9290. return this._transaction;
  9291. }
  9292. set {
  9293. this._transaction = value;
  9294. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9295. this.CommandCollection[i].Transaction = this._transaction;
  9296. }
  9297. if (((this.Adapter != null)
  9298. && (this.Adapter.DeleteCommand != null))) {
  9299. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9300. }
  9301. if (((this.Adapter != null)
  9302. && (this.Adapter.InsertCommand != null))) {
  9303. this.Adapter.InsertCommand.Transaction = this._transaction;
  9304. }
  9305. if (((this.Adapter != null)
  9306. && (this.Adapter.UpdateCommand != null))) {
  9307. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9308. }
  9309. }
  9310. }
  9311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9313. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9314. get {
  9315. if ((this._commandCollection == null)) {
  9316. this.InitCommandCollection();
  9317. }
  9318. return this._commandCollection;
  9319. }
  9320. }
  9321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9323. public bool ClearBeforeFill {
  9324. get {
  9325. return this._clearBeforeFill;
  9326. }
  9327. set {
  9328. this._clearBeforeFill = value;
  9329. }
  9330. }
  9331. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9333. private void InitAdapter() {
  9334. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9335. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9336. tableMapping.SourceTable = "Table";
  9337. tableMapping.DataSetTable = "TypeMaterial";
  9338. tableMapping.ColumnMappings.Add("IDTypeMaterial", "IDTypeMaterial");
  9339. tableMapping.ColumnMappings.Add("TypeMaterial", "TypeMaterial");
  9340. tableMapping.ColumnMappings.Add("DefectPercent", "DefectPercent");
  9341. this._adapter.TableMappings.Add(tableMapping);
  9342. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9343. this._adapter.DeleteCommand.Connection = this.Connection;
  9344. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TypeMaterial] WHERE (([IDTypeMaterial] = @Original_IDTypeMaterial) AND ((@IsNull_TypeMaterial = 1 AND [TypeMaterial] IS NULL) OR ([TypeMaterial] = @Original_TypeMaterial)) AND ((@IsNull_DefectPercent = 1 AND [DefectPercent] IS NULL) OR ([DefectPercent] = @Original_DefectPercent)))";
  9345. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9346. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDTypeMaterial", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDTypeMaterial", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9347. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TypeMaterial", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeMaterial", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9348. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TypeMaterial", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeMaterial", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9349. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DefectPercent", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectPercent", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9350. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DefectPercent", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectPercent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9351. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9352. this._adapter.InsertCommand.Connection = this.Connection;
  9353. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypeMaterial] ([TypeMaterial], [DefectPercent]) VALUES (@TypeM" +
  9354. "aterial, @DefectPercent);\r\nSELECT IDTypeMaterial, TypeMaterial, DefectPercent FR" +
  9355. "OM TypeMaterial WHERE (IDTypeMaterial = SCOPE_IDENTITY())";
  9356. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9357. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TypeMaterial", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeMaterial", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9358. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DefectPercent", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectPercent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9359. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9360. this._adapter.UpdateCommand.Connection = this.Connection;
  9361. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TypeMaterial] SET [TypeMaterial] = @TypeMaterial, [DefectPercent] = @DefectPercent WHERE (([IDTypeMaterial] = @Original_IDTypeMaterial) AND ((@IsNull_TypeMaterial = 1 AND [TypeMaterial] IS NULL) OR ([TypeMaterial] = @Original_TypeMaterial)) AND ((@IsNull_DefectPercent = 1 AND [DefectPercent] IS NULL) OR ([DefectPercent] = @Original_DefectPercent)));
  9362. SELECT IDTypeMaterial, TypeMaterial, DefectPercent FROM TypeMaterial WHERE (IDTypeMaterial = @IDTypeMaterial)";
  9363. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9364. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TypeMaterial", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeMaterial", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9365. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DefectPercent", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectPercent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9366. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDTypeMaterial", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDTypeMaterial", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9367. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TypeMaterial", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeMaterial", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9368. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TypeMaterial", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeMaterial", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9369. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_DefectPercent", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectPercent", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9370. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DefectPercent", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DefectPercent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9371. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDTypeMaterial", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDTypeMaterial", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9372. }
  9373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9375. private void InitConnection() {
  9376. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9377. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  9378. }
  9379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9380. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9381. private void InitCommandCollection() {
  9382. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9383. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9384. this._commandCollection[0].Connection = this.Connection;
  9385. this._commandCollection[0].CommandText = "SELECT IDTypeMaterial, TypeMaterial, DefectPercent FROM dbo.TypeMaterial";
  9386. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9387. }
  9388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9390. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9391. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9392. public virtual int Fill(AlfafloorGDVDataSet.TypeMaterialDataTable dataTable) {
  9393. this.Adapter.SelectCommand = this.CommandCollection[0];
  9394. if ((this.ClearBeforeFill == true)) {
  9395. dataTable.Clear();
  9396. }
  9397. int returnValue = this.Adapter.Fill(dataTable);
  9398. return returnValue;
  9399. }
  9400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9402. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9403. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9404. public virtual AlfafloorGDVDataSet.TypeMaterialDataTable GetData() {
  9405. this.Adapter.SelectCommand = this.CommandCollection[0];
  9406. AlfafloorGDVDataSet.TypeMaterialDataTable dataTable = new AlfafloorGDVDataSet.TypeMaterialDataTable();
  9407. this.Adapter.Fill(dataTable);
  9408. return dataTable;
  9409. }
  9410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9412. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9413. public virtual int Update(AlfafloorGDVDataSet.TypeMaterialDataTable dataTable) {
  9414. return this.Adapter.Update(dataTable);
  9415. }
  9416. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9418. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9419. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  9420. return this.Adapter.Update(dataSet, "TypeMaterial");
  9421. }
  9422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9424. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9425. public virtual int Update(global::System.Data.DataRow dataRow) {
  9426. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9427. dataRow});
  9428. }
  9429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9431. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9432. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9433. return this.Adapter.Update(dataRows);
  9434. }
  9435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9437. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9438. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9439. public virtual int Delete(int Original_IDTypeMaterial, string Original_TypeMaterial, global::System.Nullable<double> Original_DefectPercent) {
  9440. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDTypeMaterial));
  9441. if ((Original_TypeMaterial == null)) {
  9442. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9443. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9444. }
  9445. else {
  9446. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9447. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_TypeMaterial));
  9448. }
  9449. if ((Original_DefectPercent.HasValue == true)) {
  9450. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  9451. this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_DefectPercent.Value));
  9452. }
  9453. else {
  9454. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  9455. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  9456. }
  9457. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9458. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9459. != global::System.Data.ConnectionState.Open)) {
  9460. this.Adapter.DeleteCommand.Connection.Open();
  9461. }
  9462. try {
  9463. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9464. return returnValue;
  9465. }
  9466. finally {
  9467. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9468. this.Adapter.DeleteCommand.Connection.Close();
  9469. }
  9470. }
  9471. }
  9472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9474. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9475. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9476. public virtual int Insert(string TypeMaterial, global::System.Nullable<double> DefectPercent) {
  9477. if ((TypeMaterial == null)) {
  9478. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9479. }
  9480. else {
  9481. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TypeMaterial));
  9482. }
  9483. if ((DefectPercent.HasValue == true)) {
  9484. this.Adapter.InsertCommand.Parameters[1].Value = ((double)(DefectPercent.Value));
  9485. }
  9486. else {
  9487. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9488. }
  9489. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9490. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9491. != global::System.Data.ConnectionState.Open)) {
  9492. this.Adapter.InsertCommand.Connection.Open();
  9493. }
  9494. try {
  9495. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9496. return returnValue;
  9497. }
  9498. finally {
  9499. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9500. this.Adapter.InsertCommand.Connection.Close();
  9501. }
  9502. }
  9503. }
  9504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9506. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9507. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9508. public virtual int Update(string TypeMaterial, global::System.Nullable<double> DefectPercent, int Original_IDTypeMaterial, string Original_TypeMaterial, global::System.Nullable<double> Original_DefectPercent, int IDTypeMaterial) {
  9509. if ((TypeMaterial == null)) {
  9510. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9511. }
  9512. else {
  9513. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TypeMaterial));
  9514. }
  9515. if ((DefectPercent.HasValue == true)) {
  9516. this.Adapter.UpdateCommand.Parameters[1].Value = ((double)(DefectPercent.Value));
  9517. }
  9518. else {
  9519. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9520. }
  9521. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_IDTypeMaterial));
  9522. if ((Original_TypeMaterial == null)) {
  9523. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  9524. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9525. }
  9526. else {
  9527. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  9528. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_TypeMaterial));
  9529. }
  9530. if ((Original_DefectPercent.HasValue == true)) {
  9531. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  9532. this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(Original_DefectPercent.Value));
  9533. }
  9534. else {
  9535. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  9536. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  9537. }
  9538. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(IDTypeMaterial));
  9539. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9540. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9541. != global::System.Data.ConnectionState.Open)) {
  9542. this.Adapter.UpdateCommand.Connection.Open();
  9543. }
  9544. try {
  9545. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9546. return returnValue;
  9547. }
  9548. finally {
  9549. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9550. this.Adapter.UpdateCommand.Connection.Close();
  9551. }
  9552. }
  9553. }
  9554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9556. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9557. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9558. public virtual int Update(string TypeMaterial, global::System.Nullable<double> DefectPercent, int Original_IDTypeMaterial, string Original_TypeMaterial, global::System.Nullable<double> Original_DefectPercent) {
  9559. return this.Update(TypeMaterial, DefectPercent, Original_IDTypeMaterial, Original_TypeMaterial, Original_DefectPercent, Original_IDTypeMaterial);
  9560. }
  9561. }
  9562. /// <summary>
  9563. ///Represents the connection and commands used to retrieve and save data.
  9564. ///</summary>
  9565. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9566. [global::System.ComponentModel.ToolboxItem(true)]
  9567. [global::System.ComponentModel.DataObjectAttribute(true)]
  9568. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9569. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9570. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9571. public partial class TypePartnerTableAdapter : global::System.ComponentModel.Component {
  9572. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9573. private global::System.Data.SqlClient.SqlConnection _connection;
  9574. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9575. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9576. private bool _clearBeforeFill;
  9577. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9578. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9579. public TypePartnerTableAdapter() {
  9580. this.ClearBeforeFill = true;
  9581. }
  9582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9584. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9585. get {
  9586. if ((this._adapter == null)) {
  9587. this.InitAdapter();
  9588. }
  9589. return this._adapter;
  9590. }
  9591. }
  9592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9594. internal global::System.Data.SqlClient.SqlConnection Connection {
  9595. get {
  9596. if ((this._connection == null)) {
  9597. this.InitConnection();
  9598. }
  9599. return this._connection;
  9600. }
  9601. set {
  9602. this._connection = value;
  9603. if ((this.Adapter.InsertCommand != null)) {
  9604. this.Adapter.InsertCommand.Connection = value;
  9605. }
  9606. if ((this.Adapter.DeleteCommand != null)) {
  9607. this.Adapter.DeleteCommand.Connection = value;
  9608. }
  9609. if ((this.Adapter.UpdateCommand != null)) {
  9610. this.Adapter.UpdateCommand.Connection = value;
  9611. }
  9612. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9613. if ((this.CommandCollection[i] != null)) {
  9614. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9615. }
  9616. }
  9617. }
  9618. }
  9619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9621. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9622. get {
  9623. return this._transaction;
  9624. }
  9625. set {
  9626. this._transaction = value;
  9627. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9628. this.CommandCollection[i].Transaction = this._transaction;
  9629. }
  9630. if (((this.Adapter != null)
  9631. && (this.Adapter.DeleteCommand != null))) {
  9632. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9633. }
  9634. if (((this.Adapter != null)
  9635. && (this.Adapter.InsertCommand != null))) {
  9636. this.Adapter.InsertCommand.Transaction = this._transaction;
  9637. }
  9638. if (((this.Adapter != null)
  9639. && (this.Adapter.UpdateCommand != null))) {
  9640. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9641. }
  9642. }
  9643. }
  9644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9646. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9647. get {
  9648. if ((this._commandCollection == null)) {
  9649. this.InitCommandCollection();
  9650. }
  9651. return this._commandCollection;
  9652. }
  9653. }
  9654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9656. public bool ClearBeforeFill {
  9657. get {
  9658. return this._clearBeforeFill;
  9659. }
  9660. set {
  9661. this._clearBeforeFill = value;
  9662. }
  9663. }
  9664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9666. private void InitAdapter() {
  9667. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9668. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9669. tableMapping.SourceTable = "Table";
  9670. tableMapping.DataSetTable = "TypePartner";
  9671. tableMapping.ColumnMappings.Add("IDTypePartner", "IDTypePartner");
  9672. tableMapping.ColumnMappings.Add("TypePartner", "TypePartner");
  9673. this._adapter.TableMappings.Add(tableMapping);
  9674. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9675. this._adapter.DeleteCommand.Connection = this.Connection;
  9676. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TypePartner] WHERE (([IDTypePartner] = @Original_IDTypePartner" +
  9677. ") AND ((@IsNull_TypePartner = 1 AND [TypePartner] IS NULL) OR ([TypePartner] = @" +
  9678. "Original_TypePartner)))";
  9679. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9680. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDTypePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9681. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9682. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TypePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9683. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9684. this._adapter.InsertCommand.Connection = this.Connection;
  9685. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypePartner] ([TypePartner]) VALUES (@TypePartner);\r\nSELECT ID" +
  9686. "TypePartner, TypePartner FROM TypePartner WHERE (IDTypePartner = SCOPE_IDENTITY(" +
  9687. "))";
  9688. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9689. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TypePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9690. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9691. this._adapter.UpdateCommand.Connection = this.Connection;
  9692. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TypePartner] SET [TypePartner] = @TypePartner WHERE (([IDTypePartner] = @Original_IDTypePartner) AND ((@IsNull_TypePartner = 1 AND [TypePartner] IS NULL) OR ([TypePartner] = @Original_TypePartner)));
  9693. SELECT IDTypePartner, TypePartner FROM TypePartner WHERE (IDTypePartner = @IDTypePartner)";
  9694. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9695. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TypePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9696. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IDTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IDTypePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9697. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9698. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TypePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9699. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IDTypePartner", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "IDTypePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9700. }
  9701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9703. private void InitConnection() {
  9704. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9705. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  9706. }
  9707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9709. private void InitCommandCollection() {
  9710. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9711. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9712. this._commandCollection[0].Connection = this.Connection;
  9713. this._commandCollection[0].CommandText = "SELECT IDTypePartner, TypePartner FROM dbo.TypePartner";
  9714. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9715. }
  9716. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9717. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9718. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9719. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9720. public virtual int Fill(AlfafloorGDVDataSet.TypePartnerDataTable dataTable) {
  9721. this.Adapter.SelectCommand = this.CommandCollection[0];
  9722. if ((this.ClearBeforeFill == true)) {
  9723. dataTable.Clear();
  9724. }
  9725. int returnValue = this.Adapter.Fill(dataTable);
  9726. return returnValue;
  9727. }
  9728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9730. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9731. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9732. public virtual AlfafloorGDVDataSet.TypePartnerDataTable GetData() {
  9733. this.Adapter.SelectCommand = this.CommandCollection[0];
  9734. AlfafloorGDVDataSet.TypePartnerDataTable dataTable = new AlfafloorGDVDataSet.TypePartnerDataTable();
  9735. this.Adapter.Fill(dataTable);
  9736. return dataTable;
  9737. }
  9738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9740. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9741. public virtual int Update(AlfafloorGDVDataSet.TypePartnerDataTable dataTable) {
  9742. return this.Adapter.Update(dataTable);
  9743. }
  9744. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9746. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9747. public virtual int Update(AlfafloorGDVDataSet dataSet) {
  9748. return this.Adapter.Update(dataSet, "TypePartner");
  9749. }
  9750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9752. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9753. public virtual int Update(global::System.Data.DataRow dataRow) {
  9754. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9755. dataRow});
  9756. }
  9757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9759. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9760. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9761. return this.Adapter.Update(dataRows);
  9762. }
  9763. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9764. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9765. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9766. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9767. public virtual int Delete(int Original_IDTypePartner, string Original_TypePartner) {
  9768. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_IDTypePartner));
  9769. if ((Original_TypePartner == null)) {
  9770. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9771. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9772. }
  9773. else {
  9774. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9775. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_TypePartner));
  9776. }
  9777. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9778. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9779. != global::System.Data.ConnectionState.Open)) {
  9780. this.Adapter.DeleteCommand.Connection.Open();
  9781. }
  9782. try {
  9783. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9784. return returnValue;
  9785. }
  9786. finally {
  9787. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9788. this.Adapter.DeleteCommand.Connection.Close();
  9789. }
  9790. }
  9791. }
  9792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9794. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9795. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9796. public virtual int Insert(string TypePartner) {
  9797. if ((TypePartner == null)) {
  9798. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9799. }
  9800. else {
  9801. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TypePartner));
  9802. }
  9803. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9804. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9805. != global::System.Data.ConnectionState.Open)) {
  9806. this.Adapter.InsertCommand.Connection.Open();
  9807. }
  9808. try {
  9809. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9810. return returnValue;
  9811. }
  9812. finally {
  9813. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9814. this.Adapter.InsertCommand.Connection.Close();
  9815. }
  9816. }
  9817. }
  9818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9820. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9821. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9822. public virtual int Update(string TypePartner, int Original_IDTypePartner, string Original_TypePartner, int IDTypePartner) {
  9823. if ((TypePartner == null)) {
  9824. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9825. }
  9826. else {
  9827. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TypePartner));
  9828. }
  9829. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_IDTypePartner));
  9830. if ((Original_TypePartner == null)) {
  9831. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  9832. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9833. }
  9834. else {
  9835. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  9836. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_TypePartner));
  9837. }
  9838. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(IDTypePartner));
  9839. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9840. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9841. != global::System.Data.ConnectionState.Open)) {
  9842. this.Adapter.UpdateCommand.Connection.Open();
  9843. }
  9844. try {
  9845. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9846. return returnValue;
  9847. }
  9848. finally {
  9849. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9850. this.Adapter.UpdateCommand.Connection.Close();
  9851. }
  9852. }
  9853. }
  9854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9856. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9857. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9858. public virtual int Update(string TypePartner, int Original_IDTypePartner, string Original_TypePartner) {
  9859. return this.Update(TypePartner, Original_IDTypePartner, Original_TypePartner, Original_IDTypePartner);
  9860. }
  9861. }
  9862. /// <summary>
  9863. ///Represents the connection and commands used to retrieve and save data.
  9864. ///</summary>
  9865. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9866. [global::System.ComponentModel.ToolboxItem(true)]
  9867. [global::System.ComponentModel.DataObjectAttribute(true)]
  9868. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9869. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9870. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9871. public partial class Type4FilterTableAdapter : global::System.ComponentModel.Component {
  9872. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9873. private global::System.Data.SqlClient.SqlConnection _connection;
  9874. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9875. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9876. private bool _clearBeforeFill;
  9877. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9879. public Type4FilterTableAdapter() {
  9880. this.ClearBeforeFill = true;
  9881. }
  9882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9884. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9885. get {
  9886. if ((this._adapter == null)) {
  9887. this.InitAdapter();
  9888. }
  9889. return this._adapter;
  9890. }
  9891. }
  9892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9894. internal global::System.Data.SqlClient.SqlConnection Connection {
  9895. get {
  9896. if ((this._connection == null)) {
  9897. this.InitConnection();
  9898. }
  9899. return this._connection;
  9900. }
  9901. set {
  9902. this._connection = value;
  9903. if ((this.Adapter.InsertCommand != null)) {
  9904. this.Adapter.InsertCommand.Connection = value;
  9905. }
  9906. if ((this.Adapter.DeleteCommand != null)) {
  9907. this.Adapter.DeleteCommand.Connection = value;
  9908. }
  9909. if ((this.Adapter.UpdateCommand != null)) {
  9910. this.Adapter.UpdateCommand.Connection = value;
  9911. }
  9912. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9913. if ((this.CommandCollection[i] != null)) {
  9914. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9915. }
  9916. }
  9917. }
  9918. }
  9919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9921. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9922. get {
  9923. return this._transaction;
  9924. }
  9925. set {
  9926. this._transaction = value;
  9927. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9928. this.CommandCollection[i].Transaction = this._transaction;
  9929. }
  9930. if (((this.Adapter != null)
  9931. && (this.Adapter.DeleteCommand != null))) {
  9932. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9933. }
  9934. if (((this.Adapter != null)
  9935. && (this.Adapter.InsertCommand != null))) {
  9936. this.Adapter.InsertCommand.Transaction = this._transaction;
  9937. }
  9938. if (((this.Adapter != null)
  9939. && (this.Adapter.UpdateCommand != null))) {
  9940. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9941. }
  9942. }
  9943. }
  9944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9946. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9947. get {
  9948. if ((this._commandCollection == null)) {
  9949. this.InitCommandCollection();
  9950. }
  9951. return this._commandCollection;
  9952. }
  9953. }
  9954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9956. public bool ClearBeforeFill {
  9957. get {
  9958. return this._clearBeforeFill;
  9959. }
  9960. set {
  9961. this._clearBeforeFill = value;
  9962. }
  9963. }
  9964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9966. private void InitAdapter() {
  9967. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9968. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9969. tableMapping.SourceTable = "Table";
  9970. tableMapping.DataSetTable = "Type4Filter";
  9971. tableMapping.ColumnMappings.Add("Column1", "TypePartner");
  9972. this._adapter.TableMappings.Add(tableMapping);
  9973. }
  9974. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9975. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9976. private void InitConnection() {
  9977. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9978. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.AlfafloorGDVConnectionString;
  9979. }
  9980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9982. private void InitCommandCollection() {
  9983. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9984. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9985. this._commandCollection[0].Connection = this.Connection;
  9986. this._commandCollection[0].CommandText = "select \'Все типы\' \r\nunion all\r\nSELECT TypePartner\r\nFROM TypePa" +
  9987. "rtner";
  9988. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9989. }
  9990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9992. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9993. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9994. public virtual int Fill(AlfafloorGDVDataSet.Type4FilterDataTable dataTable) {
  9995. this.Adapter.SelectCommand = this.CommandCollection[0];
  9996. if ((this.ClearBeforeFill == true)) {
  9997. dataTable.Clear();
  9998. }
  9999. int returnValue = this.Adapter.Fill(dataTable);
  10000. return returnValue;
  10001. }
  10002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10004. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10005. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10006. public virtual AlfafloorGDVDataSet.Type4FilterDataTable GetData() {
  10007. this.Adapter.SelectCommand = this.CommandCollection[0];
  10008. AlfafloorGDVDataSet.Type4FilterDataTable dataTable = new AlfafloorGDVDataSet.Type4FilterDataTable();
  10009. this.Adapter.Fill(dataTable);
  10010. return dataTable;
  10011. }
  10012. }
  10013. /// <summary>
  10014. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  10015. ///</summary>
  10016. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10017. [global::System.ComponentModel.ToolboxItem(true)]
  10018. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  10019. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10020. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  10021. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  10022. private UpdateOrderOption _updateOrder;
  10023. private CityTableAdapter _cityTableAdapter;
  10024. private ManagerTableAdapter _managerTableAdapter;
  10025. private PartnerTableAdapter _partnerTableAdapter;
  10026. private PartnerProductsTableAdapter _partnerProductsTableAdapter;
  10027. private PostCodeTableAdapter _postCodeTableAdapter;
  10028. private ProductTableAdapter _productTableAdapter;
  10029. private ProductTypeTableAdapter _productTypeTableAdapter;
  10030. private RegionTableAdapter _regionTableAdapter;
  10031. private StreetTableAdapter _streetTableAdapter;
  10032. private TypeMaterialTableAdapter _typeMaterialTableAdapter;
  10033. private TypePartnerTableAdapter _typePartnerTableAdapter;
  10034. private bool _backupDataSetBeforeUpdate;
  10035. private global::System.Data.IDbConnection _connection;
  10036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10038. public UpdateOrderOption UpdateOrder {
  10039. get {
  10040. return this._updateOrder;
  10041. }
  10042. set {
  10043. this._updateOrder = value;
  10044. }
  10045. }
  10046. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10048. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10049. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10050. "a", "System.Drawing.Design.UITypeEditor")]
  10051. public CityTableAdapter CityTableAdapter {
  10052. get {
  10053. return this._cityTableAdapter;
  10054. }
  10055. set {
  10056. this._cityTableAdapter = value;
  10057. }
  10058. }
  10059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10061. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10062. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10063. "a", "System.Drawing.Design.UITypeEditor")]
  10064. public ManagerTableAdapter ManagerTableAdapter {
  10065. get {
  10066. return this._managerTableAdapter;
  10067. }
  10068. set {
  10069. this._managerTableAdapter = value;
  10070. }
  10071. }
  10072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10074. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10075. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10076. "a", "System.Drawing.Design.UITypeEditor")]
  10077. public PartnerTableAdapter PartnerTableAdapter {
  10078. get {
  10079. return this._partnerTableAdapter;
  10080. }
  10081. set {
  10082. this._partnerTableAdapter = value;
  10083. }
  10084. }
  10085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10087. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10088. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10089. "a", "System.Drawing.Design.UITypeEditor")]
  10090. public PartnerProductsTableAdapter PartnerProductsTableAdapter {
  10091. get {
  10092. return this._partnerProductsTableAdapter;
  10093. }
  10094. set {
  10095. this._partnerProductsTableAdapter = value;
  10096. }
  10097. }
  10098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10100. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10101. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10102. "a", "System.Drawing.Design.UITypeEditor")]
  10103. public PostCodeTableAdapter PostCodeTableAdapter {
  10104. get {
  10105. return this._postCodeTableAdapter;
  10106. }
  10107. set {
  10108. this._postCodeTableAdapter = value;
  10109. }
  10110. }
  10111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10113. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10114. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10115. "a", "System.Drawing.Design.UITypeEditor")]
  10116. public ProductTableAdapter ProductTableAdapter {
  10117. get {
  10118. return this._productTableAdapter;
  10119. }
  10120. set {
  10121. this._productTableAdapter = value;
  10122. }
  10123. }
  10124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10126. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10127. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10128. "a", "System.Drawing.Design.UITypeEditor")]
  10129. public ProductTypeTableAdapter ProductTypeTableAdapter {
  10130. get {
  10131. return this._productTypeTableAdapter;
  10132. }
  10133. set {
  10134. this._productTypeTableAdapter = value;
  10135. }
  10136. }
  10137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10139. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10140. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10141. "a", "System.Drawing.Design.UITypeEditor")]
  10142. public RegionTableAdapter RegionTableAdapter {
  10143. get {
  10144. return this._regionTableAdapter;
  10145. }
  10146. set {
  10147. this._regionTableAdapter = value;
  10148. }
  10149. }
  10150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10152. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10153. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10154. "a", "System.Drawing.Design.UITypeEditor")]
  10155. public StreetTableAdapter StreetTableAdapter {
  10156. get {
  10157. return this._streetTableAdapter;
  10158. }
  10159. set {
  10160. this._streetTableAdapter = value;
  10161. }
  10162. }
  10163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10165. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10166. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10167. "a", "System.Drawing.Design.UITypeEditor")]
  10168. public TypeMaterialTableAdapter TypeMaterialTableAdapter {
  10169. get {
  10170. return this._typeMaterialTableAdapter;
  10171. }
  10172. set {
  10173. this._typeMaterialTableAdapter = value;
  10174. }
  10175. }
  10176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10178. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10179. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10180. "a", "System.Drawing.Design.UITypeEditor")]
  10181. public TypePartnerTableAdapter TypePartnerTableAdapter {
  10182. get {
  10183. return this._typePartnerTableAdapter;
  10184. }
  10185. set {
  10186. this._typePartnerTableAdapter = value;
  10187. }
  10188. }
  10189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10191. public bool BackupDataSetBeforeUpdate {
  10192. get {
  10193. return this._backupDataSetBeforeUpdate;
  10194. }
  10195. set {
  10196. this._backupDataSetBeforeUpdate = value;
  10197. }
  10198. }
  10199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10201. [global::System.ComponentModel.Browsable(false)]
  10202. public global::System.Data.IDbConnection Connection {
  10203. get {
  10204. if ((this._connection != null)) {
  10205. return this._connection;
  10206. }
  10207. if (((this._cityTableAdapter != null)
  10208. && (this._cityTableAdapter.Connection != null))) {
  10209. return this._cityTableAdapter.Connection;
  10210. }
  10211. if (((this._managerTableAdapter != null)
  10212. && (this._managerTableAdapter.Connection != null))) {
  10213. return this._managerTableAdapter.Connection;
  10214. }
  10215. if (((this._partnerTableAdapter != null)
  10216. && (this._partnerTableAdapter.Connection != null))) {
  10217. return this._partnerTableAdapter.Connection;
  10218. }
  10219. if (((this._partnerProductsTableAdapter != null)
  10220. && (this._partnerProductsTableAdapter.Connection != null))) {
  10221. return this._partnerProductsTableAdapter.Connection;
  10222. }
  10223. if (((this._postCodeTableAdapter != null)
  10224. && (this._postCodeTableAdapter.Connection != null))) {
  10225. return this._postCodeTableAdapter.Connection;
  10226. }
  10227. if (((this._productTableAdapter != null)
  10228. && (this._productTableAdapter.Connection != null))) {
  10229. return this._productTableAdapter.Connection;
  10230. }
  10231. if (((this._productTypeTableAdapter != null)
  10232. && (this._productTypeTableAdapter.Connection != null))) {
  10233. return this._productTypeTableAdapter.Connection;
  10234. }
  10235. if (((this._regionTableAdapter != null)
  10236. && (this._regionTableAdapter.Connection != null))) {
  10237. return this._regionTableAdapter.Connection;
  10238. }
  10239. if (((this._streetTableAdapter != null)
  10240. && (this._streetTableAdapter.Connection != null))) {
  10241. return this._streetTableAdapter.Connection;
  10242. }
  10243. if (((this._typeMaterialTableAdapter != null)
  10244. && (this._typeMaterialTableAdapter.Connection != null))) {
  10245. return this._typeMaterialTableAdapter.Connection;
  10246. }
  10247. if (((this._typePartnerTableAdapter != null)
  10248. && (this._typePartnerTableAdapter.Connection != null))) {
  10249. return this._typePartnerTableAdapter.Connection;
  10250. }
  10251. return null;
  10252. }
  10253. set {
  10254. this._connection = value;
  10255. }
  10256. }
  10257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10259. [global::System.ComponentModel.Browsable(false)]
  10260. public int TableAdapterInstanceCount {
  10261. get {
  10262. int count = 0;
  10263. if ((this._cityTableAdapter != null)) {
  10264. count = (count + 1);
  10265. }
  10266. if ((this._managerTableAdapter != null)) {
  10267. count = (count + 1);
  10268. }
  10269. if ((this._partnerTableAdapter != null)) {
  10270. count = (count + 1);
  10271. }
  10272. if ((this._partnerProductsTableAdapter != null)) {
  10273. count = (count + 1);
  10274. }
  10275. if ((this._postCodeTableAdapter != null)) {
  10276. count = (count + 1);
  10277. }
  10278. if ((this._productTableAdapter != null)) {
  10279. count = (count + 1);
  10280. }
  10281. if ((this._productTypeTableAdapter != null)) {
  10282. count = (count + 1);
  10283. }
  10284. if ((this._regionTableAdapter != null)) {
  10285. count = (count + 1);
  10286. }
  10287. if ((this._streetTableAdapter != null)) {
  10288. count = (count + 1);
  10289. }
  10290. if ((this._typeMaterialTableAdapter != null)) {
  10291. count = (count + 1);
  10292. }
  10293. if ((this._typePartnerTableAdapter != null)) {
  10294. count = (count + 1);
  10295. }
  10296. return count;
  10297. }
  10298. }
  10299. /// <summary>
  10300. ///Update rows in top-down order.
  10301. ///</summary>
  10302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10304. private int UpdateUpdatedRows(AlfafloorGDVDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10305. int result = 0;
  10306. if ((this._cityTableAdapter != null)) {
  10307. global::System.Data.DataRow[] updatedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10308. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10309. if (((updatedRows != null)
  10310. && (0 < updatedRows.Length))) {
  10311. result = (result + this._cityTableAdapter.Update(updatedRows));
  10312. allChangedRows.AddRange(updatedRows);
  10313. }
  10314. }
  10315. if ((this._postCodeTableAdapter != null)) {
  10316. global::System.Data.DataRow[] updatedRows = dataSet.PostCode.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10317. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10318. if (((updatedRows != null)
  10319. && (0 < updatedRows.Length))) {
  10320. result = (result + this._postCodeTableAdapter.Update(updatedRows));
  10321. allChangedRows.AddRange(updatedRows);
  10322. }
  10323. }
  10324. if ((this._productTypeTableAdapter != null)) {
  10325. global::System.Data.DataRow[] updatedRows = dataSet.ProductType.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10326. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10327. if (((updatedRows != null)
  10328. && (0 < updatedRows.Length))) {
  10329. result = (result + this._productTypeTableAdapter.Update(updatedRows));
  10330. allChangedRows.AddRange(updatedRows);
  10331. }
  10332. }
  10333. if ((this._regionTableAdapter != null)) {
  10334. global::System.Data.DataRow[] updatedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10335. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10336. if (((updatedRows != null)
  10337. && (0 < updatedRows.Length))) {
  10338. result = (result + this._regionTableAdapter.Update(updatedRows));
  10339. allChangedRows.AddRange(updatedRows);
  10340. }
  10341. }
  10342. if ((this._streetTableAdapter != null)) {
  10343. global::System.Data.DataRow[] updatedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10344. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10345. if (((updatedRows != null)
  10346. && (0 < updatedRows.Length))) {
  10347. result = (result + this._streetTableAdapter.Update(updatedRows));
  10348. allChangedRows.AddRange(updatedRows);
  10349. }
  10350. }
  10351. if ((this._typePartnerTableAdapter != null)) {
  10352. global::System.Data.DataRow[] updatedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10353. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10354. if (((updatedRows != null)
  10355. && (0 < updatedRows.Length))) {
  10356. result = (result + this._typePartnerTableAdapter.Update(updatedRows));
  10357. allChangedRows.AddRange(updatedRows);
  10358. }
  10359. }
  10360. if ((this._partnerTableAdapter != null)) {
  10361. global::System.Data.DataRow[] updatedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10362. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10363. if (((updatedRows != null)
  10364. && (0 < updatedRows.Length))) {
  10365. result = (result + this._partnerTableAdapter.Update(updatedRows));
  10366. allChangedRows.AddRange(updatedRows);
  10367. }
  10368. }
  10369. if ((this._productTableAdapter != null)) {
  10370. global::System.Data.DataRow[] updatedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10371. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10372. if (((updatedRows != null)
  10373. && (0 < updatedRows.Length))) {
  10374. result = (result + this._productTableAdapter.Update(updatedRows));
  10375. allChangedRows.AddRange(updatedRows);
  10376. }
  10377. }
  10378. if ((this._managerTableAdapter != null)) {
  10379. global::System.Data.DataRow[] updatedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10380. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10381. if (((updatedRows != null)
  10382. && (0 < updatedRows.Length))) {
  10383. result = (result + this._managerTableAdapter.Update(updatedRows));
  10384. allChangedRows.AddRange(updatedRows);
  10385. }
  10386. }
  10387. if ((this._partnerProductsTableAdapter != null)) {
  10388. global::System.Data.DataRow[] updatedRows = dataSet.PartnerProducts.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10389. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10390. if (((updatedRows != null)
  10391. && (0 < updatedRows.Length))) {
  10392. result = (result + this._partnerProductsTableAdapter.Update(updatedRows));
  10393. allChangedRows.AddRange(updatedRows);
  10394. }
  10395. }
  10396. if ((this._typeMaterialTableAdapter != null)) {
  10397. global::System.Data.DataRow[] updatedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10398. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10399. if (((updatedRows != null)
  10400. && (0 < updatedRows.Length))) {
  10401. result = (result + this._typeMaterialTableAdapter.Update(updatedRows));
  10402. allChangedRows.AddRange(updatedRows);
  10403. }
  10404. }
  10405. return result;
  10406. }
  10407. /// <summary>
  10408. ///Insert rows in top-down order.
  10409. ///</summary>
  10410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10412. private int UpdateInsertedRows(AlfafloorGDVDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10413. int result = 0;
  10414. if ((this._cityTableAdapter != null)) {
  10415. global::System.Data.DataRow[] addedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.Added);
  10416. if (((addedRows != null)
  10417. && (0 < addedRows.Length))) {
  10418. result = (result + this._cityTableAdapter.Update(addedRows));
  10419. allAddedRows.AddRange(addedRows);
  10420. }
  10421. }
  10422. if ((this._postCodeTableAdapter != null)) {
  10423. global::System.Data.DataRow[] addedRows = dataSet.PostCode.Select(null, null, global::System.Data.DataViewRowState.Added);
  10424. if (((addedRows != null)
  10425. && (0 < addedRows.Length))) {
  10426. result = (result + this._postCodeTableAdapter.Update(addedRows));
  10427. allAddedRows.AddRange(addedRows);
  10428. }
  10429. }
  10430. if ((this._productTypeTableAdapter != null)) {
  10431. global::System.Data.DataRow[] addedRows = dataSet.ProductType.Select(null, null, global::System.Data.DataViewRowState.Added);
  10432. if (((addedRows != null)
  10433. && (0 < addedRows.Length))) {
  10434. result = (result + this._productTypeTableAdapter.Update(addedRows));
  10435. allAddedRows.AddRange(addedRows);
  10436. }
  10437. }
  10438. if ((this._regionTableAdapter != null)) {
  10439. global::System.Data.DataRow[] addedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.Added);
  10440. if (((addedRows != null)
  10441. && (0 < addedRows.Length))) {
  10442. result = (result + this._regionTableAdapter.Update(addedRows));
  10443. allAddedRows.AddRange(addedRows);
  10444. }
  10445. }
  10446. if ((this._streetTableAdapter != null)) {
  10447. global::System.Data.DataRow[] addedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.Added);
  10448. if (((addedRows != null)
  10449. && (0 < addedRows.Length))) {
  10450. result = (result + this._streetTableAdapter.Update(addedRows));
  10451. allAddedRows.AddRange(addedRows);
  10452. }
  10453. }
  10454. if ((this._typePartnerTableAdapter != null)) {
  10455. global::System.Data.DataRow[] addedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.Added);
  10456. if (((addedRows != null)
  10457. && (0 < addedRows.Length))) {
  10458. result = (result + this._typePartnerTableAdapter.Update(addedRows));
  10459. allAddedRows.AddRange(addedRows);
  10460. }
  10461. }
  10462. if ((this._partnerTableAdapter != null)) {
  10463. global::System.Data.DataRow[] addedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.Added);
  10464. if (((addedRows != null)
  10465. && (0 < addedRows.Length))) {
  10466. result = (result + this._partnerTableAdapter.Update(addedRows));
  10467. allAddedRows.AddRange(addedRows);
  10468. }
  10469. }
  10470. if ((this._productTableAdapter != null)) {
  10471. global::System.Data.DataRow[] addedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Added);
  10472. if (((addedRows != null)
  10473. && (0 < addedRows.Length))) {
  10474. result = (result + this._productTableAdapter.Update(addedRows));
  10475. allAddedRows.AddRange(addedRows);
  10476. }
  10477. }
  10478. if ((this._managerTableAdapter != null)) {
  10479. global::System.Data.DataRow[] addedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.Added);
  10480. if (((addedRows != null)
  10481. && (0 < addedRows.Length))) {
  10482. result = (result + this._managerTableAdapter.Update(addedRows));
  10483. allAddedRows.AddRange(addedRows);
  10484. }
  10485. }
  10486. if ((this._partnerProductsTableAdapter != null)) {
  10487. global::System.Data.DataRow[] addedRows = dataSet.PartnerProducts.Select(null, null, global::System.Data.DataViewRowState.Added);
  10488. if (((addedRows != null)
  10489. && (0 < addedRows.Length))) {
  10490. result = (result + this._partnerProductsTableAdapter.Update(addedRows));
  10491. allAddedRows.AddRange(addedRows);
  10492. }
  10493. }
  10494. if ((this._typeMaterialTableAdapter != null)) {
  10495. global::System.Data.DataRow[] addedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.Added);
  10496. if (((addedRows != null)
  10497. && (0 < addedRows.Length))) {
  10498. result = (result + this._typeMaterialTableAdapter.Update(addedRows));
  10499. allAddedRows.AddRange(addedRows);
  10500. }
  10501. }
  10502. return result;
  10503. }
  10504. /// <summary>
  10505. ///Delete rows in bottom-up order.
  10506. ///</summary>
  10507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10509. private int UpdateDeletedRows(AlfafloorGDVDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  10510. int result = 0;
  10511. if ((this._typeMaterialTableAdapter != null)) {
  10512. global::System.Data.DataRow[] deletedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10513. if (((deletedRows != null)
  10514. && (0 < deletedRows.Length))) {
  10515. result = (result + this._typeMaterialTableAdapter.Update(deletedRows));
  10516. allChangedRows.AddRange(deletedRows);
  10517. }
  10518. }
  10519. if ((this._partnerProductsTableAdapter != null)) {
  10520. global::System.Data.DataRow[] deletedRows = dataSet.PartnerProducts.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10521. if (((deletedRows != null)
  10522. && (0 < deletedRows.Length))) {
  10523. result = (result + this._partnerProductsTableAdapter.Update(deletedRows));
  10524. allChangedRows.AddRange(deletedRows);
  10525. }
  10526. }
  10527. if ((this._managerTableAdapter != null)) {
  10528. global::System.Data.DataRow[] deletedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10529. if (((deletedRows != null)
  10530. && (0 < deletedRows.Length))) {
  10531. result = (result + this._managerTableAdapter.Update(deletedRows));
  10532. allChangedRows.AddRange(deletedRows);
  10533. }
  10534. }
  10535. if ((this._productTableAdapter != null)) {
  10536. global::System.Data.DataRow[] deletedRows = dataSet.Product.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10537. if (((deletedRows != null)
  10538. && (0 < deletedRows.Length))) {
  10539. result = (result + this._productTableAdapter.Update(deletedRows));
  10540. allChangedRows.AddRange(deletedRows);
  10541. }
  10542. }
  10543. if ((this._partnerTableAdapter != null)) {
  10544. global::System.Data.DataRow[] deletedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10545. if (((deletedRows != null)
  10546. && (0 < deletedRows.Length))) {
  10547. result = (result + this._partnerTableAdapter.Update(deletedRows));
  10548. allChangedRows.AddRange(deletedRows);
  10549. }
  10550. }
  10551. if ((this._typePartnerTableAdapter != null)) {
  10552. global::System.Data.DataRow[] deletedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10553. if (((deletedRows != null)
  10554. && (0 < deletedRows.Length))) {
  10555. result = (result + this._typePartnerTableAdapter.Update(deletedRows));
  10556. allChangedRows.AddRange(deletedRows);
  10557. }
  10558. }
  10559. if ((this._streetTableAdapter != null)) {
  10560. global::System.Data.DataRow[] deletedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10561. if (((deletedRows != null)
  10562. && (0 < deletedRows.Length))) {
  10563. result = (result + this._streetTableAdapter.Update(deletedRows));
  10564. allChangedRows.AddRange(deletedRows);
  10565. }
  10566. }
  10567. if ((this._regionTableAdapter != null)) {
  10568. global::System.Data.DataRow[] deletedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10569. if (((deletedRows != null)
  10570. && (0 < deletedRows.Length))) {
  10571. result = (result + this._regionTableAdapter.Update(deletedRows));
  10572. allChangedRows.AddRange(deletedRows);
  10573. }
  10574. }
  10575. if ((this._productTypeTableAdapter != null)) {
  10576. global::System.Data.DataRow[] deletedRows = dataSet.ProductType.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10577. if (((deletedRows != null)
  10578. && (0 < deletedRows.Length))) {
  10579. result = (result + this._productTypeTableAdapter.Update(deletedRows));
  10580. allChangedRows.AddRange(deletedRows);
  10581. }
  10582. }
  10583. if ((this._postCodeTableAdapter != null)) {
  10584. global::System.Data.DataRow[] deletedRows = dataSet.PostCode.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10585. if (((deletedRows != null)
  10586. && (0 < deletedRows.Length))) {
  10587. result = (result + this._postCodeTableAdapter.Update(deletedRows));
  10588. allChangedRows.AddRange(deletedRows);
  10589. }
  10590. }
  10591. if ((this._cityTableAdapter != null)) {
  10592. global::System.Data.DataRow[] deletedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  10593. if (((deletedRows != null)
  10594. && (0 < deletedRows.Length))) {
  10595. result = (result + this._cityTableAdapter.Update(deletedRows));
  10596. allChangedRows.AddRange(deletedRows);
  10597. }
  10598. }
  10599. return result;
  10600. }
  10601. /// <summary>
  10602. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  10603. ///</summary>
  10604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10606. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10607. if (((updatedRows == null)
  10608. || (updatedRows.Length < 1))) {
  10609. return updatedRows;
  10610. }
  10611. if (((allAddedRows == null)
  10612. || (allAddedRows.Count < 1))) {
  10613. return updatedRows;
  10614. }
  10615. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10616. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  10617. global::System.Data.DataRow row = updatedRows[i];
  10618. if ((allAddedRows.Contains(row) == false)) {
  10619. realUpdatedRows.Add(row);
  10620. }
  10621. }
  10622. return realUpdatedRows.ToArray();
  10623. }
  10624. /// <summary>
  10625. ///Update all changes to the dataset.
  10626. ///</summary>
  10627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10629. public virtual int UpdateAll(AlfafloorGDVDataSet dataSet) {
  10630. if ((dataSet == null)) {
  10631. throw new global::System.ArgumentNullException("dataSet");
  10632. }
  10633. if ((dataSet.HasChanges() == false)) {
  10634. return 0;
  10635. }
  10636. if (((this._cityTableAdapter != null)
  10637. && (this.MatchTableAdapterConnection(this._cityTableAdapter.Connection) == false))) {
  10638. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10639. "tring.");
  10640. }
  10641. if (((this._managerTableAdapter != null)
  10642. && (this.MatchTableAdapterConnection(this._managerTableAdapter.Connection) == false))) {
  10643. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10644. "tring.");
  10645. }
  10646. if (((this._partnerTableAdapter != null)
  10647. && (this.MatchTableAdapterConnection(this._partnerTableAdapter.Connection) == false))) {
  10648. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10649. "tring.");
  10650. }
  10651. if (((this._partnerProductsTableAdapter != null)
  10652. && (this.MatchTableAdapterConnection(this._partnerProductsTableAdapter.Connection) == false))) {
  10653. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10654. "tring.");
  10655. }
  10656. if (((this._postCodeTableAdapter != null)
  10657. && (this.MatchTableAdapterConnection(this._postCodeTableAdapter.Connection) == false))) {
  10658. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10659. "tring.");
  10660. }
  10661. if (((this._productTableAdapter != null)
  10662. && (this.MatchTableAdapterConnection(this._productTableAdapter.Connection) == false))) {
  10663. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10664. "tring.");
  10665. }
  10666. if (((this._productTypeTableAdapter != null)
  10667. && (this.MatchTableAdapterConnection(this._productTypeTableAdapter.Connection) == false))) {
  10668. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10669. "tring.");
  10670. }
  10671. if (((this._regionTableAdapter != null)
  10672. && (this.MatchTableAdapterConnection(this._regionTableAdapter.Connection) == false))) {
  10673. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10674. "tring.");
  10675. }
  10676. if (((this._streetTableAdapter != null)
  10677. && (this.MatchTableAdapterConnection(this._streetTableAdapter.Connection) == false))) {
  10678. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10679. "tring.");
  10680. }
  10681. if (((this._typeMaterialTableAdapter != null)
  10682. && (this.MatchTableAdapterConnection(this._typeMaterialTableAdapter.Connection) == false))) {
  10683. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10684. "tring.");
  10685. }
  10686. if (((this._typePartnerTableAdapter != null)
  10687. && (this.MatchTableAdapterConnection(this._typePartnerTableAdapter.Connection) == false))) {
  10688. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  10689. "tring.");
  10690. }
  10691. global::System.Data.IDbConnection workConnection = this.Connection;
  10692. if ((workConnection == null)) {
  10693. throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
  10694. "ger TableAdapter property to a valid TableAdapter instance.");
  10695. }
  10696. bool workConnOpened = false;
  10697. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  10698. == global::System.Data.ConnectionState.Broken)) {
  10699. workConnection.Close();
  10700. }
  10701. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  10702. workConnection.Open();
  10703. workConnOpened = true;
  10704. }
  10705. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  10706. if ((workTransaction == null)) {
  10707. throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
  10708. "ctions or the current state is not allowing the transaction to begin.");
  10709. }
  10710. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10711. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  10712. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  10713. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  10714. int result = 0;
  10715. global::System.Data.DataSet backupDataSet = null;
  10716. if (this.BackupDataSetBeforeUpdate) {
  10717. backupDataSet = new global::System.Data.DataSet();
  10718. backupDataSet.Merge(dataSet);
  10719. }
  10720. try {
  10721. // ---- Prepare for update -----------
  10722. //
  10723. if ((this._cityTableAdapter != null)) {
  10724. revertConnections.Add(this._cityTableAdapter, this._cityTableAdapter.Connection);
  10725. this._cityTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10726. this._cityTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10727. if (this._cityTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10728. this._cityTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10729. adaptersWithAcceptChangesDuringUpdate.Add(this._cityTableAdapter.Adapter);
  10730. }
  10731. }
  10732. if ((this._managerTableAdapter != null)) {
  10733. revertConnections.Add(this._managerTableAdapter, this._managerTableAdapter.Connection);
  10734. this._managerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10735. this._managerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10736. if (this._managerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10737. this._managerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10738. adaptersWithAcceptChangesDuringUpdate.Add(this._managerTableAdapter.Adapter);
  10739. }
  10740. }
  10741. if ((this._partnerTableAdapter != null)) {
  10742. revertConnections.Add(this._partnerTableAdapter, this._partnerTableAdapter.Connection);
  10743. this._partnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10744. this._partnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10745. if (this._partnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10746. this._partnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10747. adaptersWithAcceptChangesDuringUpdate.Add(this._partnerTableAdapter.Adapter);
  10748. }
  10749. }
  10750. if ((this._partnerProductsTableAdapter != null)) {
  10751. revertConnections.Add(this._partnerProductsTableAdapter, this._partnerProductsTableAdapter.Connection);
  10752. this._partnerProductsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10753. this._partnerProductsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10754. if (this._partnerProductsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10755. this._partnerProductsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10756. adaptersWithAcceptChangesDuringUpdate.Add(this._partnerProductsTableAdapter.Adapter);
  10757. }
  10758. }
  10759. if ((this._postCodeTableAdapter != null)) {
  10760. revertConnections.Add(this._postCodeTableAdapter, this._postCodeTableAdapter.Connection);
  10761. this._postCodeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10762. this._postCodeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10763. if (this._postCodeTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10764. this._postCodeTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10765. adaptersWithAcceptChangesDuringUpdate.Add(this._postCodeTableAdapter.Adapter);
  10766. }
  10767. }
  10768. if ((this._productTableAdapter != null)) {
  10769. revertConnections.Add(this._productTableAdapter, this._productTableAdapter.Connection);
  10770. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10771. this._productTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10772. if (this._productTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10773. this._productTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10774. adaptersWithAcceptChangesDuringUpdate.Add(this._productTableAdapter.Adapter);
  10775. }
  10776. }
  10777. if ((this._productTypeTableAdapter != null)) {
  10778. revertConnections.Add(this._productTypeTableAdapter, this._productTypeTableAdapter.Connection);
  10779. this._productTypeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10780. this._productTypeTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10781. if (this._productTypeTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10782. this._productTypeTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10783. adaptersWithAcceptChangesDuringUpdate.Add(this._productTypeTableAdapter.Adapter);
  10784. }
  10785. }
  10786. if ((this._regionTableAdapter != null)) {
  10787. revertConnections.Add(this._regionTableAdapter, this._regionTableAdapter.Connection);
  10788. this._regionTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10789. this._regionTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10790. if (this._regionTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10791. this._regionTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10792. adaptersWithAcceptChangesDuringUpdate.Add(this._regionTableAdapter.Adapter);
  10793. }
  10794. }
  10795. if ((this._streetTableAdapter != null)) {
  10796. revertConnections.Add(this._streetTableAdapter, this._streetTableAdapter.Connection);
  10797. this._streetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10798. this._streetTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10799. if (this._streetTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10800. this._streetTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10801. adaptersWithAcceptChangesDuringUpdate.Add(this._streetTableAdapter.Adapter);
  10802. }
  10803. }
  10804. if ((this._typeMaterialTableAdapter != null)) {
  10805. revertConnections.Add(this._typeMaterialTableAdapter, this._typeMaterialTableAdapter.Connection);
  10806. this._typeMaterialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10807. this._typeMaterialTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10808. if (this._typeMaterialTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10809. this._typeMaterialTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10810. adaptersWithAcceptChangesDuringUpdate.Add(this._typeMaterialTableAdapter.Adapter);
  10811. }
  10812. }
  10813. if ((this._typePartnerTableAdapter != null)) {
  10814. revertConnections.Add(this._typePartnerTableAdapter, this._typePartnerTableAdapter.Connection);
  10815. this._typePartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  10816. this._typePartnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  10817. if (this._typePartnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  10818. this._typePartnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  10819. adaptersWithAcceptChangesDuringUpdate.Add(this._typePartnerTableAdapter.Adapter);
  10820. }
  10821. }
  10822. //
  10823. //---- Perform updates -----------
  10824. //
  10825. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  10826. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  10827. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  10828. }
  10829. else {
  10830. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  10831. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  10832. }
  10833. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  10834. //
  10835. //---- Commit updates -----------
  10836. //
  10837. workTransaction.Commit();
  10838. if ((0 < allAddedRows.Count)) {
  10839. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  10840. allAddedRows.CopyTo(rows);
  10841. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10842. global::System.Data.DataRow row = rows[i];
  10843. row.AcceptChanges();
  10844. }
  10845. }
  10846. if ((0 < allChangedRows.Count)) {
  10847. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  10848. allChangedRows.CopyTo(rows);
  10849. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10850. global::System.Data.DataRow row = rows[i];
  10851. row.AcceptChanges();
  10852. }
  10853. }
  10854. }
  10855. catch (global::System.Exception ex) {
  10856. workTransaction.Rollback();
  10857. // ---- Restore the dataset -----------
  10858. if (this.BackupDataSetBeforeUpdate) {
  10859. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  10860. dataSet.Clear();
  10861. dataSet.Merge(backupDataSet);
  10862. }
  10863. else {
  10864. if ((0 < allAddedRows.Count)) {
  10865. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  10866. allAddedRows.CopyTo(rows);
  10867. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  10868. global::System.Data.DataRow row = rows[i];
  10869. row.AcceptChanges();
  10870. row.SetAdded();
  10871. }
  10872. }
  10873. }
  10874. throw ex;
  10875. }
  10876. finally {
  10877. if (workConnOpened) {
  10878. workConnection.Close();
  10879. }
  10880. if ((this._cityTableAdapter != null)) {
  10881. this._cityTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._cityTableAdapter]));
  10882. this._cityTableAdapter.Transaction = null;
  10883. }
  10884. if ((this._managerTableAdapter != null)) {
  10885. this._managerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._managerTableAdapter]));
  10886. this._managerTableAdapter.Transaction = null;
  10887. }
  10888. if ((this._partnerTableAdapter != null)) {
  10889. this._partnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._partnerTableAdapter]));
  10890. this._partnerTableAdapter.Transaction = null;
  10891. }
  10892. if ((this._partnerProductsTableAdapter != null)) {
  10893. this._partnerProductsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._partnerProductsTableAdapter]));
  10894. this._partnerProductsTableAdapter.Transaction = null;
  10895. }
  10896. if ((this._postCodeTableAdapter != null)) {
  10897. this._postCodeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._postCodeTableAdapter]));
  10898. this._postCodeTableAdapter.Transaction = null;
  10899. }
  10900. if ((this._productTableAdapter != null)) {
  10901. this._productTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTableAdapter]));
  10902. this._productTableAdapter.Transaction = null;
  10903. }
  10904. if ((this._productTypeTableAdapter != null)) {
  10905. this._productTypeTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productTypeTableAdapter]));
  10906. this._productTypeTableAdapter.Transaction = null;
  10907. }
  10908. if ((this._regionTableAdapter != null)) {
  10909. this._regionTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._regionTableAdapter]));
  10910. this._regionTableAdapter.Transaction = null;
  10911. }
  10912. if ((this._streetTableAdapter != null)) {
  10913. this._streetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._streetTableAdapter]));
  10914. this._streetTableAdapter.Transaction = null;
  10915. }
  10916. if ((this._typeMaterialTableAdapter != null)) {
  10917. this._typeMaterialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typeMaterialTableAdapter]));
  10918. this._typeMaterialTableAdapter.Transaction = null;
  10919. }
  10920. if ((this._typePartnerTableAdapter != null)) {
  10921. this._typePartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typePartnerTableAdapter]));
  10922. this._typePartnerTableAdapter.Transaction = null;
  10923. }
  10924. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  10925. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  10926. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  10927. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  10928. global::System.Data.Common.DataAdapter adapter = adapters[i];
  10929. adapter.AcceptChangesDuringUpdate = true;
  10930. }
  10931. }
  10932. }
  10933. return result;
  10934. }
  10935. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10936. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10937. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  10938. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  10939. }
  10940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10942. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  10943. if ((this._connection != null)) {
  10944. return true;
  10945. }
  10946. if (((this.Connection == null)
  10947. || (inputConnection == null))) {
  10948. return true;
  10949. }
  10950. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  10951. return true;
  10952. }
  10953. return false;
  10954. }
  10955. /// <summary>
  10956. ///Update Order Option
  10957. ///</summary>
  10958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10959. public enum UpdateOrderOption {
  10960. InsertUpdateDelete = 0,
  10961. UpdateInsertDelete = 1,
  10962. }
  10963. /// <summary>
  10964. ///Used to sort self-referenced table's rows
  10965. ///</summary>
  10966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10967. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  10968. private global::System.Data.DataRelation _relation;
  10969. private int _childFirst;
  10970. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10971. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10972. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  10973. this._relation = relation;
  10974. if (childFirst) {
  10975. this._childFirst = -1;
  10976. }
  10977. else {
  10978. this._childFirst = 1;
  10979. }
  10980. }
  10981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10983. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  10984. global::System.Diagnostics.Debug.Assert((row != null));
  10985. global::System.Data.DataRow root = row;
  10986. distance = 0;
  10987. 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>();
  10988. traversedRows[row] = row;
  10989. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  10990. for (
  10991. ; ((parent != null)
  10992. && (traversedRows.ContainsKey(parent) == false));
  10993. ) {
  10994. distance = (distance + 1);
  10995. root = parent;
  10996. traversedRows[parent] = parent;
  10997. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  10998. }
  10999. if ((distance == 0)) {
  11000. traversedRows.Clear();
  11001. traversedRows[row] = row;
  11002. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11003. for (
  11004. ; ((parent != null)
  11005. && (traversedRows.ContainsKey(parent) == false));
  11006. ) {
  11007. distance = (distance + 1);
  11008. root = parent;
  11009. traversedRows[parent] = parent;
  11010. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11011. }
  11012. }
  11013. return root;
  11014. }
  11015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11017. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  11018. if (object.ReferenceEquals(row1, row2)) {
  11019. return 0;
  11020. }
  11021. if ((row1 == null)) {
  11022. return -1;
  11023. }
  11024. if ((row2 == null)) {
  11025. return 1;
  11026. }
  11027. int distance1 = 0;
  11028. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  11029. int distance2 = 0;
  11030. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  11031. if (object.ReferenceEquals(root1, root2)) {
  11032. return (this._childFirst * distance1.CompareTo(distance2));
  11033. }
  11034. else {
  11035. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  11036. && (root2.Table != null)));
  11037. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  11038. return -1;
  11039. }
  11040. else {
  11041. return 1;
  11042. }
  11043. }
  11044. }
  11045. }
  11046. }
  11047. }
  11048. #pragma warning restore 1591