dbAlphapolAGDataSet.Designer.cs 767 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827
  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("dbAlphapolAGDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class dbAlphapolAGDataSet : global::System.Data.DataSet {
  22. private CityDataTable tableCity;
  23. private IndexPartnerDataTable tableIndexPartner;
  24. private ManagerDataTable tableManager;
  25. private PartnerDataTable tablePartner;
  26. private ProductPartnerDataTable tableProductPartner;
  27. private ProductsDataTable tableProducts;
  28. private RegionDataTable tableRegion;
  29. private StreetDataTable tableStreet;
  30. private TypeMaterialDataTable tableTypeMaterial;
  31. private TypePartnerDataTable tableTypePartner;
  32. private TypeProductDataTable tableTypeProduct;
  33. private TypeForFilterDataTable tableTypeForFilter;
  34. private HistorySaleDataTable tableHistorySale;
  35. private global::System.Data.DataRelation relationFK_Partner_City;
  36. private global::System.Data.DataRelation relationFK_Partner_IndexPartner;
  37. private global::System.Data.DataRelation relationFK_Partner_Region;
  38. private global::System.Data.DataRelation relationFK_Partner_Street;
  39. private global::System.Data.DataRelation relationFK_Partner_TypePartner;
  40. private global::System.Data.DataRelation relationFK_ProductPartner_Partner;
  41. private global::System.Data.DataRelation relationFK_ProductPartner_Products;
  42. private global::System.Data.DataRelation relationFK_Products_TypeProduct;
  43. private global::System.Data.DataRelation relationFK_ProductPartner_Partner1;
  44. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  45. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  46. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  47. public dbAlphapolAGDataSet() {
  48. this.BeginInit();
  49. this.InitClass();
  50. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  51. base.Tables.CollectionChanged += schemaChangedHandler;
  52. base.Relations.CollectionChanged += schemaChangedHandler;
  53. this.EndInit();
  54. }
  55. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  56. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  57. protected dbAlphapolAGDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  58. base(info, context, false) {
  59. if ((this.IsBinarySerialized(info, context) == true)) {
  60. this.InitVars(false);
  61. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  62. this.Tables.CollectionChanged += schemaChangedHandler1;
  63. this.Relations.CollectionChanged += schemaChangedHandler1;
  64. return;
  65. }
  66. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  67. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  68. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  69. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  70. if ((ds.Tables["City"] != null)) {
  71. base.Tables.Add(new CityDataTable(ds.Tables["City"]));
  72. }
  73. if ((ds.Tables["IndexPartner"] != null)) {
  74. base.Tables.Add(new IndexPartnerDataTable(ds.Tables["IndexPartner"]));
  75. }
  76. if ((ds.Tables["Manager"] != null)) {
  77. base.Tables.Add(new ManagerDataTable(ds.Tables["Manager"]));
  78. }
  79. if ((ds.Tables["Partner"] != null)) {
  80. base.Tables.Add(new PartnerDataTable(ds.Tables["Partner"]));
  81. }
  82. if ((ds.Tables["ProductPartner"] != null)) {
  83. base.Tables.Add(new ProductPartnerDataTable(ds.Tables["ProductPartner"]));
  84. }
  85. if ((ds.Tables["Products"] != null)) {
  86. base.Tables.Add(new ProductsDataTable(ds.Tables["Products"]));
  87. }
  88. if ((ds.Tables["Region"] != null)) {
  89. base.Tables.Add(new RegionDataTable(ds.Tables["Region"]));
  90. }
  91. if ((ds.Tables["Street"] != null)) {
  92. base.Tables.Add(new StreetDataTable(ds.Tables["Street"]));
  93. }
  94. if ((ds.Tables["TypeMaterial"] != null)) {
  95. base.Tables.Add(new TypeMaterialDataTable(ds.Tables["TypeMaterial"]));
  96. }
  97. if ((ds.Tables["TypePartner"] != null)) {
  98. base.Tables.Add(new TypePartnerDataTable(ds.Tables["TypePartner"]));
  99. }
  100. if ((ds.Tables["TypeProduct"] != null)) {
  101. base.Tables.Add(new TypeProductDataTable(ds.Tables["TypeProduct"]));
  102. }
  103. if ((ds.Tables["TypeForFilter"] != null)) {
  104. base.Tables.Add(new TypeForFilterDataTable(ds.Tables["TypeForFilter"]));
  105. }
  106. if ((ds.Tables["HistorySale"] != null)) {
  107. base.Tables.Add(new HistorySaleDataTable(ds.Tables["HistorySale"]));
  108. }
  109. this.DataSetName = ds.DataSetName;
  110. this.Prefix = ds.Prefix;
  111. this.Namespace = ds.Namespace;
  112. this.Locale = ds.Locale;
  113. this.CaseSensitive = ds.CaseSensitive;
  114. this.EnforceConstraints = ds.EnforceConstraints;
  115. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  116. this.InitVars();
  117. }
  118. else {
  119. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  120. }
  121. this.GetSerializationData(info, context);
  122. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  123. base.Tables.CollectionChanged += schemaChangedHandler;
  124. this.Relations.CollectionChanged += schemaChangedHandler;
  125. }
  126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  128. [global::System.ComponentModel.Browsable(false)]
  129. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  130. public CityDataTable City {
  131. get {
  132. return this.tableCity;
  133. }
  134. }
  135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  137. [global::System.ComponentModel.Browsable(false)]
  138. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  139. public IndexPartnerDataTable IndexPartner {
  140. get {
  141. return this.tableIndexPartner;
  142. }
  143. }
  144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  146. [global::System.ComponentModel.Browsable(false)]
  147. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  148. public ManagerDataTable Manager {
  149. get {
  150. return this.tableManager;
  151. }
  152. }
  153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  155. [global::System.ComponentModel.Browsable(false)]
  156. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  157. public PartnerDataTable Partner {
  158. get {
  159. return this.tablePartner;
  160. }
  161. }
  162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  164. [global::System.ComponentModel.Browsable(false)]
  165. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  166. public ProductPartnerDataTable ProductPartner {
  167. get {
  168. return this.tableProductPartner;
  169. }
  170. }
  171. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  172. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  173. [global::System.ComponentModel.Browsable(false)]
  174. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  175. public ProductsDataTable Products {
  176. get {
  177. return this.tableProducts;
  178. }
  179. }
  180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  182. [global::System.ComponentModel.Browsable(false)]
  183. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  184. public RegionDataTable Region {
  185. get {
  186. return this.tableRegion;
  187. }
  188. }
  189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  191. [global::System.ComponentModel.Browsable(false)]
  192. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  193. public StreetDataTable Street {
  194. get {
  195. return this.tableStreet;
  196. }
  197. }
  198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  200. [global::System.ComponentModel.Browsable(false)]
  201. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  202. public TypeMaterialDataTable TypeMaterial {
  203. get {
  204. return this.tableTypeMaterial;
  205. }
  206. }
  207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  209. [global::System.ComponentModel.Browsable(false)]
  210. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  211. public TypePartnerDataTable TypePartner {
  212. get {
  213. return this.tableTypePartner;
  214. }
  215. }
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  218. [global::System.ComponentModel.Browsable(false)]
  219. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  220. public TypeProductDataTable TypeProduct {
  221. get {
  222. return this.tableTypeProduct;
  223. }
  224. }
  225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  227. [global::System.ComponentModel.Browsable(false)]
  228. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  229. public TypeForFilterDataTable TypeForFilter {
  230. get {
  231. return this.tableTypeForFilter;
  232. }
  233. }
  234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  236. [global::System.ComponentModel.Browsable(false)]
  237. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  238. public HistorySaleDataTable HistorySale {
  239. get {
  240. return this.tableHistorySale;
  241. }
  242. }
  243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  245. [global::System.ComponentModel.BrowsableAttribute(true)]
  246. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  247. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  248. get {
  249. return this._schemaSerializationMode;
  250. }
  251. set {
  252. this._schemaSerializationMode = value;
  253. }
  254. }
  255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  257. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  258. public new global::System.Data.DataTableCollection Tables {
  259. get {
  260. return base.Tables;
  261. }
  262. }
  263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  264. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  265. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  266. public new global::System.Data.DataRelationCollection Relations {
  267. get {
  268. return base.Relations;
  269. }
  270. }
  271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  273. protected override void InitializeDerivedDataSet() {
  274. this.BeginInit();
  275. this.InitClass();
  276. this.EndInit();
  277. }
  278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  280. public override global::System.Data.DataSet Clone() {
  281. dbAlphapolAGDataSet cln = ((dbAlphapolAGDataSet)(base.Clone()));
  282. cln.InitVars();
  283. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  284. return cln;
  285. }
  286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  287. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  288. protected override bool ShouldSerializeTables() {
  289. return false;
  290. }
  291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  293. protected override bool ShouldSerializeRelations() {
  294. return false;
  295. }
  296. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  298. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  299. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  300. this.Reset();
  301. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  302. ds.ReadXml(reader);
  303. if ((ds.Tables["City"] != null)) {
  304. base.Tables.Add(new CityDataTable(ds.Tables["City"]));
  305. }
  306. if ((ds.Tables["IndexPartner"] != null)) {
  307. base.Tables.Add(new IndexPartnerDataTable(ds.Tables["IndexPartner"]));
  308. }
  309. if ((ds.Tables["Manager"] != null)) {
  310. base.Tables.Add(new ManagerDataTable(ds.Tables["Manager"]));
  311. }
  312. if ((ds.Tables["Partner"] != null)) {
  313. base.Tables.Add(new PartnerDataTable(ds.Tables["Partner"]));
  314. }
  315. if ((ds.Tables["ProductPartner"] != null)) {
  316. base.Tables.Add(new ProductPartnerDataTable(ds.Tables["ProductPartner"]));
  317. }
  318. if ((ds.Tables["Products"] != null)) {
  319. base.Tables.Add(new ProductsDataTable(ds.Tables["Products"]));
  320. }
  321. if ((ds.Tables["Region"] != null)) {
  322. base.Tables.Add(new RegionDataTable(ds.Tables["Region"]));
  323. }
  324. if ((ds.Tables["Street"] != null)) {
  325. base.Tables.Add(new StreetDataTable(ds.Tables["Street"]));
  326. }
  327. if ((ds.Tables["TypeMaterial"] != null)) {
  328. base.Tables.Add(new TypeMaterialDataTable(ds.Tables["TypeMaterial"]));
  329. }
  330. if ((ds.Tables["TypePartner"] != null)) {
  331. base.Tables.Add(new TypePartnerDataTable(ds.Tables["TypePartner"]));
  332. }
  333. if ((ds.Tables["TypeProduct"] != null)) {
  334. base.Tables.Add(new TypeProductDataTable(ds.Tables["TypeProduct"]));
  335. }
  336. if ((ds.Tables["TypeForFilter"] != null)) {
  337. base.Tables.Add(new TypeForFilterDataTable(ds.Tables["TypeForFilter"]));
  338. }
  339. if ((ds.Tables["HistorySale"] != null)) {
  340. base.Tables.Add(new HistorySaleDataTable(ds.Tables["HistorySale"]));
  341. }
  342. this.DataSetName = ds.DataSetName;
  343. this.Prefix = ds.Prefix;
  344. this.Namespace = ds.Namespace;
  345. this.Locale = ds.Locale;
  346. this.CaseSensitive = ds.CaseSensitive;
  347. this.EnforceConstraints = ds.EnforceConstraints;
  348. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  349. this.InitVars();
  350. }
  351. else {
  352. this.ReadXml(reader);
  353. this.InitVars();
  354. }
  355. }
  356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  358. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  359. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  360. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  361. stream.Position = 0;
  362. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  363. }
  364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  366. internal void InitVars() {
  367. this.InitVars(true);
  368. }
  369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  371. internal void InitVars(bool initTable) {
  372. this.tableCity = ((CityDataTable)(base.Tables["City"]));
  373. if ((initTable == true)) {
  374. if ((this.tableCity != null)) {
  375. this.tableCity.InitVars();
  376. }
  377. }
  378. this.tableIndexPartner = ((IndexPartnerDataTable)(base.Tables["IndexPartner"]));
  379. if ((initTable == true)) {
  380. if ((this.tableIndexPartner != null)) {
  381. this.tableIndexPartner.InitVars();
  382. }
  383. }
  384. this.tableManager = ((ManagerDataTable)(base.Tables["Manager"]));
  385. if ((initTable == true)) {
  386. if ((this.tableManager != null)) {
  387. this.tableManager.InitVars();
  388. }
  389. }
  390. this.tablePartner = ((PartnerDataTable)(base.Tables["Partner"]));
  391. if ((initTable == true)) {
  392. if ((this.tablePartner != null)) {
  393. this.tablePartner.InitVars();
  394. }
  395. }
  396. this.tableProductPartner = ((ProductPartnerDataTable)(base.Tables["ProductPartner"]));
  397. if ((initTable == true)) {
  398. if ((this.tableProductPartner != null)) {
  399. this.tableProductPartner.InitVars();
  400. }
  401. }
  402. this.tableProducts = ((ProductsDataTable)(base.Tables["Products"]));
  403. if ((initTable == true)) {
  404. if ((this.tableProducts != null)) {
  405. this.tableProducts.InitVars();
  406. }
  407. }
  408. this.tableRegion = ((RegionDataTable)(base.Tables["Region"]));
  409. if ((initTable == true)) {
  410. if ((this.tableRegion != null)) {
  411. this.tableRegion.InitVars();
  412. }
  413. }
  414. this.tableStreet = ((StreetDataTable)(base.Tables["Street"]));
  415. if ((initTable == true)) {
  416. if ((this.tableStreet != null)) {
  417. this.tableStreet.InitVars();
  418. }
  419. }
  420. this.tableTypeMaterial = ((TypeMaterialDataTable)(base.Tables["TypeMaterial"]));
  421. if ((initTable == true)) {
  422. if ((this.tableTypeMaterial != null)) {
  423. this.tableTypeMaterial.InitVars();
  424. }
  425. }
  426. this.tableTypePartner = ((TypePartnerDataTable)(base.Tables["TypePartner"]));
  427. if ((initTable == true)) {
  428. if ((this.tableTypePartner != null)) {
  429. this.tableTypePartner.InitVars();
  430. }
  431. }
  432. this.tableTypeProduct = ((TypeProductDataTable)(base.Tables["TypeProduct"]));
  433. if ((initTable == true)) {
  434. if ((this.tableTypeProduct != null)) {
  435. this.tableTypeProduct.InitVars();
  436. }
  437. }
  438. this.tableTypeForFilter = ((TypeForFilterDataTable)(base.Tables["TypeForFilter"]));
  439. if ((initTable == true)) {
  440. if ((this.tableTypeForFilter != null)) {
  441. this.tableTypeForFilter.InitVars();
  442. }
  443. }
  444. this.tableHistorySale = ((HistorySaleDataTable)(base.Tables["HistorySale"]));
  445. if ((initTable == true)) {
  446. if ((this.tableHistorySale != null)) {
  447. this.tableHistorySale.InitVars();
  448. }
  449. }
  450. this.relationFK_Partner_City = this.Relations["FK_Partner_City"];
  451. this.relationFK_Partner_IndexPartner = this.Relations["FK_Partner_IndexPartner"];
  452. this.relationFK_Partner_Region = this.Relations["FK_Partner_Region"];
  453. this.relationFK_Partner_Street = this.Relations["FK_Partner_Street"];
  454. this.relationFK_Partner_TypePartner = this.Relations["FK_Partner_TypePartner"];
  455. this.relationFK_ProductPartner_Partner = this.Relations["FK_ProductPartner_Partner"];
  456. this.relationFK_ProductPartner_Products = this.Relations["FK_ProductPartner_Products"];
  457. this.relationFK_Products_TypeProduct = this.Relations["FK_Products_TypeProduct"];
  458. this.relationFK_ProductPartner_Partner1 = this.Relations["FK_ProductPartner_Partner1"];
  459. }
  460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  462. private void InitClass() {
  463. this.DataSetName = "dbAlphapolAGDataSet";
  464. this.Prefix = "";
  465. this.Namespace = "http://tempuri.org/dbAlphapolAGDataSet.xsd";
  466. this.EnforceConstraints = true;
  467. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  468. this.tableCity = new CityDataTable();
  469. base.Tables.Add(this.tableCity);
  470. this.tableIndexPartner = new IndexPartnerDataTable();
  471. base.Tables.Add(this.tableIndexPartner);
  472. this.tableManager = new ManagerDataTable();
  473. base.Tables.Add(this.tableManager);
  474. this.tablePartner = new PartnerDataTable();
  475. base.Tables.Add(this.tablePartner);
  476. this.tableProductPartner = new ProductPartnerDataTable();
  477. base.Tables.Add(this.tableProductPartner);
  478. this.tableProducts = new ProductsDataTable();
  479. base.Tables.Add(this.tableProducts);
  480. this.tableRegion = new RegionDataTable();
  481. base.Tables.Add(this.tableRegion);
  482. this.tableStreet = new StreetDataTable();
  483. base.Tables.Add(this.tableStreet);
  484. this.tableTypeMaterial = new TypeMaterialDataTable();
  485. base.Tables.Add(this.tableTypeMaterial);
  486. this.tableTypePartner = new TypePartnerDataTable();
  487. base.Tables.Add(this.tableTypePartner);
  488. this.tableTypeProduct = new TypeProductDataTable();
  489. base.Tables.Add(this.tableTypeProduct);
  490. this.tableTypeForFilter = new TypeForFilterDataTable();
  491. base.Tables.Add(this.tableTypeForFilter);
  492. this.tableHistorySale = new HistorySaleDataTable();
  493. base.Tables.Add(this.tableHistorySale);
  494. this.relationFK_Partner_City = new global::System.Data.DataRelation("FK_Partner_City", new global::System.Data.DataColumn[] {
  495. this.tableCity.idCityColumn}, new global::System.Data.DataColumn[] {
  496. this.tablePartner.idCityColumn}, false);
  497. this.Relations.Add(this.relationFK_Partner_City);
  498. this.relationFK_Partner_IndexPartner = new global::System.Data.DataRelation("FK_Partner_IndexPartner", new global::System.Data.DataColumn[] {
  499. this.tableIndexPartner.idIndexColumn}, new global::System.Data.DataColumn[] {
  500. this.tablePartner.idIndexColumn}, false);
  501. this.Relations.Add(this.relationFK_Partner_IndexPartner);
  502. this.relationFK_Partner_Region = new global::System.Data.DataRelation("FK_Partner_Region", new global::System.Data.DataColumn[] {
  503. this.tableRegion.idRegionColumn}, new global::System.Data.DataColumn[] {
  504. this.tablePartner.idRegionColumn}, false);
  505. this.Relations.Add(this.relationFK_Partner_Region);
  506. this.relationFK_Partner_Street = new global::System.Data.DataRelation("FK_Partner_Street", new global::System.Data.DataColumn[] {
  507. this.tableStreet.idStreetColumn}, new global::System.Data.DataColumn[] {
  508. this.tablePartner.idStreetColumn}, false);
  509. this.Relations.Add(this.relationFK_Partner_Street);
  510. this.relationFK_Partner_TypePartner = new global::System.Data.DataRelation("FK_Partner_TypePartner", new global::System.Data.DataColumn[] {
  511. this.tableTypePartner.idTypePartnerColumn}, new global::System.Data.DataColumn[] {
  512. this.tablePartner.idTypePartnerColumn}, false);
  513. this.Relations.Add(this.relationFK_Partner_TypePartner);
  514. this.relationFK_ProductPartner_Partner = new global::System.Data.DataRelation("FK_ProductPartner_Partner", new global::System.Data.DataColumn[] {
  515. this.tablePartner.idPartnerColumn}, new global::System.Data.DataColumn[] {
  516. this.tableProductPartner.idPartnerColumn}, false);
  517. this.Relations.Add(this.relationFK_ProductPartner_Partner);
  518. this.relationFK_ProductPartner_Products = new global::System.Data.DataRelation("FK_ProductPartner_Products", new global::System.Data.DataColumn[] {
  519. this.tableProducts.idProductColumn}, new global::System.Data.DataColumn[] {
  520. this.tableProductPartner.idProductColumn}, false);
  521. this.Relations.Add(this.relationFK_ProductPartner_Products);
  522. this.relationFK_Products_TypeProduct = new global::System.Data.DataRelation("FK_Products_TypeProduct", new global::System.Data.DataColumn[] {
  523. this.tableTypeProduct.idTypeProductColumn}, new global::System.Data.DataColumn[] {
  524. this.tableProducts.idTypeProductColumn}, false);
  525. this.Relations.Add(this.relationFK_Products_TypeProduct);
  526. this.relationFK_ProductPartner_Partner1 = new global::System.Data.DataRelation("FK_ProductPartner_Partner1", new global::System.Data.DataColumn[] {
  527. this.tablePartner.idPartnerColumn}, new global::System.Data.DataColumn[] {
  528. this.tableHistorySale.idPartnerColumn}, false);
  529. this.Relations.Add(this.relationFK_ProductPartner_Partner1);
  530. }
  531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  533. private bool ShouldSerializeCity() {
  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 ShouldSerializeIndexPartner() {
  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 ShouldSerializeManager() {
  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 ShouldSerializePartner() {
  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 ShouldSerializeProductPartner() {
  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 ShouldSerializeProducts() {
  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 bool ShouldSerializeRegion() {
  564. return false;
  565. }
  566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  568. private bool ShouldSerializeStreet() {
  569. return false;
  570. }
  571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  573. private bool ShouldSerializeTypeMaterial() {
  574. return false;
  575. }
  576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  578. private bool ShouldSerializeTypePartner() {
  579. return false;
  580. }
  581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  583. private bool ShouldSerializeTypeProduct() {
  584. return false;
  585. }
  586. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  587. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  588. private bool ShouldSerializeTypeForFilter() {
  589. return false;
  590. }
  591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  593. private bool ShouldSerializeHistorySale() {
  594. return false;
  595. }
  596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  598. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  599. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  600. this.InitVars();
  601. }
  602. }
  603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  605. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  606. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  607. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  608. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  609. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  610. any.Namespace = ds.Namespace;
  611. sequence.Items.Add(any);
  612. type.Particle = sequence;
  613. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  614. if (xs.Contains(dsSchema.TargetNamespace)) {
  615. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  616. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  617. try {
  618. global::System.Xml.Schema.XmlSchema schema = null;
  619. dsSchema.Write(s1);
  620. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  621. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  622. s2.SetLength(0);
  623. schema.Write(s2);
  624. if ((s1.Length == s2.Length)) {
  625. s1.Position = 0;
  626. s2.Position = 0;
  627. for (; ((s1.Position != s1.Length)
  628. && (s1.ReadByte() == s2.ReadByte())); ) {
  629. ;
  630. }
  631. if ((s1.Position == s1.Length)) {
  632. return type;
  633. }
  634. }
  635. }
  636. }
  637. finally {
  638. if ((s1 != null)) {
  639. s1.Close();
  640. }
  641. if ((s2 != null)) {
  642. s2.Close();
  643. }
  644. }
  645. }
  646. xs.Add(dsSchema);
  647. return type;
  648. }
  649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  650. public delegate void CityRowChangeEventHandler(object sender, CityRowChangeEvent e);
  651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  652. public delegate void IndexPartnerRowChangeEventHandler(object sender, IndexPartnerRowChangeEvent e);
  653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  654. public delegate void ManagerRowChangeEventHandler(object sender, ManagerRowChangeEvent e);
  655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  656. public delegate void PartnerRowChangeEventHandler(object sender, PartnerRowChangeEvent e);
  657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  658. public delegate void ProductPartnerRowChangeEventHandler(object sender, ProductPartnerRowChangeEvent e);
  659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  660. public delegate void ProductsRowChangeEventHandler(object sender, ProductsRowChangeEvent e);
  661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  662. public delegate void RegionRowChangeEventHandler(object sender, RegionRowChangeEvent e);
  663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  664. public delegate void StreetRowChangeEventHandler(object sender, StreetRowChangeEvent e);
  665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  666. public delegate void TypeMaterialRowChangeEventHandler(object sender, TypeMaterialRowChangeEvent e);
  667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  668. public delegate void TypePartnerRowChangeEventHandler(object sender, TypePartnerRowChangeEvent e);
  669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  670. public delegate void TypeProductRowChangeEventHandler(object sender, TypeProductRowChangeEvent e);
  671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  672. public delegate void TypeForFilterRowChangeEventHandler(object sender, TypeForFilterRowChangeEvent e);
  673. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  674. public delegate void HistorySaleRowChangeEventHandler(object sender, HistorySaleRowChangeEvent e);
  675. /// <summary>
  676. ///Represents the strongly named DataTable class.
  677. ///</summary>
  678. [global::System.Serializable()]
  679. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  680. public partial class CityDataTable : global::System.Data.TypedTableBase<CityRow> {
  681. private global::System.Data.DataColumn columnidCity;
  682. private global::System.Data.DataColumn columnCity;
  683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  685. public CityDataTable() {
  686. this.TableName = "City";
  687. this.BeginInit();
  688. this.InitClass();
  689. this.EndInit();
  690. }
  691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  693. internal CityDataTable(global::System.Data.DataTable table) {
  694. this.TableName = table.TableName;
  695. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  696. this.CaseSensitive = table.CaseSensitive;
  697. }
  698. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  699. this.Locale = table.Locale;
  700. }
  701. if ((table.Namespace != table.DataSet.Namespace)) {
  702. this.Namespace = table.Namespace;
  703. }
  704. this.Prefix = table.Prefix;
  705. this.MinimumCapacity = table.MinimumCapacity;
  706. }
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  709. protected CityDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  710. base(info, context) {
  711. this.InitVars();
  712. }
  713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  715. public global::System.Data.DataColumn idCityColumn {
  716. get {
  717. return this.columnidCity;
  718. }
  719. }
  720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  722. public global::System.Data.DataColumn CityColumn {
  723. get {
  724. return this.columnCity;
  725. }
  726. }
  727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  729. [global::System.ComponentModel.Browsable(false)]
  730. public int Count {
  731. get {
  732. return this.Rows.Count;
  733. }
  734. }
  735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  737. public CityRow this[int index] {
  738. get {
  739. return ((CityRow)(this.Rows[index]));
  740. }
  741. }
  742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  743. public event CityRowChangeEventHandler CityRowChanging;
  744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  745. public event CityRowChangeEventHandler CityRowChanged;
  746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  747. public event CityRowChangeEventHandler CityRowDeleting;
  748. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  749. public event CityRowChangeEventHandler CityRowDeleted;
  750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  752. public void AddCityRow(CityRow row) {
  753. this.Rows.Add(row);
  754. }
  755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  757. public CityRow AddCityRow(string City) {
  758. CityRow rowCityRow = ((CityRow)(this.NewRow()));
  759. object[] columnValuesArray = new object[] {
  760. null,
  761. City};
  762. rowCityRow.ItemArray = columnValuesArray;
  763. this.Rows.Add(rowCityRow);
  764. return rowCityRow;
  765. }
  766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  768. public CityRow FindByidCity(int idCity) {
  769. return ((CityRow)(this.Rows.Find(new object[] {
  770. idCity})));
  771. }
  772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  774. public override global::System.Data.DataTable Clone() {
  775. CityDataTable cln = ((CityDataTable)(base.Clone()));
  776. cln.InitVars();
  777. return cln;
  778. }
  779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  781. protected override global::System.Data.DataTable CreateInstance() {
  782. return new CityDataTable();
  783. }
  784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  786. internal void InitVars() {
  787. this.columnidCity = base.Columns["idCity"];
  788. this.columnCity = base.Columns["City"];
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  792. private void InitClass() {
  793. this.columnidCity = new global::System.Data.DataColumn("idCity", typeof(int), null, global::System.Data.MappingType.Element);
  794. base.Columns.Add(this.columnidCity);
  795. this.columnCity = new global::System.Data.DataColumn("City", typeof(string), null, global::System.Data.MappingType.Element);
  796. base.Columns.Add(this.columnCity);
  797. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  798. this.columnidCity}, true));
  799. this.columnidCity.AutoIncrement = true;
  800. this.columnidCity.AutoIncrementSeed = 1;
  801. this.columnidCity.AllowDBNull = false;
  802. this.columnidCity.ReadOnly = true;
  803. this.columnidCity.Unique = true;
  804. this.columnCity.MaxLength = 50;
  805. }
  806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  808. public CityRow NewCityRow() {
  809. return ((CityRow)(this.NewRow()));
  810. }
  811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  813. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  814. return new CityRow(builder);
  815. }
  816. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  817. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  818. protected override global::System.Type GetRowType() {
  819. return typeof(CityRow);
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  823. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  824. base.OnRowChanged(e);
  825. if ((this.CityRowChanged != null)) {
  826. this.CityRowChanged(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  827. }
  828. }
  829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  831. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  832. base.OnRowChanging(e);
  833. if ((this.CityRowChanging != null)) {
  834. this.CityRowChanging(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  835. }
  836. }
  837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  839. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  840. base.OnRowDeleted(e);
  841. if ((this.CityRowDeleted != null)) {
  842. this.CityRowDeleted(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  843. }
  844. }
  845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  847. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  848. base.OnRowDeleting(e);
  849. if ((this.CityRowDeleting != null)) {
  850. this.CityRowDeleting(this, new CityRowChangeEvent(((CityRow)(e.Row)), e.Action));
  851. }
  852. }
  853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  855. public void RemoveCityRow(CityRow row) {
  856. this.Rows.Remove(row);
  857. }
  858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  860. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  861. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  862. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  863. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  864. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  865. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  866. any1.MinOccurs = new decimal(0);
  867. any1.MaxOccurs = decimal.MaxValue;
  868. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  869. sequence.Items.Add(any1);
  870. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  871. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  872. any2.MinOccurs = new decimal(1);
  873. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  874. sequence.Items.Add(any2);
  875. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  876. attribute1.Name = "namespace";
  877. attribute1.FixedValue = ds.Namespace;
  878. type.Attributes.Add(attribute1);
  879. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  880. attribute2.Name = "tableTypeName";
  881. attribute2.FixedValue = "CityDataTable";
  882. type.Attributes.Add(attribute2);
  883. type.Particle = sequence;
  884. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  885. if (xs.Contains(dsSchema.TargetNamespace)) {
  886. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  887. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  888. try {
  889. global::System.Xml.Schema.XmlSchema schema = null;
  890. dsSchema.Write(s1);
  891. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  892. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  893. s2.SetLength(0);
  894. schema.Write(s2);
  895. if ((s1.Length == s2.Length)) {
  896. s1.Position = 0;
  897. s2.Position = 0;
  898. for (; ((s1.Position != s1.Length)
  899. && (s1.ReadByte() == s2.ReadByte())); ) {
  900. ;
  901. }
  902. if ((s1.Position == s1.Length)) {
  903. return type;
  904. }
  905. }
  906. }
  907. }
  908. finally {
  909. if ((s1 != null)) {
  910. s1.Close();
  911. }
  912. if ((s2 != null)) {
  913. s2.Close();
  914. }
  915. }
  916. }
  917. xs.Add(dsSchema);
  918. return type;
  919. }
  920. }
  921. /// <summary>
  922. ///Represents the strongly named DataTable class.
  923. ///</summary>
  924. [global::System.Serializable()]
  925. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  926. public partial class IndexPartnerDataTable : global::System.Data.TypedTableBase<IndexPartnerRow> {
  927. private global::System.Data.DataColumn columnidIndex;
  928. private global::System.Data.DataColumn columnCodePartner;
  929. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  930. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  931. public IndexPartnerDataTable() {
  932. this.TableName = "IndexPartner";
  933. this.BeginInit();
  934. this.InitClass();
  935. this.EndInit();
  936. }
  937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  939. internal IndexPartnerDataTable(global::System.Data.DataTable table) {
  940. this.TableName = table.TableName;
  941. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  942. this.CaseSensitive = table.CaseSensitive;
  943. }
  944. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  945. this.Locale = table.Locale;
  946. }
  947. if ((table.Namespace != table.DataSet.Namespace)) {
  948. this.Namespace = table.Namespace;
  949. }
  950. this.Prefix = table.Prefix;
  951. this.MinimumCapacity = table.MinimumCapacity;
  952. }
  953. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  954. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  955. protected IndexPartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  956. base(info, context) {
  957. this.InitVars();
  958. }
  959. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  960. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  961. public global::System.Data.DataColumn idIndexColumn {
  962. get {
  963. return this.columnidIndex;
  964. }
  965. }
  966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  968. public global::System.Data.DataColumn CodePartnerColumn {
  969. get {
  970. return this.columnCodePartner;
  971. }
  972. }
  973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  975. [global::System.ComponentModel.Browsable(false)]
  976. public int Count {
  977. get {
  978. return this.Rows.Count;
  979. }
  980. }
  981. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  983. public IndexPartnerRow this[int index] {
  984. get {
  985. return ((IndexPartnerRow)(this.Rows[index]));
  986. }
  987. }
  988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  989. public event IndexPartnerRowChangeEventHandler IndexPartnerRowChanging;
  990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  991. public event IndexPartnerRowChangeEventHandler IndexPartnerRowChanged;
  992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  993. public event IndexPartnerRowChangeEventHandler IndexPartnerRowDeleting;
  994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  995. public event IndexPartnerRowChangeEventHandler IndexPartnerRowDeleted;
  996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  998. public void AddIndexPartnerRow(IndexPartnerRow row) {
  999. this.Rows.Add(row);
  1000. }
  1001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1003. public IndexPartnerRow AddIndexPartnerRow(string CodePartner) {
  1004. IndexPartnerRow rowIndexPartnerRow = ((IndexPartnerRow)(this.NewRow()));
  1005. object[] columnValuesArray = new object[] {
  1006. null,
  1007. CodePartner};
  1008. rowIndexPartnerRow.ItemArray = columnValuesArray;
  1009. this.Rows.Add(rowIndexPartnerRow);
  1010. return rowIndexPartnerRow;
  1011. }
  1012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1014. public IndexPartnerRow FindByidIndex(int idIndex) {
  1015. return ((IndexPartnerRow)(this.Rows.Find(new object[] {
  1016. idIndex})));
  1017. }
  1018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1020. public override global::System.Data.DataTable Clone() {
  1021. IndexPartnerDataTable cln = ((IndexPartnerDataTable)(base.Clone()));
  1022. cln.InitVars();
  1023. return cln;
  1024. }
  1025. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1026. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1027. protected override global::System.Data.DataTable CreateInstance() {
  1028. return new IndexPartnerDataTable();
  1029. }
  1030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1032. internal void InitVars() {
  1033. this.columnidIndex = base.Columns["idIndex"];
  1034. this.columnCodePartner = base.Columns["CodePartner"];
  1035. }
  1036. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1037. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1038. private void InitClass() {
  1039. this.columnidIndex = new global::System.Data.DataColumn("idIndex", typeof(int), null, global::System.Data.MappingType.Element);
  1040. base.Columns.Add(this.columnidIndex);
  1041. this.columnCodePartner = new global::System.Data.DataColumn("CodePartner", typeof(string), null, global::System.Data.MappingType.Element);
  1042. base.Columns.Add(this.columnCodePartner);
  1043. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1044. this.columnidIndex}, true));
  1045. this.columnidIndex.AutoIncrement = true;
  1046. this.columnidIndex.AutoIncrementSeed = 1;
  1047. this.columnidIndex.AllowDBNull = false;
  1048. this.columnidIndex.ReadOnly = true;
  1049. this.columnidIndex.Unique = true;
  1050. this.columnCodePartner.MaxLength = 50;
  1051. }
  1052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1054. public IndexPartnerRow NewIndexPartnerRow() {
  1055. return ((IndexPartnerRow)(this.NewRow()));
  1056. }
  1057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1059. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1060. return new IndexPartnerRow(builder);
  1061. }
  1062. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1063. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1064. protected override global::System.Type GetRowType() {
  1065. return typeof(IndexPartnerRow);
  1066. }
  1067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1069. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1070. base.OnRowChanged(e);
  1071. if ((this.IndexPartnerRowChanged != null)) {
  1072. this.IndexPartnerRowChanged(this, new IndexPartnerRowChangeEvent(((IndexPartnerRow)(e.Row)), e.Action));
  1073. }
  1074. }
  1075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1077. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1078. base.OnRowChanging(e);
  1079. if ((this.IndexPartnerRowChanging != null)) {
  1080. this.IndexPartnerRowChanging(this, new IndexPartnerRowChangeEvent(((IndexPartnerRow)(e.Row)), e.Action));
  1081. }
  1082. }
  1083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1085. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1086. base.OnRowDeleted(e);
  1087. if ((this.IndexPartnerRowDeleted != null)) {
  1088. this.IndexPartnerRowDeleted(this, new IndexPartnerRowChangeEvent(((IndexPartnerRow)(e.Row)), e.Action));
  1089. }
  1090. }
  1091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1093. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1094. base.OnRowDeleting(e);
  1095. if ((this.IndexPartnerRowDeleting != null)) {
  1096. this.IndexPartnerRowDeleting(this, new IndexPartnerRowChangeEvent(((IndexPartnerRow)(e.Row)), e.Action));
  1097. }
  1098. }
  1099. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1101. public void RemoveIndexPartnerRow(IndexPartnerRow row) {
  1102. this.Rows.Remove(row);
  1103. }
  1104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1106. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1107. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1108. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1109. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  1110. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1111. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1112. any1.MinOccurs = new decimal(0);
  1113. any1.MaxOccurs = decimal.MaxValue;
  1114. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1115. sequence.Items.Add(any1);
  1116. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1117. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1118. any2.MinOccurs = new decimal(1);
  1119. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1120. sequence.Items.Add(any2);
  1121. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1122. attribute1.Name = "namespace";
  1123. attribute1.FixedValue = ds.Namespace;
  1124. type.Attributes.Add(attribute1);
  1125. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1126. attribute2.Name = "tableTypeName";
  1127. attribute2.FixedValue = "IndexPartnerDataTable";
  1128. type.Attributes.Add(attribute2);
  1129. type.Particle = sequence;
  1130. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1131. if (xs.Contains(dsSchema.TargetNamespace)) {
  1132. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1133. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1134. try {
  1135. global::System.Xml.Schema.XmlSchema schema = null;
  1136. dsSchema.Write(s1);
  1137. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1138. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1139. s2.SetLength(0);
  1140. schema.Write(s2);
  1141. if ((s1.Length == s2.Length)) {
  1142. s1.Position = 0;
  1143. s2.Position = 0;
  1144. for (; ((s1.Position != s1.Length)
  1145. && (s1.ReadByte() == s2.ReadByte())); ) {
  1146. ;
  1147. }
  1148. if ((s1.Position == s1.Length)) {
  1149. return type;
  1150. }
  1151. }
  1152. }
  1153. }
  1154. finally {
  1155. if ((s1 != null)) {
  1156. s1.Close();
  1157. }
  1158. if ((s2 != null)) {
  1159. s2.Close();
  1160. }
  1161. }
  1162. }
  1163. xs.Add(dsSchema);
  1164. return type;
  1165. }
  1166. }
  1167. /// <summary>
  1168. ///Represents the strongly named DataTable class.
  1169. ///</summary>
  1170. [global::System.Serializable()]
  1171. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1172. public partial class ManagerDataTable : global::System.Data.TypedTableBase<ManagerRow> {
  1173. private global::System.Data.DataColumn columnidManager;
  1174. private global::System.Data.DataColumn columnSurname;
  1175. private global::System.Data.DataColumn columnName;
  1176. private global::System.Data.DataColumn columnPatronymic;
  1177. private global::System.Data.DataColumn columnLogin;
  1178. private global::System.Data.DataColumn columnPassword;
  1179. private global::System.Data.DataColumn columnPhoto;
  1180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1182. public ManagerDataTable() {
  1183. this.TableName = "Manager";
  1184. this.BeginInit();
  1185. this.InitClass();
  1186. this.EndInit();
  1187. }
  1188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1190. internal ManagerDataTable(global::System.Data.DataTable table) {
  1191. this.TableName = table.TableName;
  1192. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1193. this.CaseSensitive = table.CaseSensitive;
  1194. }
  1195. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1196. this.Locale = table.Locale;
  1197. }
  1198. if ((table.Namespace != table.DataSet.Namespace)) {
  1199. this.Namespace = table.Namespace;
  1200. }
  1201. this.Prefix = table.Prefix;
  1202. this.MinimumCapacity = table.MinimumCapacity;
  1203. }
  1204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1205. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1206. protected ManagerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1207. base(info, context) {
  1208. this.InitVars();
  1209. }
  1210. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1211. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1212. public global::System.Data.DataColumn idManagerColumn {
  1213. get {
  1214. return this.columnidManager;
  1215. }
  1216. }
  1217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1219. public global::System.Data.DataColumn SurnameColumn {
  1220. get {
  1221. return this.columnSurname;
  1222. }
  1223. }
  1224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1226. public global::System.Data.DataColumn NameColumn {
  1227. get {
  1228. return this.columnName;
  1229. }
  1230. }
  1231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1233. public global::System.Data.DataColumn PatronymicColumn {
  1234. get {
  1235. return this.columnPatronymic;
  1236. }
  1237. }
  1238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1240. public global::System.Data.DataColumn LoginColumn {
  1241. get {
  1242. return this.columnLogin;
  1243. }
  1244. }
  1245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1246. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1247. public global::System.Data.DataColumn PasswordColumn {
  1248. get {
  1249. return this.columnPassword;
  1250. }
  1251. }
  1252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1254. public global::System.Data.DataColumn PhotoColumn {
  1255. get {
  1256. return this.columnPhoto;
  1257. }
  1258. }
  1259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1261. [global::System.ComponentModel.Browsable(false)]
  1262. public int Count {
  1263. get {
  1264. return this.Rows.Count;
  1265. }
  1266. }
  1267. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1268. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1269. public ManagerRow this[int index] {
  1270. get {
  1271. return ((ManagerRow)(this.Rows[index]));
  1272. }
  1273. }
  1274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1275. public event ManagerRowChangeEventHandler ManagerRowChanging;
  1276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1277. public event ManagerRowChangeEventHandler ManagerRowChanged;
  1278. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1279. public event ManagerRowChangeEventHandler ManagerRowDeleting;
  1280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1281. public event ManagerRowChangeEventHandler ManagerRowDeleted;
  1282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1284. public void AddManagerRow(ManagerRow row) {
  1285. this.Rows.Add(row);
  1286. }
  1287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1289. public ManagerRow AddManagerRow(string Surname, string Name, string Patronymic, string Login, string Password, string Photo) {
  1290. ManagerRow rowManagerRow = ((ManagerRow)(this.NewRow()));
  1291. object[] columnValuesArray = new object[] {
  1292. null,
  1293. Surname,
  1294. Name,
  1295. Patronymic,
  1296. Login,
  1297. Password,
  1298. Photo};
  1299. rowManagerRow.ItemArray = columnValuesArray;
  1300. this.Rows.Add(rowManagerRow);
  1301. return rowManagerRow;
  1302. }
  1303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1305. public ManagerRow FindByidManager(int idManager) {
  1306. return ((ManagerRow)(this.Rows.Find(new object[] {
  1307. idManager})));
  1308. }
  1309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1311. public override global::System.Data.DataTable Clone() {
  1312. ManagerDataTable cln = ((ManagerDataTable)(base.Clone()));
  1313. cln.InitVars();
  1314. return cln;
  1315. }
  1316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1318. protected override global::System.Data.DataTable CreateInstance() {
  1319. return new ManagerDataTable();
  1320. }
  1321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1323. internal void InitVars() {
  1324. this.columnidManager = base.Columns["idManager"];
  1325. this.columnSurname = base.Columns["Surname"];
  1326. this.columnName = base.Columns["Name"];
  1327. this.columnPatronymic = base.Columns["Patronymic"];
  1328. this.columnLogin = base.Columns["Login"];
  1329. this.columnPassword = base.Columns["Password"];
  1330. this.columnPhoto = base.Columns["Photo"];
  1331. }
  1332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1334. private void InitClass() {
  1335. this.columnidManager = new global::System.Data.DataColumn("idManager", typeof(int), null, global::System.Data.MappingType.Element);
  1336. base.Columns.Add(this.columnidManager);
  1337. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  1338. base.Columns.Add(this.columnSurname);
  1339. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1340. base.Columns.Add(this.columnName);
  1341. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  1342. base.Columns.Add(this.columnPatronymic);
  1343. this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
  1344. base.Columns.Add(this.columnLogin);
  1345. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  1346. base.Columns.Add(this.columnPassword);
  1347. this.columnPhoto = new global::System.Data.DataColumn("Photo", typeof(string), null, global::System.Data.MappingType.Element);
  1348. base.Columns.Add(this.columnPhoto);
  1349. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1350. this.columnidManager}, true));
  1351. this.columnidManager.AutoIncrement = true;
  1352. this.columnidManager.AutoIncrementSeed = 1;
  1353. this.columnidManager.AllowDBNull = false;
  1354. this.columnidManager.ReadOnly = true;
  1355. this.columnidManager.Unique = true;
  1356. this.columnSurname.MaxLength = 50;
  1357. this.columnName.MaxLength = 50;
  1358. this.columnPatronymic.MaxLength = 50;
  1359. this.columnLogin.MaxLength = 50;
  1360. this.columnPassword.MaxLength = 50;
  1361. this.columnPhoto.MaxLength = 50;
  1362. }
  1363. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1365. public ManagerRow NewManagerRow() {
  1366. return ((ManagerRow)(this.NewRow()));
  1367. }
  1368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1370. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1371. return new ManagerRow(builder);
  1372. }
  1373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1375. protected override global::System.Type GetRowType() {
  1376. return typeof(ManagerRow);
  1377. }
  1378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1380. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1381. base.OnRowChanged(e);
  1382. if ((this.ManagerRowChanged != null)) {
  1383. this.ManagerRowChanged(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1384. }
  1385. }
  1386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1388. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1389. base.OnRowChanging(e);
  1390. if ((this.ManagerRowChanging != null)) {
  1391. this.ManagerRowChanging(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1392. }
  1393. }
  1394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1396. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1397. base.OnRowDeleted(e);
  1398. if ((this.ManagerRowDeleted != null)) {
  1399. this.ManagerRowDeleted(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1400. }
  1401. }
  1402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1404. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1405. base.OnRowDeleting(e);
  1406. if ((this.ManagerRowDeleting != null)) {
  1407. this.ManagerRowDeleting(this, new ManagerRowChangeEvent(((ManagerRow)(e.Row)), e.Action));
  1408. }
  1409. }
  1410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1412. public void RemoveManagerRow(ManagerRow row) {
  1413. this.Rows.Remove(row);
  1414. }
  1415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1417. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1418. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1419. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1420. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  1421. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1422. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1423. any1.MinOccurs = new decimal(0);
  1424. any1.MaxOccurs = decimal.MaxValue;
  1425. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1426. sequence.Items.Add(any1);
  1427. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1428. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1429. any2.MinOccurs = new decimal(1);
  1430. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1431. sequence.Items.Add(any2);
  1432. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1433. attribute1.Name = "namespace";
  1434. attribute1.FixedValue = ds.Namespace;
  1435. type.Attributes.Add(attribute1);
  1436. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1437. attribute2.Name = "tableTypeName";
  1438. attribute2.FixedValue = "ManagerDataTable";
  1439. type.Attributes.Add(attribute2);
  1440. type.Particle = sequence;
  1441. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1442. if (xs.Contains(dsSchema.TargetNamespace)) {
  1443. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1444. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1445. try {
  1446. global::System.Xml.Schema.XmlSchema schema = null;
  1447. dsSchema.Write(s1);
  1448. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1449. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1450. s2.SetLength(0);
  1451. schema.Write(s2);
  1452. if ((s1.Length == s2.Length)) {
  1453. s1.Position = 0;
  1454. s2.Position = 0;
  1455. for (; ((s1.Position != s1.Length)
  1456. && (s1.ReadByte() == s2.ReadByte())); ) {
  1457. ;
  1458. }
  1459. if ((s1.Position == s1.Length)) {
  1460. return type;
  1461. }
  1462. }
  1463. }
  1464. }
  1465. finally {
  1466. if ((s1 != null)) {
  1467. s1.Close();
  1468. }
  1469. if ((s2 != null)) {
  1470. s2.Close();
  1471. }
  1472. }
  1473. }
  1474. xs.Add(dsSchema);
  1475. return type;
  1476. }
  1477. }
  1478. /// <summary>
  1479. ///Represents the strongly named DataTable class.
  1480. ///</summary>
  1481. [global::System.Serializable()]
  1482. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1483. public partial class PartnerDataTable : global::System.Data.TypedTableBase<PartnerRow> {
  1484. private global::System.Data.DataColumn columnidPartner;
  1485. private global::System.Data.DataColumn columnSurname;
  1486. private global::System.Data.DataColumn columnName;
  1487. private global::System.Data.DataColumn columnPatronymic;
  1488. private global::System.Data.DataColumn columnEmail;
  1489. private global::System.Data.DataColumn columnPhone;
  1490. private global::System.Data.DataColumn columnidIndex;
  1491. private global::System.Data.DataColumn columnidCity;
  1492. private global::System.Data.DataColumn columnidStreet;
  1493. private global::System.Data.DataColumn columnHouse;
  1494. private global::System.Data.DataColumn columnINN;
  1495. private global::System.Data.DataColumn columnRating;
  1496. private global::System.Data.DataColumn columnidRegion;
  1497. private global::System.Data.DataColumn columnidTypePartner;
  1498. private global::System.Data.DataColumn columnNamePartner;
  1499. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1500. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1501. public PartnerDataTable() {
  1502. this.TableName = "Partner";
  1503. this.BeginInit();
  1504. this.InitClass();
  1505. this.EndInit();
  1506. }
  1507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1509. internal PartnerDataTable(global::System.Data.DataTable table) {
  1510. this.TableName = table.TableName;
  1511. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1512. this.CaseSensitive = table.CaseSensitive;
  1513. }
  1514. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1515. this.Locale = table.Locale;
  1516. }
  1517. if ((table.Namespace != table.DataSet.Namespace)) {
  1518. this.Namespace = table.Namespace;
  1519. }
  1520. this.Prefix = table.Prefix;
  1521. this.MinimumCapacity = table.MinimumCapacity;
  1522. }
  1523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1525. protected PartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1526. base(info, context) {
  1527. this.InitVars();
  1528. }
  1529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1531. public global::System.Data.DataColumn idPartnerColumn {
  1532. get {
  1533. return this.columnidPartner;
  1534. }
  1535. }
  1536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1538. public global::System.Data.DataColumn SurnameColumn {
  1539. get {
  1540. return this.columnSurname;
  1541. }
  1542. }
  1543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1545. public global::System.Data.DataColumn NameColumn {
  1546. get {
  1547. return this.columnName;
  1548. }
  1549. }
  1550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1552. public global::System.Data.DataColumn PatronymicColumn {
  1553. get {
  1554. return this.columnPatronymic;
  1555. }
  1556. }
  1557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1559. public global::System.Data.DataColumn EmailColumn {
  1560. get {
  1561. return this.columnEmail;
  1562. }
  1563. }
  1564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1566. public global::System.Data.DataColumn PhoneColumn {
  1567. get {
  1568. return this.columnPhone;
  1569. }
  1570. }
  1571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1573. public global::System.Data.DataColumn idIndexColumn {
  1574. get {
  1575. return this.columnidIndex;
  1576. }
  1577. }
  1578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1580. public global::System.Data.DataColumn idCityColumn {
  1581. get {
  1582. return this.columnidCity;
  1583. }
  1584. }
  1585. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1586. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1587. public global::System.Data.DataColumn idStreetColumn {
  1588. get {
  1589. return this.columnidStreet;
  1590. }
  1591. }
  1592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1594. public global::System.Data.DataColumn HouseColumn {
  1595. get {
  1596. return this.columnHouse;
  1597. }
  1598. }
  1599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1601. public global::System.Data.DataColumn INNColumn {
  1602. get {
  1603. return this.columnINN;
  1604. }
  1605. }
  1606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1608. public global::System.Data.DataColumn RatingColumn {
  1609. get {
  1610. return this.columnRating;
  1611. }
  1612. }
  1613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1615. public global::System.Data.DataColumn idRegionColumn {
  1616. get {
  1617. return this.columnidRegion;
  1618. }
  1619. }
  1620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1622. public global::System.Data.DataColumn idTypePartnerColumn {
  1623. get {
  1624. return this.columnidTypePartner;
  1625. }
  1626. }
  1627. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1628. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1629. public global::System.Data.DataColumn NamePartnerColumn {
  1630. get {
  1631. return this.columnNamePartner;
  1632. }
  1633. }
  1634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1636. [global::System.ComponentModel.Browsable(false)]
  1637. public int Count {
  1638. get {
  1639. return this.Rows.Count;
  1640. }
  1641. }
  1642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1643. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1644. public PartnerRow this[int index] {
  1645. get {
  1646. return ((PartnerRow)(this.Rows[index]));
  1647. }
  1648. }
  1649. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1650. public event PartnerRowChangeEventHandler PartnerRowChanging;
  1651. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1652. public event PartnerRowChangeEventHandler PartnerRowChanged;
  1653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1654. public event PartnerRowChangeEventHandler PartnerRowDeleting;
  1655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1656. public event PartnerRowChangeEventHandler PartnerRowDeleted;
  1657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1659. public void AddPartnerRow(PartnerRow row) {
  1660. this.Rows.Add(row);
  1661. }
  1662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1664. public PartnerRow AddPartnerRow(string Surname, string Name, string Patronymic, string Email, string Phone, IndexPartnerRow parentIndexPartnerRowByFK_Partner_IndexPartner, CityRow parentCityRowByFK_Partner_City, StreetRow parentStreetRowByFK_Partner_Street, int House, string INN, string Rating, RegionRow parentRegionRowByFK_Partner_Region, TypePartnerRow parentTypePartnerRowByFK_Partner_TypePartner, string NamePartner) {
  1665. PartnerRow rowPartnerRow = ((PartnerRow)(this.NewRow()));
  1666. object[] columnValuesArray = new object[] {
  1667. null,
  1668. Surname,
  1669. Name,
  1670. Patronymic,
  1671. Email,
  1672. Phone,
  1673. null,
  1674. null,
  1675. null,
  1676. House,
  1677. INN,
  1678. Rating,
  1679. null,
  1680. null,
  1681. NamePartner};
  1682. if ((parentIndexPartnerRowByFK_Partner_IndexPartner != null)) {
  1683. columnValuesArray[6] = parentIndexPartnerRowByFK_Partner_IndexPartner[0];
  1684. }
  1685. if ((parentCityRowByFK_Partner_City != null)) {
  1686. columnValuesArray[7] = parentCityRowByFK_Partner_City[0];
  1687. }
  1688. if ((parentStreetRowByFK_Partner_Street != null)) {
  1689. columnValuesArray[8] = parentStreetRowByFK_Partner_Street[0];
  1690. }
  1691. if ((parentRegionRowByFK_Partner_Region != null)) {
  1692. columnValuesArray[12] = parentRegionRowByFK_Partner_Region[0];
  1693. }
  1694. if ((parentTypePartnerRowByFK_Partner_TypePartner != null)) {
  1695. columnValuesArray[13] = parentTypePartnerRowByFK_Partner_TypePartner[0];
  1696. }
  1697. rowPartnerRow.ItemArray = columnValuesArray;
  1698. this.Rows.Add(rowPartnerRow);
  1699. return rowPartnerRow;
  1700. }
  1701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1703. public PartnerRow FindByidPartner(int idPartner) {
  1704. return ((PartnerRow)(this.Rows.Find(new object[] {
  1705. idPartner})));
  1706. }
  1707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1709. public override global::System.Data.DataTable Clone() {
  1710. PartnerDataTable cln = ((PartnerDataTable)(base.Clone()));
  1711. cln.InitVars();
  1712. return cln;
  1713. }
  1714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1716. protected override global::System.Data.DataTable CreateInstance() {
  1717. return new PartnerDataTable();
  1718. }
  1719. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1721. internal void InitVars() {
  1722. this.columnidPartner = base.Columns["idPartner"];
  1723. this.columnSurname = base.Columns["Surname"];
  1724. this.columnName = base.Columns["Name"];
  1725. this.columnPatronymic = base.Columns["Patronymic"];
  1726. this.columnEmail = base.Columns["Email"];
  1727. this.columnPhone = base.Columns["Phone"];
  1728. this.columnidIndex = base.Columns["idIndex"];
  1729. this.columnidCity = base.Columns["idCity"];
  1730. this.columnidStreet = base.Columns["idStreet"];
  1731. this.columnHouse = base.Columns["House"];
  1732. this.columnINN = base.Columns["INN"];
  1733. this.columnRating = base.Columns["Rating"];
  1734. this.columnidRegion = base.Columns["idRegion"];
  1735. this.columnidTypePartner = base.Columns["idTypePartner"];
  1736. this.columnNamePartner = base.Columns["NamePartner"];
  1737. }
  1738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1740. private void InitClass() {
  1741. this.columnidPartner = new global::System.Data.DataColumn("idPartner", typeof(int), null, global::System.Data.MappingType.Element);
  1742. base.Columns.Add(this.columnidPartner);
  1743. this.columnSurname = new global::System.Data.DataColumn("Surname", typeof(string), null, global::System.Data.MappingType.Element);
  1744. base.Columns.Add(this.columnSurname);
  1745. this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
  1746. base.Columns.Add(this.columnName);
  1747. this.columnPatronymic = new global::System.Data.DataColumn("Patronymic", typeof(string), null, global::System.Data.MappingType.Element);
  1748. base.Columns.Add(this.columnPatronymic);
  1749. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  1750. base.Columns.Add(this.columnEmail);
  1751. this.columnPhone = new global::System.Data.DataColumn("Phone", typeof(string), null, global::System.Data.MappingType.Element);
  1752. base.Columns.Add(this.columnPhone);
  1753. this.columnidIndex = new global::System.Data.DataColumn("idIndex", typeof(int), null, global::System.Data.MappingType.Element);
  1754. base.Columns.Add(this.columnidIndex);
  1755. this.columnidCity = new global::System.Data.DataColumn("idCity", typeof(int), null, global::System.Data.MappingType.Element);
  1756. base.Columns.Add(this.columnidCity);
  1757. this.columnidStreet = new global::System.Data.DataColumn("idStreet", typeof(int), null, global::System.Data.MappingType.Element);
  1758. base.Columns.Add(this.columnidStreet);
  1759. this.columnHouse = new global::System.Data.DataColumn("House", typeof(int), null, global::System.Data.MappingType.Element);
  1760. base.Columns.Add(this.columnHouse);
  1761. this.columnINN = new global::System.Data.DataColumn("INN", typeof(string), null, global::System.Data.MappingType.Element);
  1762. base.Columns.Add(this.columnINN);
  1763. this.columnRating = new global::System.Data.DataColumn("Rating", typeof(string), null, global::System.Data.MappingType.Element);
  1764. base.Columns.Add(this.columnRating);
  1765. this.columnidRegion = new global::System.Data.DataColumn("idRegion", typeof(int), null, global::System.Data.MappingType.Element);
  1766. base.Columns.Add(this.columnidRegion);
  1767. this.columnidTypePartner = new global::System.Data.DataColumn("idTypePartner", typeof(int), null, global::System.Data.MappingType.Element);
  1768. base.Columns.Add(this.columnidTypePartner);
  1769. this.columnNamePartner = new global::System.Data.DataColumn("NamePartner", typeof(string), null, global::System.Data.MappingType.Element);
  1770. base.Columns.Add(this.columnNamePartner);
  1771. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1772. this.columnidPartner}, true));
  1773. this.columnidPartner.AutoIncrement = true;
  1774. this.columnidPartner.AutoIncrementSeed = 1;
  1775. this.columnidPartner.AllowDBNull = false;
  1776. this.columnidPartner.ReadOnly = true;
  1777. this.columnidPartner.Unique = true;
  1778. this.columnSurname.MaxLength = 50;
  1779. this.columnName.MaxLength = 50;
  1780. this.columnPatronymic.MaxLength = 50;
  1781. this.columnEmail.MaxLength = 50;
  1782. this.columnPhone.MaxLength = 50;
  1783. this.columnINN.MaxLength = 50;
  1784. this.columnRating.MaxLength = 50;
  1785. this.columnNamePartner.MaxLength = 50;
  1786. }
  1787. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1788. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1789. public PartnerRow NewPartnerRow() {
  1790. return ((PartnerRow)(this.NewRow()));
  1791. }
  1792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1794. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1795. return new PartnerRow(builder);
  1796. }
  1797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1799. protected override global::System.Type GetRowType() {
  1800. return typeof(PartnerRow);
  1801. }
  1802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1804. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1805. base.OnRowChanged(e);
  1806. if ((this.PartnerRowChanged != null)) {
  1807. this.PartnerRowChanged(this, new PartnerRowChangeEvent(((PartnerRow)(e.Row)), e.Action));
  1808. }
  1809. }
  1810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1812. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1813. base.OnRowChanging(e);
  1814. if ((this.PartnerRowChanging != null)) {
  1815. this.PartnerRowChanging(this, new PartnerRowChangeEvent(((PartnerRow)(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 OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1821. base.OnRowDeleted(e);
  1822. if ((this.PartnerRowDeleted != null)) {
  1823. this.PartnerRowDeleted(this, new PartnerRowChangeEvent(((PartnerRow)(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 OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1829. base.OnRowDeleting(e);
  1830. if ((this.PartnerRowDeleting != null)) {
  1831. this.PartnerRowDeleting(this, new PartnerRowChangeEvent(((PartnerRow)(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. public void RemovePartnerRow(PartnerRow row) {
  1837. this.Rows.Remove(row);
  1838. }
  1839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1841. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1842. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1843. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1844. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  1845. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1846. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1847. any1.MinOccurs = new decimal(0);
  1848. any1.MaxOccurs = decimal.MaxValue;
  1849. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1850. sequence.Items.Add(any1);
  1851. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1852. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1853. any2.MinOccurs = new decimal(1);
  1854. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1855. sequence.Items.Add(any2);
  1856. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1857. attribute1.Name = "namespace";
  1858. attribute1.FixedValue = ds.Namespace;
  1859. type.Attributes.Add(attribute1);
  1860. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1861. attribute2.Name = "tableTypeName";
  1862. attribute2.FixedValue = "PartnerDataTable";
  1863. type.Attributes.Add(attribute2);
  1864. type.Particle = sequence;
  1865. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1866. if (xs.Contains(dsSchema.TargetNamespace)) {
  1867. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1868. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1869. try {
  1870. global::System.Xml.Schema.XmlSchema schema = null;
  1871. dsSchema.Write(s1);
  1872. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1873. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1874. s2.SetLength(0);
  1875. schema.Write(s2);
  1876. if ((s1.Length == s2.Length)) {
  1877. s1.Position = 0;
  1878. s2.Position = 0;
  1879. for (; ((s1.Position != s1.Length)
  1880. && (s1.ReadByte() == s2.ReadByte())); ) {
  1881. ;
  1882. }
  1883. if ((s1.Position == s1.Length)) {
  1884. return type;
  1885. }
  1886. }
  1887. }
  1888. }
  1889. finally {
  1890. if ((s1 != null)) {
  1891. s1.Close();
  1892. }
  1893. if ((s2 != null)) {
  1894. s2.Close();
  1895. }
  1896. }
  1897. }
  1898. xs.Add(dsSchema);
  1899. return type;
  1900. }
  1901. }
  1902. /// <summary>
  1903. ///Represents the strongly named DataTable class.
  1904. ///</summary>
  1905. [global::System.Serializable()]
  1906. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1907. public partial class ProductPartnerDataTable : global::System.Data.TypedTableBase<ProductPartnerRow> {
  1908. private global::System.Data.DataColumn columnidPartnerProduct;
  1909. private global::System.Data.DataColumn columnidProduct;
  1910. private global::System.Data.DataColumn columnidPartner;
  1911. private global::System.Data.DataColumn columnCountProduct;
  1912. private global::System.Data.DataColumn columnDateSale;
  1913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1915. public ProductPartnerDataTable() {
  1916. this.TableName = "ProductPartner";
  1917. this.BeginInit();
  1918. this.InitClass();
  1919. this.EndInit();
  1920. }
  1921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1923. internal ProductPartnerDataTable(global::System.Data.DataTable table) {
  1924. this.TableName = table.TableName;
  1925. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1926. this.CaseSensitive = table.CaseSensitive;
  1927. }
  1928. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1929. this.Locale = table.Locale;
  1930. }
  1931. if ((table.Namespace != table.DataSet.Namespace)) {
  1932. this.Namespace = table.Namespace;
  1933. }
  1934. this.Prefix = table.Prefix;
  1935. this.MinimumCapacity = table.MinimumCapacity;
  1936. }
  1937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1939. protected ProductPartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1940. base(info, context) {
  1941. this.InitVars();
  1942. }
  1943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1945. public global::System.Data.DataColumn idPartnerProductColumn {
  1946. get {
  1947. return this.columnidPartnerProduct;
  1948. }
  1949. }
  1950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1952. public global::System.Data.DataColumn idProductColumn {
  1953. get {
  1954. return this.columnidProduct;
  1955. }
  1956. }
  1957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1959. public global::System.Data.DataColumn idPartnerColumn {
  1960. get {
  1961. return this.columnidPartner;
  1962. }
  1963. }
  1964. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1965. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1966. public global::System.Data.DataColumn CountProductColumn {
  1967. get {
  1968. return this.columnCountProduct;
  1969. }
  1970. }
  1971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1973. public global::System.Data.DataColumn DateSaleColumn {
  1974. get {
  1975. return this.columnDateSale;
  1976. }
  1977. }
  1978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1980. [global::System.ComponentModel.Browsable(false)]
  1981. public int Count {
  1982. get {
  1983. return this.Rows.Count;
  1984. }
  1985. }
  1986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1988. public ProductPartnerRow this[int index] {
  1989. get {
  1990. return ((ProductPartnerRow)(this.Rows[index]));
  1991. }
  1992. }
  1993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1994. public event ProductPartnerRowChangeEventHandler ProductPartnerRowChanging;
  1995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1996. public event ProductPartnerRowChangeEventHandler ProductPartnerRowChanged;
  1997. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  1998. public event ProductPartnerRowChangeEventHandler ProductPartnerRowDeleting;
  1999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2000. public event ProductPartnerRowChangeEventHandler ProductPartnerRowDeleted;
  2001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2003. public void AddProductPartnerRow(ProductPartnerRow row) {
  2004. this.Rows.Add(row);
  2005. }
  2006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2008. public ProductPartnerRow AddProductPartnerRow(ProductsRow parentProductsRowByFK_ProductPartner_Products, PartnerRow parentPartnerRowByFK_ProductPartner_Partner, int CountProduct, System.DateTime DateSale) {
  2009. ProductPartnerRow rowProductPartnerRow = ((ProductPartnerRow)(this.NewRow()));
  2010. object[] columnValuesArray = new object[] {
  2011. null,
  2012. null,
  2013. null,
  2014. CountProduct,
  2015. DateSale};
  2016. if ((parentProductsRowByFK_ProductPartner_Products != null)) {
  2017. columnValuesArray[1] = parentProductsRowByFK_ProductPartner_Products[0];
  2018. }
  2019. if ((parentPartnerRowByFK_ProductPartner_Partner != null)) {
  2020. columnValuesArray[2] = parentPartnerRowByFK_ProductPartner_Partner[0];
  2021. }
  2022. rowProductPartnerRow.ItemArray = columnValuesArray;
  2023. this.Rows.Add(rowProductPartnerRow);
  2024. return rowProductPartnerRow;
  2025. }
  2026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2028. public ProductPartnerRow FindByidPartnerProduct(int idPartnerProduct) {
  2029. return ((ProductPartnerRow)(this.Rows.Find(new object[] {
  2030. idPartnerProduct})));
  2031. }
  2032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2034. public override global::System.Data.DataTable Clone() {
  2035. ProductPartnerDataTable cln = ((ProductPartnerDataTable)(base.Clone()));
  2036. cln.InitVars();
  2037. return cln;
  2038. }
  2039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2041. protected override global::System.Data.DataTable CreateInstance() {
  2042. return new ProductPartnerDataTable();
  2043. }
  2044. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2046. internal void InitVars() {
  2047. this.columnidPartnerProduct = base.Columns["idPartnerProduct"];
  2048. this.columnidProduct = base.Columns["idProduct"];
  2049. this.columnidPartner = base.Columns["idPartner"];
  2050. this.columnCountProduct = base.Columns["CountProduct"];
  2051. this.columnDateSale = base.Columns["DateSale"];
  2052. }
  2053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2055. private void InitClass() {
  2056. this.columnidPartnerProduct = new global::System.Data.DataColumn("idPartnerProduct", typeof(int), null, global::System.Data.MappingType.Element);
  2057. base.Columns.Add(this.columnidPartnerProduct);
  2058. this.columnidProduct = new global::System.Data.DataColumn("idProduct", typeof(int), null, global::System.Data.MappingType.Element);
  2059. base.Columns.Add(this.columnidProduct);
  2060. this.columnidPartner = new global::System.Data.DataColumn("idPartner", typeof(int), null, global::System.Data.MappingType.Element);
  2061. base.Columns.Add(this.columnidPartner);
  2062. this.columnCountProduct = new global::System.Data.DataColumn("CountProduct", typeof(int), null, global::System.Data.MappingType.Element);
  2063. base.Columns.Add(this.columnCountProduct);
  2064. this.columnDateSale = new global::System.Data.DataColumn("DateSale", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  2065. base.Columns.Add(this.columnDateSale);
  2066. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2067. this.columnidPartnerProduct}, true));
  2068. this.columnidPartnerProduct.AutoIncrement = true;
  2069. this.columnidPartnerProduct.AutoIncrementSeed = 1;
  2070. this.columnidPartnerProduct.AllowDBNull = false;
  2071. this.columnidPartnerProduct.ReadOnly = true;
  2072. this.columnidPartnerProduct.Unique = true;
  2073. }
  2074. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2075. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2076. public ProductPartnerRow NewProductPartnerRow() {
  2077. return ((ProductPartnerRow)(this.NewRow()));
  2078. }
  2079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2081. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2082. return new ProductPartnerRow(builder);
  2083. }
  2084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2086. protected override global::System.Type GetRowType() {
  2087. return typeof(ProductPartnerRow);
  2088. }
  2089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2091. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2092. base.OnRowChanged(e);
  2093. if ((this.ProductPartnerRowChanged != null)) {
  2094. this.ProductPartnerRowChanged(this, new ProductPartnerRowChangeEvent(((ProductPartnerRow)(e.Row)), e.Action));
  2095. }
  2096. }
  2097. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2098. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2099. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2100. base.OnRowChanging(e);
  2101. if ((this.ProductPartnerRowChanging != null)) {
  2102. this.ProductPartnerRowChanging(this, new ProductPartnerRowChangeEvent(((ProductPartnerRow)(e.Row)), e.Action));
  2103. }
  2104. }
  2105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2106. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2107. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2108. base.OnRowDeleted(e);
  2109. if ((this.ProductPartnerRowDeleted != null)) {
  2110. this.ProductPartnerRowDeleted(this, new ProductPartnerRowChangeEvent(((ProductPartnerRow)(e.Row)), e.Action));
  2111. }
  2112. }
  2113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2115. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2116. base.OnRowDeleting(e);
  2117. if ((this.ProductPartnerRowDeleting != null)) {
  2118. this.ProductPartnerRowDeleting(this, new ProductPartnerRowChangeEvent(((ProductPartnerRow)(e.Row)), e.Action));
  2119. }
  2120. }
  2121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2123. public void RemoveProductPartnerRow(ProductPartnerRow row) {
  2124. this.Rows.Remove(row);
  2125. }
  2126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2128. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2129. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2130. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2131. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  2132. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2133. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2134. any1.MinOccurs = new decimal(0);
  2135. any1.MaxOccurs = decimal.MaxValue;
  2136. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2137. sequence.Items.Add(any1);
  2138. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2139. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2140. any2.MinOccurs = new decimal(1);
  2141. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2142. sequence.Items.Add(any2);
  2143. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2144. attribute1.Name = "namespace";
  2145. attribute1.FixedValue = ds.Namespace;
  2146. type.Attributes.Add(attribute1);
  2147. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2148. attribute2.Name = "tableTypeName";
  2149. attribute2.FixedValue = "ProductPartnerDataTable";
  2150. type.Attributes.Add(attribute2);
  2151. type.Particle = sequence;
  2152. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2153. if (xs.Contains(dsSchema.TargetNamespace)) {
  2154. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2155. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2156. try {
  2157. global::System.Xml.Schema.XmlSchema schema = null;
  2158. dsSchema.Write(s1);
  2159. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2160. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2161. s2.SetLength(0);
  2162. schema.Write(s2);
  2163. if ((s1.Length == s2.Length)) {
  2164. s1.Position = 0;
  2165. s2.Position = 0;
  2166. for (; ((s1.Position != s1.Length)
  2167. && (s1.ReadByte() == s2.ReadByte())); ) {
  2168. ;
  2169. }
  2170. if ((s1.Position == s1.Length)) {
  2171. return type;
  2172. }
  2173. }
  2174. }
  2175. }
  2176. finally {
  2177. if ((s1 != null)) {
  2178. s1.Close();
  2179. }
  2180. if ((s2 != null)) {
  2181. s2.Close();
  2182. }
  2183. }
  2184. }
  2185. xs.Add(dsSchema);
  2186. return type;
  2187. }
  2188. }
  2189. /// <summary>
  2190. ///Represents the strongly named DataTable class.
  2191. ///</summary>
  2192. [global::System.Serializable()]
  2193. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2194. public partial class ProductsDataTable : global::System.Data.TypedTableBase<ProductsRow> {
  2195. private global::System.Data.DataColumn columnidProduct;
  2196. private global::System.Data.DataColumn columnidTypeProduct;
  2197. private global::System.Data.DataColumn columnNameProduct;
  2198. private global::System.Data.DataColumn columnArticle;
  2199. private global::System.Data.DataColumn columnMinCost;
  2200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2202. public ProductsDataTable() {
  2203. this.TableName = "Products";
  2204. this.BeginInit();
  2205. this.InitClass();
  2206. this.EndInit();
  2207. }
  2208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2210. internal ProductsDataTable(global::System.Data.DataTable table) {
  2211. this.TableName = table.TableName;
  2212. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2213. this.CaseSensitive = table.CaseSensitive;
  2214. }
  2215. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2216. this.Locale = table.Locale;
  2217. }
  2218. if ((table.Namespace != table.DataSet.Namespace)) {
  2219. this.Namespace = table.Namespace;
  2220. }
  2221. this.Prefix = table.Prefix;
  2222. this.MinimumCapacity = table.MinimumCapacity;
  2223. }
  2224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2225. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2226. protected ProductsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2227. base(info, context) {
  2228. this.InitVars();
  2229. }
  2230. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2231. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2232. public global::System.Data.DataColumn idProductColumn {
  2233. get {
  2234. return this.columnidProduct;
  2235. }
  2236. }
  2237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2239. public global::System.Data.DataColumn idTypeProductColumn {
  2240. get {
  2241. return this.columnidTypeProduct;
  2242. }
  2243. }
  2244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2246. public global::System.Data.DataColumn NameProductColumn {
  2247. get {
  2248. return this.columnNameProduct;
  2249. }
  2250. }
  2251. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2253. public global::System.Data.DataColumn ArticleColumn {
  2254. get {
  2255. return this.columnArticle;
  2256. }
  2257. }
  2258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2260. public global::System.Data.DataColumn MinCostColumn {
  2261. get {
  2262. return this.columnMinCost;
  2263. }
  2264. }
  2265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2267. [global::System.ComponentModel.Browsable(false)]
  2268. public int Count {
  2269. get {
  2270. return this.Rows.Count;
  2271. }
  2272. }
  2273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2275. public ProductsRow this[int index] {
  2276. get {
  2277. return ((ProductsRow)(this.Rows[index]));
  2278. }
  2279. }
  2280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2281. public event ProductsRowChangeEventHandler ProductsRowChanging;
  2282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2283. public event ProductsRowChangeEventHandler ProductsRowChanged;
  2284. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2285. public event ProductsRowChangeEventHandler ProductsRowDeleting;
  2286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2287. public event ProductsRowChangeEventHandler ProductsRowDeleted;
  2288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2290. public void AddProductsRow(ProductsRow row) {
  2291. this.Rows.Add(row);
  2292. }
  2293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2295. public ProductsRow AddProductsRow(TypeProductRow parentTypeProductRowByFK_Products_TypeProduct, string NameProduct, int Article, decimal MinCost) {
  2296. ProductsRow rowProductsRow = ((ProductsRow)(this.NewRow()));
  2297. object[] columnValuesArray = new object[] {
  2298. null,
  2299. null,
  2300. NameProduct,
  2301. Article,
  2302. MinCost};
  2303. if ((parentTypeProductRowByFK_Products_TypeProduct != null)) {
  2304. columnValuesArray[1] = parentTypeProductRowByFK_Products_TypeProduct[0];
  2305. }
  2306. rowProductsRow.ItemArray = columnValuesArray;
  2307. this.Rows.Add(rowProductsRow);
  2308. return rowProductsRow;
  2309. }
  2310. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2312. public ProductsRow FindByidProduct(int idProduct) {
  2313. return ((ProductsRow)(this.Rows.Find(new object[] {
  2314. idProduct})));
  2315. }
  2316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2318. public override global::System.Data.DataTable Clone() {
  2319. ProductsDataTable cln = ((ProductsDataTable)(base.Clone()));
  2320. cln.InitVars();
  2321. return cln;
  2322. }
  2323. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2325. protected override global::System.Data.DataTable CreateInstance() {
  2326. return new ProductsDataTable();
  2327. }
  2328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2330. internal void InitVars() {
  2331. this.columnidProduct = base.Columns["idProduct"];
  2332. this.columnidTypeProduct = base.Columns["idTypeProduct"];
  2333. this.columnNameProduct = base.Columns["NameProduct"];
  2334. this.columnArticle = base.Columns["Article"];
  2335. this.columnMinCost = base.Columns["MinCost"];
  2336. }
  2337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2339. private void InitClass() {
  2340. this.columnidProduct = new global::System.Data.DataColumn("idProduct", typeof(int), null, global::System.Data.MappingType.Element);
  2341. base.Columns.Add(this.columnidProduct);
  2342. this.columnidTypeProduct = new global::System.Data.DataColumn("idTypeProduct", typeof(int), null, global::System.Data.MappingType.Element);
  2343. base.Columns.Add(this.columnidTypeProduct);
  2344. this.columnNameProduct = new global::System.Data.DataColumn("NameProduct", typeof(string), null, global::System.Data.MappingType.Element);
  2345. base.Columns.Add(this.columnNameProduct);
  2346. this.columnArticle = new global::System.Data.DataColumn("Article", typeof(int), null, global::System.Data.MappingType.Element);
  2347. base.Columns.Add(this.columnArticle);
  2348. this.columnMinCost = new global::System.Data.DataColumn("MinCost", typeof(decimal), null, global::System.Data.MappingType.Element);
  2349. base.Columns.Add(this.columnMinCost);
  2350. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2351. this.columnidProduct}, true));
  2352. this.columnidProduct.AutoIncrement = true;
  2353. this.columnidProduct.AutoIncrementSeed = 1;
  2354. this.columnidProduct.AllowDBNull = false;
  2355. this.columnidProduct.ReadOnly = true;
  2356. this.columnidProduct.Unique = true;
  2357. this.columnNameProduct.MaxLength = 2147483647;
  2358. }
  2359. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2360. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2361. public ProductsRow NewProductsRow() {
  2362. return ((ProductsRow)(this.NewRow()));
  2363. }
  2364. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2365. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2366. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2367. return new ProductsRow(builder);
  2368. }
  2369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2371. protected override global::System.Type GetRowType() {
  2372. return typeof(ProductsRow);
  2373. }
  2374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2376. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2377. base.OnRowChanged(e);
  2378. if ((this.ProductsRowChanged != null)) {
  2379. this.ProductsRowChanged(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
  2380. }
  2381. }
  2382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2384. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2385. base.OnRowChanging(e);
  2386. if ((this.ProductsRowChanging != null)) {
  2387. this.ProductsRowChanging(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
  2388. }
  2389. }
  2390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2392. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2393. base.OnRowDeleted(e);
  2394. if ((this.ProductsRowDeleted != null)) {
  2395. this.ProductsRowDeleted(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
  2396. }
  2397. }
  2398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2400. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2401. base.OnRowDeleting(e);
  2402. if ((this.ProductsRowDeleting != null)) {
  2403. this.ProductsRowDeleting(this, new ProductsRowChangeEvent(((ProductsRow)(e.Row)), e.Action));
  2404. }
  2405. }
  2406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2408. public void RemoveProductsRow(ProductsRow row) {
  2409. this.Rows.Remove(row);
  2410. }
  2411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2413. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2414. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2415. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2416. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  2417. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2418. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2419. any1.MinOccurs = new decimal(0);
  2420. any1.MaxOccurs = decimal.MaxValue;
  2421. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2422. sequence.Items.Add(any1);
  2423. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2424. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2425. any2.MinOccurs = new decimal(1);
  2426. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2427. sequence.Items.Add(any2);
  2428. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2429. attribute1.Name = "namespace";
  2430. attribute1.FixedValue = ds.Namespace;
  2431. type.Attributes.Add(attribute1);
  2432. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2433. attribute2.Name = "tableTypeName";
  2434. attribute2.FixedValue = "ProductsDataTable";
  2435. type.Attributes.Add(attribute2);
  2436. type.Particle = sequence;
  2437. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2438. if (xs.Contains(dsSchema.TargetNamespace)) {
  2439. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2440. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2441. try {
  2442. global::System.Xml.Schema.XmlSchema schema = null;
  2443. dsSchema.Write(s1);
  2444. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2445. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2446. s2.SetLength(0);
  2447. schema.Write(s2);
  2448. if ((s1.Length == s2.Length)) {
  2449. s1.Position = 0;
  2450. s2.Position = 0;
  2451. for (; ((s1.Position != s1.Length)
  2452. && (s1.ReadByte() == s2.ReadByte())); ) {
  2453. ;
  2454. }
  2455. if ((s1.Position == s1.Length)) {
  2456. return type;
  2457. }
  2458. }
  2459. }
  2460. }
  2461. finally {
  2462. if ((s1 != null)) {
  2463. s1.Close();
  2464. }
  2465. if ((s2 != null)) {
  2466. s2.Close();
  2467. }
  2468. }
  2469. }
  2470. xs.Add(dsSchema);
  2471. return type;
  2472. }
  2473. }
  2474. /// <summary>
  2475. ///Represents the strongly named DataTable class.
  2476. ///</summary>
  2477. [global::System.Serializable()]
  2478. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2479. public partial class RegionDataTable : global::System.Data.TypedTableBase<RegionRow> {
  2480. private global::System.Data.DataColumn columnidRegion;
  2481. private global::System.Data.DataColumn columnRegion;
  2482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2484. public RegionDataTable() {
  2485. this.TableName = "Region";
  2486. this.BeginInit();
  2487. this.InitClass();
  2488. this.EndInit();
  2489. }
  2490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2492. internal RegionDataTable(global::System.Data.DataTable table) {
  2493. this.TableName = table.TableName;
  2494. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2495. this.CaseSensitive = table.CaseSensitive;
  2496. }
  2497. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2498. this.Locale = table.Locale;
  2499. }
  2500. if ((table.Namespace != table.DataSet.Namespace)) {
  2501. this.Namespace = table.Namespace;
  2502. }
  2503. this.Prefix = table.Prefix;
  2504. this.MinimumCapacity = table.MinimumCapacity;
  2505. }
  2506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2508. protected RegionDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2509. base(info, context) {
  2510. this.InitVars();
  2511. }
  2512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2514. public global::System.Data.DataColumn idRegionColumn {
  2515. get {
  2516. return this.columnidRegion;
  2517. }
  2518. }
  2519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2521. public global::System.Data.DataColumn RegionColumn {
  2522. get {
  2523. return this.columnRegion;
  2524. }
  2525. }
  2526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2528. [global::System.ComponentModel.Browsable(false)]
  2529. public int Count {
  2530. get {
  2531. return this.Rows.Count;
  2532. }
  2533. }
  2534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2536. public RegionRow this[int index] {
  2537. get {
  2538. return ((RegionRow)(this.Rows[index]));
  2539. }
  2540. }
  2541. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2542. public event RegionRowChangeEventHandler RegionRowChanging;
  2543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2544. public event RegionRowChangeEventHandler RegionRowChanged;
  2545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2546. public event RegionRowChangeEventHandler RegionRowDeleting;
  2547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2548. public event RegionRowChangeEventHandler RegionRowDeleted;
  2549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2551. public void AddRegionRow(RegionRow row) {
  2552. this.Rows.Add(row);
  2553. }
  2554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2556. public RegionRow AddRegionRow(string Region) {
  2557. RegionRow rowRegionRow = ((RegionRow)(this.NewRow()));
  2558. object[] columnValuesArray = new object[] {
  2559. null,
  2560. Region};
  2561. rowRegionRow.ItemArray = columnValuesArray;
  2562. this.Rows.Add(rowRegionRow);
  2563. return rowRegionRow;
  2564. }
  2565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2567. public RegionRow FindByidRegion(int idRegion) {
  2568. return ((RegionRow)(this.Rows.Find(new object[] {
  2569. idRegion})));
  2570. }
  2571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2573. public override global::System.Data.DataTable Clone() {
  2574. RegionDataTable cln = ((RegionDataTable)(base.Clone()));
  2575. cln.InitVars();
  2576. return cln;
  2577. }
  2578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2580. protected override global::System.Data.DataTable CreateInstance() {
  2581. return new RegionDataTable();
  2582. }
  2583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2585. internal void InitVars() {
  2586. this.columnidRegion = base.Columns["idRegion"];
  2587. this.columnRegion = base.Columns["Region"];
  2588. }
  2589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2591. private void InitClass() {
  2592. this.columnidRegion = new global::System.Data.DataColumn("idRegion", typeof(int), null, global::System.Data.MappingType.Element);
  2593. base.Columns.Add(this.columnidRegion);
  2594. this.columnRegion = new global::System.Data.DataColumn("Region", typeof(string), null, global::System.Data.MappingType.Element);
  2595. base.Columns.Add(this.columnRegion);
  2596. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2597. this.columnidRegion}, true));
  2598. this.columnidRegion.AutoIncrement = true;
  2599. this.columnidRegion.AutoIncrementSeed = 1;
  2600. this.columnidRegion.AllowDBNull = false;
  2601. this.columnidRegion.ReadOnly = true;
  2602. this.columnidRegion.Unique = true;
  2603. this.columnRegion.MaxLength = 50;
  2604. }
  2605. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2606. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2607. public RegionRow NewRegionRow() {
  2608. return ((RegionRow)(this.NewRow()));
  2609. }
  2610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2612. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2613. return new RegionRow(builder);
  2614. }
  2615. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2616. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2617. protected override global::System.Type GetRowType() {
  2618. return typeof(RegionRow);
  2619. }
  2620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2621. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2622. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2623. base.OnRowChanged(e);
  2624. if ((this.RegionRowChanged != null)) {
  2625. this.RegionRowChanged(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2626. }
  2627. }
  2628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2630. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2631. base.OnRowChanging(e);
  2632. if ((this.RegionRowChanging != null)) {
  2633. this.RegionRowChanging(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2634. }
  2635. }
  2636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2638. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2639. base.OnRowDeleted(e);
  2640. if ((this.RegionRowDeleted != null)) {
  2641. this.RegionRowDeleted(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2642. }
  2643. }
  2644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2646. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2647. base.OnRowDeleting(e);
  2648. if ((this.RegionRowDeleting != null)) {
  2649. this.RegionRowDeleting(this, new RegionRowChangeEvent(((RegionRow)(e.Row)), e.Action));
  2650. }
  2651. }
  2652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2654. public void RemoveRegionRow(RegionRow row) {
  2655. this.Rows.Remove(row);
  2656. }
  2657. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2658. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2659. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2660. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2661. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2662. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  2663. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2664. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2665. any1.MinOccurs = new decimal(0);
  2666. any1.MaxOccurs = decimal.MaxValue;
  2667. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2668. sequence.Items.Add(any1);
  2669. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2670. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2671. any2.MinOccurs = new decimal(1);
  2672. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2673. sequence.Items.Add(any2);
  2674. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2675. attribute1.Name = "namespace";
  2676. attribute1.FixedValue = ds.Namespace;
  2677. type.Attributes.Add(attribute1);
  2678. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2679. attribute2.Name = "tableTypeName";
  2680. attribute2.FixedValue = "RegionDataTable";
  2681. type.Attributes.Add(attribute2);
  2682. type.Particle = sequence;
  2683. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2684. if (xs.Contains(dsSchema.TargetNamespace)) {
  2685. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2686. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2687. try {
  2688. global::System.Xml.Schema.XmlSchema schema = null;
  2689. dsSchema.Write(s1);
  2690. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2691. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2692. s2.SetLength(0);
  2693. schema.Write(s2);
  2694. if ((s1.Length == s2.Length)) {
  2695. s1.Position = 0;
  2696. s2.Position = 0;
  2697. for (; ((s1.Position != s1.Length)
  2698. && (s1.ReadByte() == s2.ReadByte())); ) {
  2699. ;
  2700. }
  2701. if ((s1.Position == s1.Length)) {
  2702. return type;
  2703. }
  2704. }
  2705. }
  2706. }
  2707. finally {
  2708. if ((s1 != null)) {
  2709. s1.Close();
  2710. }
  2711. if ((s2 != null)) {
  2712. s2.Close();
  2713. }
  2714. }
  2715. }
  2716. xs.Add(dsSchema);
  2717. return type;
  2718. }
  2719. }
  2720. /// <summary>
  2721. ///Represents the strongly named DataTable class.
  2722. ///</summary>
  2723. [global::System.Serializable()]
  2724. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2725. public partial class StreetDataTable : global::System.Data.TypedTableBase<StreetRow> {
  2726. private global::System.Data.DataColumn columnidStreet;
  2727. private global::System.Data.DataColumn columnStreet;
  2728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2730. public StreetDataTable() {
  2731. this.TableName = "Street";
  2732. this.BeginInit();
  2733. this.InitClass();
  2734. this.EndInit();
  2735. }
  2736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2738. internal StreetDataTable(global::System.Data.DataTable table) {
  2739. this.TableName = table.TableName;
  2740. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2741. this.CaseSensitive = table.CaseSensitive;
  2742. }
  2743. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2744. this.Locale = table.Locale;
  2745. }
  2746. if ((table.Namespace != table.DataSet.Namespace)) {
  2747. this.Namespace = table.Namespace;
  2748. }
  2749. this.Prefix = table.Prefix;
  2750. this.MinimumCapacity = table.MinimumCapacity;
  2751. }
  2752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2754. protected StreetDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  2755. base(info, context) {
  2756. this.InitVars();
  2757. }
  2758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2760. public global::System.Data.DataColumn idStreetColumn {
  2761. get {
  2762. return this.columnidStreet;
  2763. }
  2764. }
  2765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2767. public global::System.Data.DataColumn StreetColumn {
  2768. get {
  2769. return this.columnStreet;
  2770. }
  2771. }
  2772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2774. [global::System.ComponentModel.Browsable(false)]
  2775. public int Count {
  2776. get {
  2777. return this.Rows.Count;
  2778. }
  2779. }
  2780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2782. public StreetRow this[int index] {
  2783. get {
  2784. return ((StreetRow)(this.Rows[index]));
  2785. }
  2786. }
  2787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2788. public event StreetRowChangeEventHandler StreetRowChanging;
  2789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2790. public event StreetRowChangeEventHandler StreetRowChanged;
  2791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2792. public event StreetRowChangeEventHandler StreetRowDeleting;
  2793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2794. public event StreetRowChangeEventHandler StreetRowDeleted;
  2795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2797. public void AddStreetRow(StreetRow row) {
  2798. this.Rows.Add(row);
  2799. }
  2800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2802. public StreetRow AddStreetRow(string Street) {
  2803. StreetRow rowStreetRow = ((StreetRow)(this.NewRow()));
  2804. object[] columnValuesArray = new object[] {
  2805. null,
  2806. Street};
  2807. rowStreetRow.ItemArray = columnValuesArray;
  2808. this.Rows.Add(rowStreetRow);
  2809. return rowStreetRow;
  2810. }
  2811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2813. public StreetRow FindByidStreet(int idStreet) {
  2814. return ((StreetRow)(this.Rows.Find(new object[] {
  2815. idStreet})));
  2816. }
  2817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2819. public override global::System.Data.DataTable Clone() {
  2820. StreetDataTable cln = ((StreetDataTable)(base.Clone()));
  2821. cln.InitVars();
  2822. return cln;
  2823. }
  2824. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2826. protected override global::System.Data.DataTable CreateInstance() {
  2827. return new StreetDataTable();
  2828. }
  2829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2831. internal void InitVars() {
  2832. this.columnidStreet = base.Columns["idStreet"];
  2833. this.columnStreet = base.Columns["Street"];
  2834. }
  2835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2837. private void InitClass() {
  2838. this.columnidStreet = new global::System.Data.DataColumn("idStreet", typeof(int), null, global::System.Data.MappingType.Element);
  2839. base.Columns.Add(this.columnidStreet);
  2840. this.columnStreet = new global::System.Data.DataColumn("Street", typeof(string), null, global::System.Data.MappingType.Element);
  2841. base.Columns.Add(this.columnStreet);
  2842. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  2843. this.columnidStreet}, true));
  2844. this.columnidStreet.AutoIncrement = true;
  2845. this.columnidStreet.AutoIncrementSeed = 1;
  2846. this.columnidStreet.AllowDBNull = false;
  2847. this.columnidStreet.ReadOnly = true;
  2848. this.columnidStreet.Unique = true;
  2849. this.columnStreet.MaxLength = 50;
  2850. }
  2851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2853. public StreetRow NewStreetRow() {
  2854. return ((StreetRow)(this.NewRow()));
  2855. }
  2856. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2857. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2858. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  2859. return new StreetRow(builder);
  2860. }
  2861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2863. protected override global::System.Type GetRowType() {
  2864. return typeof(StreetRow);
  2865. }
  2866. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2867. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2868. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  2869. base.OnRowChanged(e);
  2870. if ((this.StreetRowChanged != null)) {
  2871. this.StreetRowChanged(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  2872. }
  2873. }
  2874. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2875. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2876. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  2877. base.OnRowChanging(e);
  2878. if ((this.StreetRowChanging != null)) {
  2879. this.StreetRowChanging(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  2880. }
  2881. }
  2882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2884. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  2885. base.OnRowDeleted(e);
  2886. if ((this.StreetRowDeleted != null)) {
  2887. this.StreetRowDeleted(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  2888. }
  2889. }
  2890. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2891. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2892. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  2893. base.OnRowDeleting(e);
  2894. if ((this.StreetRowDeleting != null)) {
  2895. this.StreetRowDeleting(this, new StreetRowChangeEvent(((StreetRow)(e.Row)), e.Action));
  2896. }
  2897. }
  2898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2900. public void RemoveStreetRow(StreetRow row) {
  2901. this.Rows.Remove(row);
  2902. }
  2903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2905. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  2906. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  2907. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  2908. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  2909. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  2910. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  2911. any1.MinOccurs = new decimal(0);
  2912. any1.MaxOccurs = decimal.MaxValue;
  2913. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2914. sequence.Items.Add(any1);
  2915. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  2916. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  2917. any2.MinOccurs = new decimal(1);
  2918. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  2919. sequence.Items.Add(any2);
  2920. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2921. attribute1.Name = "namespace";
  2922. attribute1.FixedValue = ds.Namespace;
  2923. type.Attributes.Add(attribute1);
  2924. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  2925. attribute2.Name = "tableTypeName";
  2926. attribute2.FixedValue = "StreetDataTable";
  2927. type.Attributes.Add(attribute2);
  2928. type.Particle = sequence;
  2929. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  2930. if (xs.Contains(dsSchema.TargetNamespace)) {
  2931. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  2932. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  2933. try {
  2934. global::System.Xml.Schema.XmlSchema schema = null;
  2935. dsSchema.Write(s1);
  2936. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  2937. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  2938. s2.SetLength(0);
  2939. schema.Write(s2);
  2940. if ((s1.Length == s2.Length)) {
  2941. s1.Position = 0;
  2942. s2.Position = 0;
  2943. for (; ((s1.Position != s1.Length)
  2944. && (s1.ReadByte() == s2.ReadByte())); ) {
  2945. ;
  2946. }
  2947. if ((s1.Position == s1.Length)) {
  2948. return type;
  2949. }
  2950. }
  2951. }
  2952. }
  2953. finally {
  2954. if ((s1 != null)) {
  2955. s1.Close();
  2956. }
  2957. if ((s2 != null)) {
  2958. s2.Close();
  2959. }
  2960. }
  2961. }
  2962. xs.Add(dsSchema);
  2963. return type;
  2964. }
  2965. }
  2966. /// <summary>
  2967. ///Represents the strongly named DataTable class.
  2968. ///</summary>
  2969. [global::System.Serializable()]
  2970. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  2971. public partial class TypeMaterialDataTable : global::System.Data.TypedTableBase<TypeMaterialRow> {
  2972. private global::System.Data.DataColumn columnidTypeMaterial;
  2973. private global::System.Data.DataColumn columnTypeMaterial;
  2974. private global::System.Data.DataColumn columnPercentDefect;
  2975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2977. public TypeMaterialDataTable() {
  2978. this.TableName = "TypeMaterial";
  2979. this.BeginInit();
  2980. this.InitClass();
  2981. this.EndInit();
  2982. }
  2983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  2985. internal TypeMaterialDataTable(global::System.Data.DataTable table) {
  2986. this.TableName = table.TableName;
  2987. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  2988. this.CaseSensitive = table.CaseSensitive;
  2989. }
  2990. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  2991. this.Locale = table.Locale;
  2992. }
  2993. if ((table.Namespace != table.DataSet.Namespace)) {
  2994. this.Namespace = table.Namespace;
  2995. }
  2996. this.Prefix = table.Prefix;
  2997. this.MinimumCapacity = table.MinimumCapacity;
  2998. }
  2999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3001. protected TypeMaterialDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3002. base(info, context) {
  3003. this.InitVars();
  3004. }
  3005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3007. public global::System.Data.DataColumn idTypeMaterialColumn {
  3008. get {
  3009. return this.columnidTypeMaterial;
  3010. }
  3011. }
  3012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3014. public global::System.Data.DataColumn TypeMaterialColumn {
  3015. get {
  3016. return this.columnTypeMaterial;
  3017. }
  3018. }
  3019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3021. public global::System.Data.DataColumn PercentDefectColumn {
  3022. get {
  3023. return this.columnPercentDefect;
  3024. }
  3025. }
  3026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3028. [global::System.ComponentModel.Browsable(false)]
  3029. public int Count {
  3030. get {
  3031. return this.Rows.Count;
  3032. }
  3033. }
  3034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3036. public TypeMaterialRow this[int index] {
  3037. get {
  3038. return ((TypeMaterialRow)(this.Rows[index]));
  3039. }
  3040. }
  3041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3042. public event TypeMaterialRowChangeEventHandler TypeMaterialRowChanging;
  3043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3044. public event TypeMaterialRowChangeEventHandler TypeMaterialRowChanged;
  3045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3046. public event TypeMaterialRowChangeEventHandler TypeMaterialRowDeleting;
  3047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3048. public event TypeMaterialRowChangeEventHandler TypeMaterialRowDeleted;
  3049. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3050. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3051. public void AddTypeMaterialRow(TypeMaterialRow row) {
  3052. this.Rows.Add(row);
  3053. }
  3054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3056. public TypeMaterialRow AddTypeMaterialRow(string TypeMaterial, decimal PercentDefect) {
  3057. TypeMaterialRow rowTypeMaterialRow = ((TypeMaterialRow)(this.NewRow()));
  3058. object[] columnValuesArray = new object[] {
  3059. null,
  3060. TypeMaterial,
  3061. PercentDefect};
  3062. rowTypeMaterialRow.ItemArray = columnValuesArray;
  3063. this.Rows.Add(rowTypeMaterialRow);
  3064. return rowTypeMaterialRow;
  3065. }
  3066. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3067. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3068. public TypeMaterialRow FindByidTypeMaterial(int idTypeMaterial) {
  3069. return ((TypeMaterialRow)(this.Rows.Find(new object[] {
  3070. idTypeMaterial})));
  3071. }
  3072. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3073. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3074. public override global::System.Data.DataTable Clone() {
  3075. TypeMaterialDataTable cln = ((TypeMaterialDataTable)(base.Clone()));
  3076. cln.InitVars();
  3077. return cln;
  3078. }
  3079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3081. protected override global::System.Data.DataTable CreateInstance() {
  3082. return new TypeMaterialDataTable();
  3083. }
  3084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3086. internal void InitVars() {
  3087. this.columnidTypeMaterial = base.Columns["idTypeMaterial"];
  3088. this.columnTypeMaterial = base.Columns["TypeMaterial"];
  3089. this.columnPercentDefect = base.Columns["PercentDefect"];
  3090. }
  3091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3093. private void InitClass() {
  3094. this.columnidTypeMaterial = new global::System.Data.DataColumn("idTypeMaterial", typeof(int), null, global::System.Data.MappingType.Element);
  3095. base.Columns.Add(this.columnidTypeMaterial);
  3096. this.columnTypeMaterial = new global::System.Data.DataColumn("TypeMaterial", typeof(string), null, global::System.Data.MappingType.Element);
  3097. base.Columns.Add(this.columnTypeMaterial);
  3098. this.columnPercentDefect = new global::System.Data.DataColumn("PercentDefect", typeof(decimal), null, global::System.Data.MappingType.Element);
  3099. base.Columns.Add(this.columnPercentDefect);
  3100. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3101. this.columnidTypeMaterial}, true));
  3102. this.columnidTypeMaterial.AutoIncrement = true;
  3103. this.columnidTypeMaterial.AutoIncrementSeed = 1;
  3104. this.columnidTypeMaterial.AllowDBNull = false;
  3105. this.columnidTypeMaterial.ReadOnly = true;
  3106. this.columnidTypeMaterial.Unique = true;
  3107. this.columnTypeMaterial.MaxLength = 50;
  3108. }
  3109. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3110. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3111. public TypeMaterialRow NewTypeMaterialRow() {
  3112. return ((TypeMaterialRow)(this.NewRow()));
  3113. }
  3114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3115. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3116. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3117. return new TypeMaterialRow(builder);
  3118. }
  3119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3121. protected override global::System.Type GetRowType() {
  3122. return typeof(TypeMaterialRow);
  3123. }
  3124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3126. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3127. base.OnRowChanged(e);
  3128. if ((this.TypeMaterialRowChanged != null)) {
  3129. this.TypeMaterialRowChanged(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3130. }
  3131. }
  3132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3134. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3135. base.OnRowChanging(e);
  3136. if ((this.TypeMaterialRowChanging != null)) {
  3137. this.TypeMaterialRowChanging(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3138. }
  3139. }
  3140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3142. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3143. base.OnRowDeleted(e);
  3144. if ((this.TypeMaterialRowDeleted != null)) {
  3145. this.TypeMaterialRowDeleted(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3146. }
  3147. }
  3148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3150. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3151. base.OnRowDeleting(e);
  3152. if ((this.TypeMaterialRowDeleting != null)) {
  3153. this.TypeMaterialRowDeleting(this, new TypeMaterialRowChangeEvent(((TypeMaterialRow)(e.Row)), e.Action));
  3154. }
  3155. }
  3156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3158. public void RemoveTypeMaterialRow(TypeMaterialRow row) {
  3159. this.Rows.Remove(row);
  3160. }
  3161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3163. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3164. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3165. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3166. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  3167. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3168. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3169. any1.MinOccurs = new decimal(0);
  3170. any1.MaxOccurs = decimal.MaxValue;
  3171. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3172. sequence.Items.Add(any1);
  3173. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3174. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3175. any2.MinOccurs = new decimal(1);
  3176. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3177. sequence.Items.Add(any2);
  3178. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3179. attribute1.Name = "namespace";
  3180. attribute1.FixedValue = ds.Namespace;
  3181. type.Attributes.Add(attribute1);
  3182. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3183. attribute2.Name = "tableTypeName";
  3184. attribute2.FixedValue = "TypeMaterialDataTable";
  3185. type.Attributes.Add(attribute2);
  3186. type.Particle = sequence;
  3187. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3188. if (xs.Contains(dsSchema.TargetNamespace)) {
  3189. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3190. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3191. try {
  3192. global::System.Xml.Schema.XmlSchema schema = null;
  3193. dsSchema.Write(s1);
  3194. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3195. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3196. s2.SetLength(0);
  3197. schema.Write(s2);
  3198. if ((s1.Length == s2.Length)) {
  3199. s1.Position = 0;
  3200. s2.Position = 0;
  3201. for (; ((s1.Position != s1.Length)
  3202. && (s1.ReadByte() == s2.ReadByte())); ) {
  3203. ;
  3204. }
  3205. if ((s1.Position == s1.Length)) {
  3206. return type;
  3207. }
  3208. }
  3209. }
  3210. }
  3211. finally {
  3212. if ((s1 != null)) {
  3213. s1.Close();
  3214. }
  3215. if ((s2 != null)) {
  3216. s2.Close();
  3217. }
  3218. }
  3219. }
  3220. xs.Add(dsSchema);
  3221. return type;
  3222. }
  3223. }
  3224. /// <summary>
  3225. ///Represents the strongly named DataTable class.
  3226. ///</summary>
  3227. [global::System.Serializable()]
  3228. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3229. public partial class TypePartnerDataTable : global::System.Data.TypedTableBase<TypePartnerRow> {
  3230. private global::System.Data.DataColumn columnidTypePartner;
  3231. private global::System.Data.DataColumn columnType;
  3232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3234. public TypePartnerDataTable() {
  3235. this.TableName = "TypePartner";
  3236. this.BeginInit();
  3237. this.InitClass();
  3238. this.EndInit();
  3239. }
  3240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3241. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3242. internal TypePartnerDataTable(global::System.Data.DataTable table) {
  3243. this.TableName = table.TableName;
  3244. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3245. this.CaseSensitive = table.CaseSensitive;
  3246. }
  3247. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3248. this.Locale = table.Locale;
  3249. }
  3250. if ((table.Namespace != table.DataSet.Namespace)) {
  3251. this.Namespace = table.Namespace;
  3252. }
  3253. this.Prefix = table.Prefix;
  3254. this.MinimumCapacity = table.MinimumCapacity;
  3255. }
  3256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3257. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3258. protected TypePartnerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3259. base(info, context) {
  3260. this.InitVars();
  3261. }
  3262. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3263. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3264. public global::System.Data.DataColumn idTypePartnerColumn {
  3265. get {
  3266. return this.columnidTypePartner;
  3267. }
  3268. }
  3269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3271. public global::System.Data.DataColumn TypeColumn {
  3272. get {
  3273. return this.columnType;
  3274. }
  3275. }
  3276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3278. [global::System.ComponentModel.Browsable(false)]
  3279. public int Count {
  3280. get {
  3281. return this.Rows.Count;
  3282. }
  3283. }
  3284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3286. public TypePartnerRow this[int index] {
  3287. get {
  3288. return ((TypePartnerRow)(this.Rows[index]));
  3289. }
  3290. }
  3291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3292. public event TypePartnerRowChangeEventHandler TypePartnerRowChanging;
  3293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3294. public event TypePartnerRowChangeEventHandler TypePartnerRowChanged;
  3295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3296. public event TypePartnerRowChangeEventHandler TypePartnerRowDeleting;
  3297. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3298. public event TypePartnerRowChangeEventHandler TypePartnerRowDeleted;
  3299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3301. public void AddTypePartnerRow(TypePartnerRow row) {
  3302. this.Rows.Add(row);
  3303. }
  3304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3306. public TypePartnerRow AddTypePartnerRow(string Type) {
  3307. TypePartnerRow rowTypePartnerRow = ((TypePartnerRow)(this.NewRow()));
  3308. object[] columnValuesArray = new object[] {
  3309. null,
  3310. Type};
  3311. rowTypePartnerRow.ItemArray = columnValuesArray;
  3312. this.Rows.Add(rowTypePartnerRow);
  3313. return rowTypePartnerRow;
  3314. }
  3315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3317. public TypePartnerRow FindByidTypePartner(int idTypePartner) {
  3318. return ((TypePartnerRow)(this.Rows.Find(new object[] {
  3319. idTypePartner})));
  3320. }
  3321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3323. public override global::System.Data.DataTable Clone() {
  3324. TypePartnerDataTable cln = ((TypePartnerDataTable)(base.Clone()));
  3325. cln.InitVars();
  3326. return cln;
  3327. }
  3328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3330. protected override global::System.Data.DataTable CreateInstance() {
  3331. return new TypePartnerDataTable();
  3332. }
  3333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3335. internal void InitVars() {
  3336. this.columnidTypePartner = base.Columns["idTypePartner"];
  3337. this.columnType = base.Columns["Type"];
  3338. }
  3339. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3341. private void InitClass() {
  3342. this.columnidTypePartner = new global::System.Data.DataColumn("idTypePartner", typeof(int), null, global::System.Data.MappingType.Element);
  3343. base.Columns.Add(this.columnidTypePartner);
  3344. this.columnType = new global::System.Data.DataColumn("Type", typeof(string), null, global::System.Data.MappingType.Element);
  3345. base.Columns.Add(this.columnType);
  3346. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3347. this.columnidTypePartner}, true));
  3348. this.columnidTypePartner.AutoIncrement = true;
  3349. this.columnidTypePartner.AutoIncrementSeed = 1;
  3350. this.columnidTypePartner.AllowDBNull = false;
  3351. this.columnidTypePartner.ReadOnly = true;
  3352. this.columnidTypePartner.Unique = true;
  3353. this.columnType.MaxLength = 50;
  3354. }
  3355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3357. public TypePartnerRow NewTypePartnerRow() {
  3358. return ((TypePartnerRow)(this.NewRow()));
  3359. }
  3360. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3361. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3362. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3363. return new TypePartnerRow(builder);
  3364. }
  3365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3367. protected override global::System.Type GetRowType() {
  3368. return typeof(TypePartnerRow);
  3369. }
  3370. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3371. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3372. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3373. base.OnRowChanged(e);
  3374. if ((this.TypePartnerRowChanged != null)) {
  3375. this.TypePartnerRowChanged(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3376. }
  3377. }
  3378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3380. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3381. base.OnRowChanging(e);
  3382. if ((this.TypePartnerRowChanging != null)) {
  3383. this.TypePartnerRowChanging(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3384. }
  3385. }
  3386. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3388. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3389. base.OnRowDeleted(e);
  3390. if ((this.TypePartnerRowDeleted != null)) {
  3391. this.TypePartnerRowDeleted(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3392. }
  3393. }
  3394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3396. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3397. base.OnRowDeleting(e);
  3398. if ((this.TypePartnerRowDeleting != null)) {
  3399. this.TypePartnerRowDeleting(this, new TypePartnerRowChangeEvent(((TypePartnerRow)(e.Row)), e.Action));
  3400. }
  3401. }
  3402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3404. public void RemoveTypePartnerRow(TypePartnerRow row) {
  3405. this.Rows.Remove(row);
  3406. }
  3407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3409. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3410. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3411. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3412. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  3413. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3414. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3415. any1.MinOccurs = new decimal(0);
  3416. any1.MaxOccurs = decimal.MaxValue;
  3417. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3418. sequence.Items.Add(any1);
  3419. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3420. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3421. any2.MinOccurs = new decimal(1);
  3422. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3423. sequence.Items.Add(any2);
  3424. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3425. attribute1.Name = "namespace";
  3426. attribute1.FixedValue = ds.Namespace;
  3427. type.Attributes.Add(attribute1);
  3428. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3429. attribute2.Name = "tableTypeName";
  3430. attribute2.FixedValue = "TypePartnerDataTable";
  3431. type.Attributes.Add(attribute2);
  3432. type.Particle = sequence;
  3433. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3434. if (xs.Contains(dsSchema.TargetNamespace)) {
  3435. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3436. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3437. try {
  3438. global::System.Xml.Schema.XmlSchema schema = null;
  3439. dsSchema.Write(s1);
  3440. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3441. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3442. s2.SetLength(0);
  3443. schema.Write(s2);
  3444. if ((s1.Length == s2.Length)) {
  3445. s1.Position = 0;
  3446. s2.Position = 0;
  3447. for (; ((s1.Position != s1.Length)
  3448. && (s1.ReadByte() == s2.ReadByte())); ) {
  3449. ;
  3450. }
  3451. if ((s1.Position == s1.Length)) {
  3452. return type;
  3453. }
  3454. }
  3455. }
  3456. }
  3457. finally {
  3458. if ((s1 != null)) {
  3459. s1.Close();
  3460. }
  3461. if ((s2 != null)) {
  3462. s2.Close();
  3463. }
  3464. }
  3465. }
  3466. xs.Add(dsSchema);
  3467. return type;
  3468. }
  3469. }
  3470. /// <summary>
  3471. ///Represents the strongly named DataTable class.
  3472. ///</summary>
  3473. [global::System.Serializable()]
  3474. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3475. public partial class TypeProductDataTable : global::System.Data.TypedTableBase<TypeProductRow> {
  3476. private global::System.Data.DataColumn columnidTypeProduct;
  3477. private global::System.Data.DataColumn columnTypeProduct;
  3478. private global::System.Data.DataColumn columnCoefficient;
  3479. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3481. public TypeProductDataTable() {
  3482. this.TableName = "TypeProduct";
  3483. this.BeginInit();
  3484. this.InitClass();
  3485. this.EndInit();
  3486. }
  3487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3489. internal TypeProductDataTable(global::System.Data.DataTable table) {
  3490. this.TableName = table.TableName;
  3491. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3492. this.CaseSensitive = table.CaseSensitive;
  3493. }
  3494. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3495. this.Locale = table.Locale;
  3496. }
  3497. if ((table.Namespace != table.DataSet.Namespace)) {
  3498. this.Namespace = table.Namespace;
  3499. }
  3500. this.Prefix = table.Prefix;
  3501. this.MinimumCapacity = table.MinimumCapacity;
  3502. }
  3503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3505. protected TypeProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3506. base(info, context) {
  3507. this.InitVars();
  3508. }
  3509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3511. public global::System.Data.DataColumn idTypeProductColumn {
  3512. get {
  3513. return this.columnidTypeProduct;
  3514. }
  3515. }
  3516. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3517. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3518. public global::System.Data.DataColumn TypeProductColumn {
  3519. get {
  3520. return this.columnTypeProduct;
  3521. }
  3522. }
  3523. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3524. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3525. public global::System.Data.DataColumn CoefficientColumn {
  3526. get {
  3527. return this.columnCoefficient;
  3528. }
  3529. }
  3530. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3531. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3532. [global::System.ComponentModel.Browsable(false)]
  3533. public int Count {
  3534. get {
  3535. return this.Rows.Count;
  3536. }
  3537. }
  3538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3540. public TypeProductRow this[int index] {
  3541. get {
  3542. return ((TypeProductRow)(this.Rows[index]));
  3543. }
  3544. }
  3545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3546. public event TypeProductRowChangeEventHandler TypeProductRowChanging;
  3547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3548. public event TypeProductRowChangeEventHandler TypeProductRowChanged;
  3549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3550. public event TypeProductRowChangeEventHandler TypeProductRowDeleting;
  3551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3552. public event TypeProductRowChangeEventHandler TypeProductRowDeleted;
  3553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3555. public void AddTypeProductRow(TypeProductRow row) {
  3556. this.Rows.Add(row);
  3557. }
  3558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3560. public TypeProductRow AddTypeProductRow(string TypeProduct, double Coefficient) {
  3561. TypeProductRow rowTypeProductRow = ((TypeProductRow)(this.NewRow()));
  3562. object[] columnValuesArray = new object[] {
  3563. null,
  3564. TypeProduct,
  3565. Coefficient};
  3566. rowTypeProductRow.ItemArray = columnValuesArray;
  3567. this.Rows.Add(rowTypeProductRow);
  3568. return rowTypeProductRow;
  3569. }
  3570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3572. public TypeProductRow FindByidTypeProduct(int idTypeProduct) {
  3573. return ((TypeProductRow)(this.Rows.Find(new object[] {
  3574. idTypeProduct})));
  3575. }
  3576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3578. public override global::System.Data.DataTable Clone() {
  3579. TypeProductDataTable cln = ((TypeProductDataTable)(base.Clone()));
  3580. cln.InitVars();
  3581. return cln;
  3582. }
  3583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3585. protected override global::System.Data.DataTable CreateInstance() {
  3586. return new TypeProductDataTable();
  3587. }
  3588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3590. internal void InitVars() {
  3591. this.columnidTypeProduct = base.Columns["idTypeProduct"];
  3592. this.columnTypeProduct = base.Columns["TypeProduct"];
  3593. this.columnCoefficient = base.Columns["Coefficient"];
  3594. }
  3595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3597. private void InitClass() {
  3598. this.columnidTypeProduct = new global::System.Data.DataColumn("idTypeProduct", typeof(int), null, global::System.Data.MappingType.Element);
  3599. base.Columns.Add(this.columnidTypeProduct);
  3600. this.columnTypeProduct = new global::System.Data.DataColumn("TypeProduct", typeof(string), null, global::System.Data.MappingType.Element);
  3601. base.Columns.Add(this.columnTypeProduct);
  3602. this.columnCoefficient = new global::System.Data.DataColumn("Coefficient", typeof(double), null, global::System.Data.MappingType.Element);
  3603. base.Columns.Add(this.columnCoefficient);
  3604. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  3605. this.columnidTypeProduct}, true));
  3606. this.columnidTypeProduct.AutoIncrement = true;
  3607. this.columnidTypeProduct.AutoIncrementSeed = 1;
  3608. this.columnidTypeProduct.AllowDBNull = false;
  3609. this.columnidTypeProduct.ReadOnly = true;
  3610. this.columnidTypeProduct.Unique = true;
  3611. this.columnTypeProduct.MaxLength = 50;
  3612. }
  3613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3615. public TypeProductRow NewTypeProductRow() {
  3616. return ((TypeProductRow)(this.NewRow()));
  3617. }
  3618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3620. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3621. return new TypeProductRow(builder);
  3622. }
  3623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3625. protected override global::System.Type GetRowType() {
  3626. return typeof(TypeProductRow);
  3627. }
  3628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3630. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3631. base.OnRowChanged(e);
  3632. if ((this.TypeProductRowChanged != null)) {
  3633. this.TypeProductRowChanged(this, new TypeProductRowChangeEvent(((TypeProductRow)(e.Row)), e.Action));
  3634. }
  3635. }
  3636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3637. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3638. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3639. base.OnRowChanging(e);
  3640. if ((this.TypeProductRowChanging != null)) {
  3641. this.TypeProductRowChanging(this, new TypeProductRowChangeEvent(((TypeProductRow)(e.Row)), e.Action));
  3642. }
  3643. }
  3644. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3645. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3646. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3647. base.OnRowDeleted(e);
  3648. if ((this.TypeProductRowDeleted != null)) {
  3649. this.TypeProductRowDeleted(this, new TypeProductRowChangeEvent(((TypeProductRow)(e.Row)), e.Action));
  3650. }
  3651. }
  3652. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3653. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3654. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3655. base.OnRowDeleting(e);
  3656. if ((this.TypeProductRowDeleting != null)) {
  3657. this.TypeProductRowDeleting(this, new TypeProductRowChangeEvent(((TypeProductRow)(e.Row)), e.Action));
  3658. }
  3659. }
  3660. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3661. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3662. public void RemoveTypeProductRow(TypeProductRow row) {
  3663. this.Rows.Remove(row);
  3664. }
  3665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3667. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3668. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3669. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3670. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  3671. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3672. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3673. any1.MinOccurs = new decimal(0);
  3674. any1.MaxOccurs = decimal.MaxValue;
  3675. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3676. sequence.Items.Add(any1);
  3677. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3678. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3679. any2.MinOccurs = new decimal(1);
  3680. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3681. sequence.Items.Add(any2);
  3682. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3683. attribute1.Name = "namespace";
  3684. attribute1.FixedValue = ds.Namespace;
  3685. type.Attributes.Add(attribute1);
  3686. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3687. attribute2.Name = "tableTypeName";
  3688. attribute2.FixedValue = "TypeProductDataTable";
  3689. type.Attributes.Add(attribute2);
  3690. type.Particle = sequence;
  3691. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3692. if (xs.Contains(dsSchema.TargetNamespace)) {
  3693. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3694. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3695. try {
  3696. global::System.Xml.Schema.XmlSchema schema = null;
  3697. dsSchema.Write(s1);
  3698. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3699. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3700. s2.SetLength(0);
  3701. schema.Write(s2);
  3702. if ((s1.Length == s2.Length)) {
  3703. s1.Position = 0;
  3704. s2.Position = 0;
  3705. for (; ((s1.Position != s1.Length)
  3706. && (s1.ReadByte() == s2.ReadByte())); ) {
  3707. ;
  3708. }
  3709. if ((s1.Position == s1.Length)) {
  3710. return type;
  3711. }
  3712. }
  3713. }
  3714. }
  3715. finally {
  3716. if ((s1 != null)) {
  3717. s1.Close();
  3718. }
  3719. if ((s2 != null)) {
  3720. s2.Close();
  3721. }
  3722. }
  3723. }
  3724. xs.Add(dsSchema);
  3725. return type;
  3726. }
  3727. }
  3728. /// <summary>
  3729. ///Represents the strongly named DataTable class.
  3730. ///</summary>
  3731. [global::System.Serializable()]
  3732. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3733. public partial class TypeForFilterDataTable : global::System.Data.TypedTableBase<TypeForFilterRow> {
  3734. private global::System.Data.DataColumn columnType;
  3735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3737. public TypeForFilterDataTable() {
  3738. this.TableName = "TypeForFilter";
  3739. this.BeginInit();
  3740. this.InitClass();
  3741. this.EndInit();
  3742. }
  3743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3745. internal TypeForFilterDataTable(global::System.Data.DataTable table) {
  3746. this.TableName = table.TableName;
  3747. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3748. this.CaseSensitive = table.CaseSensitive;
  3749. }
  3750. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3751. this.Locale = table.Locale;
  3752. }
  3753. if ((table.Namespace != table.DataSet.Namespace)) {
  3754. this.Namespace = table.Namespace;
  3755. }
  3756. this.Prefix = table.Prefix;
  3757. this.MinimumCapacity = table.MinimumCapacity;
  3758. }
  3759. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3760. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3761. protected TypeForFilterDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3762. base(info, context) {
  3763. this.InitVars();
  3764. }
  3765. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3767. public global::System.Data.DataColumn TypeColumn {
  3768. get {
  3769. return this.columnType;
  3770. }
  3771. }
  3772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3774. [global::System.ComponentModel.Browsable(false)]
  3775. public int Count {
  3776. get {
  3777. return this.Rows.Count;
  3778. }
  3779. }
  3780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3782. public TypeForFilterRow this[int index] {
  3783. get {
  3784. return ((TypeForFilterRow)(this.Rows[index]));
  3785. }
  3786. }
  3787. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3788. public event TypeForFilterRowChangeEventHandler TypeForFilterRowChanging;
  3789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3790. public event TypeForFilterRowChangeEventHandler TypeForFilterRowChanged;
  3791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3792. public event TypeForFilterRowChangeEventHandler TypeForFilterRowDeleting;
  3793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3794. public event TypeForFilterRowChangeEventHandler TypeForFilterRowDeleted;
  3795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3797. public void AddTypeForFilterRow(TypeForFilterRow row) {
  3798. this.Rows.Add(row);
  3799. }
  3800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3802. public TypeForFilterRow AddTypeForFilterRow(string Type) {
  3803. TypeForFilterRow rowTypeForFilterRow = ((TypeForFilterRow)(this.NewRow()));
  3804. object[] columnValuesArray = new object[] {
  3805. Type};
  3806. rowTypeForFilterRow.ItemArray = columnValuesArray;
  3807. this.Rows.Add(rowTypeForFilterRow);
  3808. return rowTypeForFilterRow;
  3809. }
  3810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3812. public override global::System.Data.DataTable Clone() {
  3813. TypeForFilterDataTable cln = ((TypeForFilterDataTable)(base.Clone()));
  3814. cln.InitVars();
  3815. return cln;
  3816. }
  3817. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3818. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3819. protected override global::System.Data.DataTable CreateInstance() {
  3820. return new TypeForFilterDataTable();
  3821. }
  3822. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3823. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3824. internal void InitVars() {
  3825. this.columnType = base.Columns["Type"];
  3826. }
  3827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3829. private void InitClass() {
  3830. this.columnType = new global::System.Data.DataColumn("Type", typeof(string), null, global::System.Data.MappingType.Element);
  3831. base.Columns.Add(this.columnType);
  3832. this.columnType.ReadOnly = true;
  3833. this.columnType.Caption = "Column1";
  3834. this.columnType.MaxLength = 50;
  3835. }
  3836. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3838. public TypeForFilterRow NewTypeForFilterRow() {
  3839. return ((TypeForFilterRow)(this.NewRow()));
  3840. }
  3841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3843. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  3844. return new TypeForFilterRow(builder);
  3845. }
  3846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3848. protected override global::System.Type GetRowType() {
  3849. return typeof(TypeForFilterRow);
  3850. }
  3851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3853. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  3854. base.OnRowChanged(e);
  3855. if ((this.TypeForFilterRowChanged != null)) {
  3856. this.TypeForFilterRowChanged(this, new TypeForFilterRowChangeEvent(((TypeForFilterRow)(e.Row)), e.Action));
  3857. }
  3858. }
  3859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3861. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  3862. base.OnRowChanging(e);
  3863. if ((this.TypeForFilterRowChanging != null)) {
  3864. this.TypeForFilterRowChanging(this, new TypeForFilterRowChangeEvent(((TypeForFilterRow)(e.Row)), e.Action));
  3865. }
  3866. }
  3867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3869. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  3870. base.OnRowDeleted(e);
  3871. if ((this.TypeForFilterRowDeleted != null)) {
  3872. this.TypeForFilterRowDeleted(this, new TypeForFilterRowChangeEvent(((TypeForFilterRow)(e.Row)), e.Action));
  3873. }
  3874. }
  3875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3877. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  3878. base.OnRowDeleting(e);
  3879. if ((this.TypeForFilterRowDeleting != null)) {
  3880. this.TypeForFilterRowDeleting(this, new TypeForFilterRowChangeEvent(((TypeForFilterRow)(e.Row)), e.Action));
  3881. }
  3882. }
  3883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3885. public void RemoveTypeForFilterRow(TypeForFilterRow row) {
  3886. this.Rows.Remove(row);
  3887. }
  3888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3890. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  3891. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  3892. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  3893. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  3894. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  3895. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  3896. any1.MinOccurs = new decimal(0);
  3897. any1.MaxOccurs = decimal.MaxValue;
  3898. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3899. sequence.Items.Add(any1);
  3900. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  3901. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  3902. any2.MinOccurs = new decimal(1);
  3903. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  3904. sequence.Items.Add(any2);
  3905. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3906. attribute1.Name = "namespace";
  3907. attribute1.FixedValue = ds.Namespace;
  3908. type.Attributes.Add(attribute1);
  3909. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  3910. attribute2.Name = "tableTypeName";
  3911. attribute2.FixedValue = "TypeForFilterDataTable";
  3912. type.Attributes.Add(attribute2);
  3913. type.Particle = sequence;
  3914. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  3915. if (xs.Contains(dsSchema.TargetNamespace)) {
  3916. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  3917. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  3918. try {
  3919. global::System.Xml.Schema.XmlSchema schema = null;
  3920. dsSchema.Write(s1);
  3921. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  3922. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  3923. s2.SetLength(0);
  3924. schema.Write(s2);
  3925. if ((s1.Length == s2.Length)) {
  3926. s1.Position = 0;
  3927. s2.Position = 0;
  3928. for (; ((s1.Position != s1.Length)
  3929. && (s1.ReadByte() == s2.ReadByte())); ) {
  3930. ;
  3931. }
  3932. if ((s1.Position == s1.Length)) {
  3933. return type;
  3934. }
  3935. }
  3936. }
  3937. }
  3938. finally {
  3939. if ((s1 != null)) {
  3940. s1.Close();
  3941. }
  3942. if ((s2 != null)) {
  3943. s2.Close();
  3944. }
  3945. }
  3946. }
  3947. xs.Add(dsSchema);
  3948. return type;
  3949. }
  3950. }
  3951. /// <summary>
  3952. ///Represents the strongly named DataTable class.
  3953. ///</summary>
  3954. [global::System.Serializable()]
  3955. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  3956. public partial class HistorySaleDataTable : global::System.Data.TypedTableBase<HistorySaleRow> {
  3957. private global::System.Data.DataColumn columnidPartner;
  3958. private global::System.Data.DataColumn columnNameProduct;
  3959. private global::System.Data.DataColumn columnCountProduct;
  3960. private global::System.Data.DataColumn columnDateSale;
  3961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3963. public HistorySaleDataTable() {
  3964. this.TableName = "HistorySale";
  3965. this.BeginInit();
  3966. this.InitClass();
  3967. this.EndInit();
  3968. }
  3969. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3971. internal HistorySaleDataTable(global::System.Data.DataTable table) {
  3972. this.TableName = table.TableName;
  3973. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  3974. this.CaseSensitive = table.CaseSensitive;
  3975. }
  3976. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  3977. this.Locale = table.Locale;
  3978. }
  3979. if ((table.Namespace != table.DataSet.Namespace)) {
  3980. this.Namespace = table.Namespace;
  3981. }
  3982. this.Prefix = table.Prefix;
  3983. this.MinimumCapacity = table.MinimumCapacity;
  3984. }
  3985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3987. protected HistorySaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  3988. base(info, context) {
  3989. this.InitVars();
  3990. }
  3991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  3993. public global::System.Data.DataColumn idPartnerColumn {
  3994. get {
  3995. return this.columnidPartner;
  3996. }
  3997. }
  3998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4000. public global::System.Data.DataColumn NameProductColumn {
  4001. get {
  4002. return this.columnNameProduct;
  4003. }
  4004. }
  4005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4007. public global::System.Data.DataColumn CountProductColumn {
  4008. get {
  4009. return this.columnCountProduct;
  4010. }
  4011. }
  4012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4014. public global::System.Data.DataColumn DateSaleColumn {
  4015. get {
  4016. return this.columnDateSale;
  4017. }
  4018. }
  4019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4021. [global::System.ComponentModel.Browsable(false)]
  4022. public int Count {
  4023. get {
  4024. return this.Rows.Count;
  4025. }
  4026. }
  4027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4029. public HistorySaleRow this[int index] {
  4030. get {
  4031. return ((HistorySaleRow)(this.Rows[index]));
  4032. }
  4033. }
  4034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4035. public event HistorySaleRowChangeEventHandler HistorySaleRowChanging;
  4036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4037. public event HistorySaleRowChangeEventHandler HistorySaleRowChanged;
  4038. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4039. public event HistorySaleRowChangeEventHandler HistorySaleRowDeleting;
  4040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4041. public event HistorySaleRowChangeEventHandler HistorySaleRowDeleted;
  4042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4044. public void AddHistorySaleRow(HistorySaleRow row) {
  4045. this.Rows.Add(row);
  4046. }
  4047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4048. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4049. public HistorySaleRow AddHistorySaleRow(PartnerRow parentPartnerRowByFK_ProductPartner_Partner1, string NameProduct, int CountProduct, System.DateTime DateSale) {
  4050. HistorySaleRow rowHistorySaleRow = ((HistorySaleRow)(this.NewRow()));
  4051. object[] columnValuesArray = new object[] {
  4052. null,
  4053. NameProduct,
  4054. CountProduct,
  4055. DateSale};
  4056. if ((parentPartnerRowByFK_ProductPartner_Partner1 != null)) {
  4057. columnValuesArray[0] = parentPartnerRowByFK_ProductPartner_Partner1[0];
  4058. }
  4059. rowHistorySaleRow.ItemArray = columnValuesArray;
  4060. this.Rows.Add(rowHistorySaleRow);
  4061. return rowHistorySaleRow;
  4062. }
  4063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4065. public override global::System.Data.DataTable Clone() {
  4066. HistorySaleDataTable cln = ((HistorySaleDataTable)(base.Clone()));
  4067. cln.InitVars();
  4068. return cln;
  4069. }
  4070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4072. protected override global::System.Data.DataTable CreateInstance() {
  4073. return new HistorySaleDataTable();
  4074. }
  4075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4077. internal void InitVars() {
  4078. this.columnidPartner = base.Columns["idPartner"];
  4079. this.columnNameProduct = base.Columns["NameProduct"];
  4080. this.columnCountProduct = base.Columns["CountProduct"];
  4081. this.columnDateSale = base.Columns["DateSale"];
  4082. }
  4083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4085. private void InitClass() {
  4086. this.columnidPartner = new global::System.Data.DataColumn("idPartner", typeof(int), null, global::System.Data.MappingType.Element);
  4087. base.Columns.Add(this.columnidPartner);
  4088. this.columnNameProduct = new global::System.Data.DataColumn("NameProduct", typeof(string), null, global::System.Data.MappingType.Element);
  4089. base.Columns.Add(this.columnNameProduct);
  4090. this.columnCountProduct = new global::System.Data.DataColumn("CountProduct", typeof(int), null, global::System.Data.MappingType.Element);
  4091. base.Columns.Add(this.columnCountProduct);
  4092. this.columnDateSale = new global::System.Data.DataColumn("DateSale", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  4093. base.Columns.Add(this.columnDateSale);
  4094. this.columnNameProduct.MaxLength = 2147483647;
  4095. }
  4096. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4097. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4098. public HistorySaleRow NewHistorySaleRow() {
  4099. return ((HistorySaleRow)(this.NewRow()));
  4100. }
  4101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4103. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  4104. return new HistorySaleRow(builder);
  4105. }
  4106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4108. protected override global::System.Type GetRowType() {
  4109. return typeof(HistorySaleRow);
  4110. }
  4111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4113. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  4114. base.OnRowChanged(e);
  4115. if ((this.HistorySaleRowChanged != null)) {
  4116. this.HistorySaleRowChanged(this, new HistorySaleRowChangeEvent(((HistorySaleRow)(e.Row)), e.Action));
  4117. }
  4118. }
  4119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4121. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  4122. base.OnRowChanging(e);
  4123. if ((this.HistorySaleRowChanging != null)) {
  4124. this.HistorySaleRowChanging(this, new HistorySaleRowChangeEvent(((HistorySaleRow)(e.Row)), e.Action));
  4125. }
  4126. }
  4127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4129. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  4130. base.OnRowDeleted(e);
  4131. if ((this.HistorySaleRowDeleted != null)) {
  4132. this.HistorySaleRowDeleted(this, new HistorySaleRowChangeEvent(((HistorySaleRow)(e.Row)), e.Action));
  4133. }
  4134. }
  4135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4136. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4137. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  4138. base.OnRowDeleting(e);
  4139. if ((this.HistorySaleRowDeleting != null)) {
  4140. this.HistorySaleRowDeleting(this, new HistorySaleRowChangeEvent(((HistorySaleRow)(e.Row)), e.Action));
  4141. }
  4142. }
  4143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4145. public void RemoveHistorySaleRow(HistorySaleRow row) {
  4146. this.Rows.Remove(row);
  4147. }
  4148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4150. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  4151. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  4152. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  4153. dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
  4154. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  4155. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  4156. any1.MinOccurs = new decimal(0);
  4157. any1.MaxOccurs = decimal.MaxValue;
  4158. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4159. sequence.Items.Add(any1);
  4160. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  4161. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  4162. any2.MinOccurs = new decimal(1);
  4163. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  4164. sequence.Items.Add(any2);
  4165. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4166. attribute1.Name = "namespace";
  4167. attribute1.FixedValue = ds.Namespace;
  4168. type.Attributes.Add(attribute1);
  4169. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  4170. attribute2.Name = "tableTypeName";
  4171. attribute2.FixedValue = "HistorySaleDataTable";
  4172. type.Attributes.Add(attribute2);
  4173. type.Particle = sequence;
  4174. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  4175. if (xs.Contains(dsSchema.TargetNamespace)) {
  4176. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  4177. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  4178. try {
  4179. global::System.Xml.Schema.XmlSchema schema = null;
  4180. dsSchema.Write(s1);
  4181. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  4182. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  4183. s2.SetLength(0);
  4184. schema.Write(s2);
  4185. if ((s1.Length == s2.Length)) {
  4186. s1.Position = 0;
  4187. s2.Position = 0;
  4188. for (; ((s1.Position != s1.Length)
  4189. && (s1.ReadByte() == s2.ReadByte())); ) {
  4190. ;
  4191. }
  4192. if ((s1.Position == s1.Length)) {
  4193. return type;
  4194. }
  4195. }
  4196. }
  4197. }
  4198. finally {
  4199. if ((s1 != null)) {
  4200. s1.Close();
  4201. }
  4202. if ((s2 != null)) {
  4203. s2.Close();
  4204. }
  4205. }
  4206. }
  4207. xs.Add(dsSchema);
  4208. return type;
  4209. }
  4210. }
  4211. /// <summary>
  4212. ///Represents strongly named DataRow class.
  4213. ///</summary>
  4214. public partial class CityRow : global::System.Data.DataRow {
  4215. private CityDataTable tableCity;
  4216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4218. internal CityRow(global::System.Data.DataRowBuilder rb) :
  4219. base(rb) {
  4220. this.tableCity = ((CityDataTable)(this.Table));
  4221. }
  4222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4224. public int idCity {
  4225. get {
  4226. return ((int)(this[this.tableCity.idCityColumn]));
  4227. }
  4228. set {
  4229. this[this.tableCity.idCityColumn] = value;
  4230. }
  4231. }
  4232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4234. public string City {
  4235. get {
  4236. try {
  4237. return ((string)(this[this.tableCity.CityColumn]));
  4238. }
  4239. catch (global::System.InvalidCastException e) {
  4240. throw new global::System.Data.StrongTypingException("The value for column \'City\' in table \'City\' is DBNull.", e);
  4241. }
  4242. }
  4243. set {
  4244. this[this.tableCity.CityColumn] = value;
  4245. }
  4246. }
  4247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4249. public bool IsCityNull() {
  4250. return this.IsNull(this.tableCity.CityColumn);
  4251. }
  4252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4254. public void SetCityNull() {
  4255. this[this.tableCity.CityColumn] = global::System.Convert.DBNull;
  4256. }
  4257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4259. public PartnerRow[] GetPartnerRows() {
  4260. if ((this.Table.ChildRelations["FK_Partner_City"] == null)) {
  4261. return new PartnerRow[0];
  4262. }
  4263. else {
  4264. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_City"])));
  4265. }
  4266. }
  4267. }
  4268. /// <summary>
  4269. ///Represents strongly named DataRow class.
  4270. ///</summary>
  4271. public partial class IndexPartnerRow : global::System.Data.DataRow {
  4272. private IndexPartnerDataTable tableIndexPartner;
  4273. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4275. internal IndexPartnerRow(global::System.Data.DataRowBuilder rb) :
  4276. base(rb) {
  4277. this.tableIndexPartner = ((IndexPartnerDataTable)(this.Table));
  4278. }
  4279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4281. public int idIndex {
  4282. get {
  4283. return ((int)(this[this.tableIndexPartner.idIndexColumn]));
  4284. }
  4285. set {
  4286. this[this.tableIndexPartner.idIndexColumn] = value;
  4287. }
  4288. }
  4289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4291. public string CodePartner {
  4292. get {
  4293. try {
  4294. return ((string)(this[this.tableIndexPartner.CodePartnerColumn]));
  4295. }
  4296. catch (global::System.InvalidCastException e) {
  4297. throw new global::System.Data.StrongTypingException("The value for column \'CodePartner\' in table \'IndexPartner\' is DBNull.", e);
  4298. }
  4299. }
  4300. set {
  4301. this[this.tableIndexPartner.CodePartnerColumn] = value;
  4302. }
  4303. }
  4304. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4306. public bool IsCodePartnerNull() {
  4307. return this.IsNull(this.tableIndexPartner.CodePartnerColumn);
  4308. }
  4309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4311. public void SetCodePartnerNull() {
  4312. this[this.tableIndexPartner.CodePartnerColumn] = global::System.Convert.DBNull;
  4313. }
  4314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4316. public PartnerRow[] GetPartnerRows() {
  4317. if ((this.Table.ChildRelations["FK_Partner_IndexPartner"] == null)) {
  4318. return new PartnerRow[0];
  4319. }
  4320. else {
  4321. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_IndexPartner"])));
  4322. }
  4323. }
  4324. }
  4325. /// <summary>
  4326. ///Represents strongly named DataRow class.
  4327. ///</summary>
  4328. public partial class ManagerRow : global::System.Data.DataRow {
  4329. private ManagerDataTable tableManager;
  4330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4331. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4332. internal ManagerRow(global::System.Data.DataRowBuilder rb) :
  4333. base(rb) {
  4334. this.tableManager = ((ManagerDataTable)(this.Table));
  4335. }
  4336. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4337. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4338. public int idManager {
  4339. get {
  4340. return ((int)(this[this.tableManager.idManagerColumn]));
  4341. }
  4342. set {
  4343. this[this.tableManager.idManagerColumn] = value;
  4344. }
  4345. }
  4346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4348. public string Surname {
  4349. get {
  4350. try {
  4351. return ((string)(this[this.tableManager.SurnameColumn]));
  4352. }
  4353. catch (global::System.InvalidCastException e) {
  4354. throw new global::System.Data.StrongTypingException("The value for column \'Surname\' in table \'Manager\' is DBNull.", e);
  4355. }
  4356. }
  4357. set {
  4358. this[this.tableManager.SurnameColumn] = value;
  4359. }
  4360. }
  4361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4363. public string Name {
  4364. get {
  4365. try {
  4366. return ((string)(this[this.tableManager.NameColumn]));
  4367. }
  4368. catch (global::System.InvalidCastException e) {
  4369. throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Manager\' is DBNull.", e);
  4370. }
  4371. }
  4372. set {
  4373. this[this.tableManager.NameColumn] = value;
  4374. }
  4375. }
  4376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4378. public string Patronymic {
  4379. get {
  4380. try {
  4381. return ((string)(this[this.tableManager.PatronymicColumn]));
  4382. }
  4383. catch (global::System.InvalidCastException e) {
  4384. throw new global::System.Data.StrongTypingException("The value for column \'Patronymic\' in table \'Manager\' is DBNull.", e);
  4385. }
  4386. }
  4387. set {
  4388. this[this.tableManager.PatronymicColumn] = value;
  4389. }
  4390. }
  4391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4393. public string Login {
  4394. get {
  4395. try {
  4396. return ((string)(this[this.tableManager.LoginColumn]));
  4397. }
  4398. catch (global::System.InvalidCastException e) {
  4399. throw new global::System.Data.StrongTypingException("The value for column \'Login\' in table \'Manager\' is DBNull.", e);
  4400. }
  4401. }
  4402. set {
  4403. this[this.tableManager.LoginColumn] = value;
  4404. }
  4405. }
  4406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4408. public string Password {
  4409. get {
  4410. try {
  4411. return ((string)(this[this.tableManager.PasswordColumn]));
  4412. }
  4413. catch (global::System.InvalidCastException e) {
  4414. throw new global::System.Data.StrongTypingException("The value for column \'Password\' in table \'Manager\' is DBNull.", e);
  4415. }
  4416. }
  4417. set {
  4418. this[this.tableManager.PasswordColumn] = value;
  4419. }
  4420. }
  4421. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4422. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4423. public string Photo {
  4424. get {
  4425. try {
  4426. return ((string)(this[this.tableManager.PhotoColumn]));
  4427. }
  4428. catch (global::System.InvalidCastException e) {
  4429. throw new global::System.Data.StrongTypingException("The value for column \'Photo\' in table \'Manager\' is DBNull.", e);
  4430. }
  4431. }
  4432. set {
  4433. this[this.tableManager.PhotoColumn] = value;
  4434. }
  4435. }
  4436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4438. public bool IsSurnameNull() {
  4439. return this.IsNull(this.tableManager.SurnameColumn);
  4440. }
  4441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4442. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4443. public void SetSurnameNull() {
  4444. this[this.tableManager.SurnameColumn] = global::System.Convert.DBNull;
  4445. }
  4446. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4447. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4448. public bool IsNameNull() {
  4449. return this.IsNull(this.tableManager.NameColumn);
  4450. }
  4451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4453. public void SetNameNull() {
  4454. this[this.tableManager.NameColumn] = global::System.Convert.DBNull;
  4455. }
  4456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4458. public bool IsPatronymicNull() {
  4459. return this.IsNull(this.tableManager.PatronymicColumn);
  4460. }
  4461. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4462. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4463. public void SetPatronymicNull() {
  4464. this[this.tableManager.PatronymicColumn] = global::System.Convert.DBNull;
  4465. }
  4466. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4468. public bool IsLoginNull() {
  4469. return this.IsNull(this.tableManager.LoginColumn);
  4470. }
  4471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4473. public void SetLoginNull() {
  4474. this[this.tableManager.LoginColumn] = global::System.Convert.DBNull;
  4475. }
  4476. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4477. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4478. public bool IsPasswordNull() {
  4479. return this.IsNull(this.tableManager.PasswordColumn);
  4480. }
  4481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4483. public void SetPasswordNull() {
  4484. this[this.tableManager.PasswordColumn] = global::System.Convert.DBNull;
  4485. }
  4486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4487. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4488. public bool IsPhotoNull() {
  4489. return this.IsNull(this.tableManager.PhotoColumn);
  4490. }
  4491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4493. public void SetPhotoNull() {
  4494. this[this.tableManager.PhotoColumn] = global::System.Convert.DBNull;
  4495. }
  4496. }
  4497. /// <summary>
  4498. ///Represents strongly named DataRow class.
  4499. ///</summary>
  4500. public partial class PartnerRow : global::System.Data.DataRow {
  4501. private PartnerDataTable tablePartner;
  4502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4504. internal PartnerRow(global::System.Data.DataRowBuilder rb) :
  4505. base(rb) {
  4506. this.tablePartner = ((PartnerDataTable)(this.Table));
  4507. }
  4508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4510. public int idPartner {
  4511. get {
  4512. return ((int)(this[this.tablePartner.idPartnerColumn]));
  4513. }
  4514. set {
  4515. this[this.tablePartner.idPartnerColumn] = value;
  4516. }
  4517. }
  4518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4520. public string Surname {
  4521. get {
  4522. try {
  4523. return ((string)(this[this.tablePartner.SurnameColumn]));
  4524. }
  4525. catch (global::System.InvalidCastException e) {
  4526. throw new global::System.Data.StrongTypingException("The value for column \'Surname\' in table \'Partner\' is DBNull.", e);
  4527. }
  4528. }
  4529. set {
  4530. this[this.tablePartner.SurnameColumn] = value;
  4531. }
  4532. }
  4533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4535. public string Name {
  4536. get {
  4537. try {
  4538. return ((string)(this[this.tablePartner.NameColumn]));
  4539. }
  4540. catch (global::System.InvalidCastException e) {
  4541. throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Partner\' is DBNull.", e);
  4542. }
  4543. }
  4544. set {
  4545. this[this.tablePartner.NameColumn] = value;
  4546. }
  4547. }
  4548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4550. public string Patronymic {
  4551. get {
  4552. try {
  4553. return ((string)(this[this.tablePartner.PatronymicColumn]));
  4554. }
  4555. catch (global::System.InvalidCastException e) {
  4556. throw new global::System.Data.StrongTypingException("The value for column \'Patronymic\' in table \'Partner\' is DBNull.", e);
  4557. }
  4558. }
  4559. set {
  4560. this[this.tablePartner.PatronymicColumn] = value;
  4561. }
  4562. }
  4563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4565. public string Email {
  4566. get {
  4567. try {
  4568. return ((string)(this[this.tablePartner.EmailColumn]));
  4569. }
  4570. catch (global::System.InvalidCastException e) {
  4571. throw new global::System.Data.StrongTypingException("The value for column \'Email\' in table \'Partner\' is DBNull.", e);
  4572. }
  4573. }
  4574. set {
  4575. this[this.tablePartner.EmailColumn] = value;
  4576. }
  4577. }
  4578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4580. public string Phone {
  4581. get {
  4582. try {
  4583. return ((string)(this[this.tablePartner.PhoneColumn]));
  4584. }
  4585. catch (global::System.InvalidCastException e) {
  4586. throw new global::System.Data.StrongTypingException("The value for column \'Phone\' in table \'Partner\' is DBNull.", e);
  4587. }
  4588. }
  4589. set {
  4590. this[this.tablePartner.PhoneColumn] = value;
  4591. }
  4592. }
  4593. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4594. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4595. public int idIndex {
  4596. get {
  4597. try {
  4598. return ((int)(this[this.tablePartner.idIndexColumn]));
  4599. }
  4600. catch (global::System.InvalidCastException e) {
  4601. throw new global::System.Data.StrongTypingException("The value for column \'idIndex\' in table \'Partner\' is DBNull.", e);
  4602. }
  4603. }
  4604. set {
  4605. this[this.tablePartner.idIndexColumn] = value;
  4606. }
  4607. }
  4608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4610. public int idCity {
  4611. get {
  4612. try {
  4613. return ((int)(this[this.tablePartner.idCityColumn]));
  4614. }
  4615. catch (global::System.InvalidCastException e) {
  4616. throw new global::System.Data.StrongTypingException("The value for column \'idCity\' in table \'Partner\' is DBNull.", e);
  4617. }
  4618. }
  4619. set {
  4620. this[this.tablePartner.idCityColumn] = value;
  4621. }
  4622. }
  4623. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4624. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4625. public int idStreet {
  4626. get {
  4627. try {
  4628. return ((int)(this[this.tablePartner.idStreetColumn]));
  4629. }
  4630. catch (global::System.InvalidCastException e) {
  4631. throw new global::System.Data.StrongTypingException("The value for column \'idStreet\' in table \'Partner\' is DBNull.", e);
  4632. }
  4633. }
  4634. set {
  4635. this[this.tablePartner.idStreetColumn] = value;
  4636. }
  4637. }
  4638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4640. public int House {
  4641. get {
  4642. try {
  4643. return ((int)(this[this.tablePartner.HouseColumn]));
  4644. }
  4645. catch (global::System.InvalidCastException e) {
  4646. throw new global::System.Data.StrongTypingException("The value for column \'House\' in table \'Partner\' is DBNull.", e);
  4647. }
  4648. }
  4649. set {
  4650. this[this.tablePartner.HouseColumn] = value;
  4651. }
  4652. }
  4653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4654. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4655. public string INN {
  4656. get {
  4657. try {
  4658. return ((string)(this[this.tablePartner.INNColumn]));
  4659. }
  4660. catch (global::System.InvalidCastException e) {
  4661. throw new global::System.Data.StrongTypingException("The value for column \'INN\' in table \'Partner\' is DBNull.", e);
  4662. }
  4663. }
  4664. set {
  4665. this[this.tablePartner.INNColumn] = value;
  4666. }
  4667. }
  4668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4670. public string Rating {
  4671. get {
  4672. try {
  4673. return ((string)(this[this.tablePartner.RatingColumn]));
  4674. }
  4675. catch (global::System.InvalidCastException e) {
  4676. throw new global::System.Data.StrongTypingException("The value for column \'Rating\' in table \'Partner\' is DBNull.", e);
  4677. }
  4678. }
  4679. set {
  4680. this[this.tablePartner.RatingColumn] = value;
  4681. }
  4682. }
  4683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4685. public int idRegion {
  4686. get {
  4687. try {
  4688. return ((int)(this[this.tablePartner.idRegionColumn]));
  4689. }
  4690. catch (global::System.InvalidCastException e) {
  4691. throw new global::System.Data.StrongTypingException("The value for column \'idRegion\' in table \'Partner\' is DBNull.", e);
  4692. }
  4693. }
  4694. set {
  4695. this[this.tablePartner.idRegionColumn] = value;
  4696. }
  4697. }
  4698. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4699. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4700. public int idTypePartner {
  4701. get {
  4702. try {
  4703. return ((int)(this[this.tablePartner.idTypePartnerColumn]));
  4704. }
  4705. catch (global::System.InvalidCastException e) {
  4706. throw new global::System.Data.StrongTypingException("The value for column \'idTypePartner\' in table \'Partner\' is DBNull.", e);
  4707. }
  4708. }
  4709. set {
  4710. this[this.tablePartner.idTypePartnerColumn] = value;
  4711. }
  4712. }
  4713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4715. public string NamePartner {
  4716. get {
  4717. try {
  4718. return ((string)(this[this.tablePartner.NamePartnerColumn]));
  4719. }
  4720. catch (global::System.InvalidCastException e) {
  4721. throw new global::System.Data.StrongTypingException("The value for column \'NamePartner\' in table \'Partner\' is DBNull.", e);
  4722. }
  4723. }
  4724. set {
  4725. this[this.tablePartner.NamePartnerColumn] = value;
  4726. }
  4727. }
  4728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4730. public CityRow CityRow {
  4731. get {
  4732. return ((CityRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_City"])));
  4733. }
  4734. set {
  4735. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_City"]);
  4736. }
  4737. }
  4738. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4740. public IndexPartnerRow IndexPartnerRow {
  4741. get {
  4742. return ((IndexPartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_IndexPartner"])));
  4743. }
  4744. set {
  4745. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_IndexPartner"]);
  4746. }
  4747. }
  4748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4750. public RegionRow RegionRow {
  4751. get {
  4752. return ((RegionRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_Region"])));
  4753. }
  4754. set {
  4755. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_Region"]);
  4756. }
  4757. }
  4758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4760. public StreetRow StreetRow {
  4761. get {
  4762. return ((StreetRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_Street"])));
  4763. }
  4764. set {
  4765. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_Street"]);
  4766. }
  4767. }
  4768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4770. public TypePartnerRow TypePartnerRow {
  4771. get {
  4772. return ((TypePartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Partner_TypePartner"])));
  4773. }
  4774. set {
  4775. this.SetParentRow(value, this.Table.ParentRelations["FK_Partner_TypePartner"]);
  4776. }
  4777. }
  4778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4780. public bool IsSurnameNull() {
  4781. return this.IsNull(this.tablePartner.SurnameColumn);
  4782. }
  4783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4785. public void SetSurnameNull() {
  4786. this[this.tablePartner.SurnameColumn] = global::System.Convert.DBNull;
  4787. }
  4788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4789. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4790. public bool IsNameNull() {
  4791. return this.IsNull(this.tablePartner.NameColumn);
  4792. }
  4793. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4795. public void SetNameNull() {
  4796. this[this.tablePartner.NameColumn] = global::System.Convert.DBNull;
  4797. }
  4798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4800. public bool IsPatronymicNull() {
  4801. return this.IsNull(this.tablePartner.PatronymicColumn);
  4802. }
  4803. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4804. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4805. public void SetPatronymicNull() {
  4806. this[this.tablePartner.PatronymicColumn] = global::System.Convert.DBNull;
  4807. }
  4808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4810. public bool IsEmailNull() {
  4811. return this.IsNull(this.tablePartner.EmailColumn);
  4812. }
  4813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4815. public void SetEmailNull() {
  4816. this[this.tablePartner.EmailColumn] = global::System.Convert.DBNull;
  4817. }
  4818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4820. public bool IsPhoneNull() {
  4821. return this.IsNull(this.tablePartner.PhoneColumn);
  4822. }
  4823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4824. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4825. public void SetPhoneNull() {
  4826. this[this.tablePartner.PhoneColumn] = global::System.Convert.DBNull;
  4827. }
  4828. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4829. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4830. public bool IsidIndexNull() {
  4831. return this.IsNull(this.tablePartner.idIndexColumn);
  4832. }
  4833. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4834. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4835. public void SetidIndexNull() {
  4836. this[this.tablePartner.idIndexColumn] = global::System.Convert.DBNull;
  4837. }
  4838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4840. public bool IsidCityNull() {
  4841. return this.IsNull(this.tablePartner.idCityColumn);
  4842. }
  4843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4845. public void SetidCityNull() {
  4846. this[this.tablePartner.idCityColumn] = global::System.Convert.DBNull;
  4847. }
  4848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4850. public bool IsidStreetNull() {
  4851. return this.IsNull(this.tablePartner.idStreetColumn);
  4852. }
  4853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4855. public void SetidStreetNull() {
  4856. this[this.tablePartner.idStreetColumn] = global::System.Convert.DBNull;
  4857. }
  4858. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4859. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4860. public bool IsHouseNull() {
  4861. return this.IsNull(this.tablePartner.HouseColumn);
  4862. }
  4863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4865. public void SetHouseNull() {
  4866. this[this.tablePartner.HouseColumn] = global::System.Convert.DBNull;
  4867. }
  4868. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4869. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4870. public bool IsINNNull() {
  4871. return this.IsNull(this.tablePartner.INNColumn);
  4872. }
  4873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4874. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4875. public void SetINNNull() {
  4876. this[this.tablePartner.INNColumn] = global::System.Convert.DBNull;
  4877. }
  4878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4880. public bool IsRatingNull() {
  4881. return this.IsNull(this.tablePartner.RatingColumn);
  4882. }
  4883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4884. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4885. public void SetRatingNull() {
  4886. this[this.tablePartner.RatingColumn] = global::System.Convert.DBNull;
  4887. }
  4888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4890. public bool IsidRegionNull() {
  4891. return this.IsNull(this.tablePartner.idRegionColumn);
  4892. }
  4893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4895. public void SetidRegionNull() {
  4896. this[this.tablePartner.idRegionColumn] = global::System.Convert.DBNull;
  4897. }
  4898. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4899. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4900. public bool IsidTypePartnerNull() {
  4901. return this.IsNull(this.tablePartner.idTypePartnerColumn);
  4902. }
  4903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4905. public void SetidTypePartnerNull() {
  4906. this[this.tablePartner.idTypePartnerColumn] = global::System.Convert.DBNull;
  4907. }
  4908. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4909. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4910. public bool IsNamePartnerNull() {
  4911. return this.IsNull(this.tablePartner.NamePartnerColumn);
  4912. }
  4913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4915. public void SetNamePartnerNull() {
  4916. this[this.tablePartner.NamePartnerColumn] = global::System.Convert.DBNull;
  4917. }
  4918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4919. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4920. public ProductPartnerRow[] GetProductPartnerRows() {
  4921. if ((this.Table.ChildRelations["FK_ProductPartner_Partner"] == null)) {
  4922. return new ProductPartnerRow[0];
  4923. }
  4924. else {
  4925. return ((ProductPartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPartner_Partner"])));
  4926. }
  4927. }
  4928. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4929. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4930. public HistorySaleRow[] GetHistorySaleRows() {
  4931. if ((this.Table.ChildRelations["FK_ProductPartner_Partner1"] == null)) {
  4932. return new HistorySaleRow[0];
  4933. }
  4934. else {
  4935. return ((HistorySaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPartner_Partner1"])));
  4936. }
  4937. }
  4938. }
  4939. /// <summary>
  4940. ///Represents strongly named DataRow class.
  4941. ///</summary>
  4942. public partial class ProductPartnerRow : global::System.Data.DataRow {
  4943. private ProductPartnerDataTable tableProductPartner;
  4944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4946. internal ProductPartnerRow(global::System.Data.DataRowBuilder rb) :
  4947. base(rb) {
  4948. this.tableProductPartner = ((ProductPartnerDataTable)(this.Table));
  4949. }
  4950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4952. public int idPartnerProduct {
  4953. get {
  4954. return ((int)(this[this.tableProductPartner.idPartnerProductColumn]));
  4955. }
  4956. set {
  4957. this[this.tableProductPartner.idPartnerProductColumn] = value;
  4958. }
  4959. }
  4960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4961. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4962. public int idProduct {
  4963. get {
  4964. try {
  4965. return ((int)(this[this.tableProductPartner.idProductColumn]));
  4966. }
  4967. catch (global::System.InvalidCastException e) {
  4968. throw new global::System.Data.StrongTypingException("The value for column \'idProduct\' in table \'ProductPartner\' is DBNull.", e);
  4969. }
  4970. }
  4971. set {
  4972. this[this.tableProductPartner.idProductColumn] = value;
  4973. }
  4974. }
  4975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4977. public int idPartner {
  4978. get {
  4979. try {
  4980. return ((int)(this[this.tableProductPartner.idPartnerColumn]));
  4981. }
  4982. catch (global::System.InvalidCastException e) {
  4983. throw new global::System.Data.StrongTypingException("The value for column \'idPartner\' in table \'ProductPartner\' is DBNull.", e);
  4984. }
  4985. }
  4986. set {
  4987. this[this.tableProductPartner.idPartnerColumn] = value;
  4988. }
  4989. }
  4990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  4992. public int CountProduct {
  4993. get {
  4994. try {
  4995. return ((int)(this[this.tableProductPartner.CountProductColumn]));
  4996. }
  4997. catch (global::System.InvalidCastException e) {
  4998. throw new global::System.Data.StrongTypingException("The value for column \'CountProduct\' in table \'ProductPartner\' is DBNull.", e);
  4999. }
  5000. }
  5001. set {
  5002. this[this.tableProductPartner.CountProductColumn] = value;
  5003. }
  5004. }
  5005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5007. public System.DateTime DateSale {
  5008. get {
  5009. try {
  5010. return ((global::System.DateTime)(this[this.tableProductPartner.DateSaleColumn]));
  5011. }
  5012. catch (global::System.InvalidCastException e) {
  5013. throw new global::System.Data.StrongTypingException("The value for column \'DateSale\' in table \'ProductPartner\' is DBNull.", e);
  5014. }
  5015. }
  5016. set {
  5017. this[this.tableProductPartner.DateSaleColumn] = value;
  5018. }
  5019. }
  5020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5022. public PartnerRow PartnerRow {
  5023. get {
  5024. return ((PartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPartner_Partner"])));
  5025. }
  5026. set {
  5027. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPartner_Partner"]);
  5028. }
  5029. }
  5030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5032. public ProductsRow ProductsRow {
  5033. get {
  5034. return ((ProductsRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPartner_Products"])));
  5035. }
  5036. set {
  5037. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPartner_Products"]);
  5038. }
  5039. }
  5040. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5041. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5042. public bool IsidProductNull() {
  5043. return this.IsNull(this.tableProductPartner.idProductColumn);
  5044. }
  5045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5047. public void SetidProductNull() {
  5048. this[this.tableProductPartner.idProductColumn] = global::System.Convert.DBNull;
  5049. }
  5050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5052. public bool IsidPartnerNull() {
  5053. return this.IsNull(this.tableProductPartner.idPartnerColumn);
  5054. }
  5055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5057. public void SetidPartnerNull() {
  5058. this[this.tableProductPartner.idPartnerColumn] = global::System.Convert.DBNull;
  5059. }
  5060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5062. public bool IsCountProductNull() {
  5063. return this.IsNull(this.tableProductPartner.CountProductColumn);
  5064. }
  5065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5067. public void SetCountProductNull() {
  5068. this[this.tableProductPartner.CountProductColumn] = global::System.Convert.DBNull;
  5069. }
  5070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5072. public bool IsDateSaleNull() {
  5073. return this.IsNull(this.tableProductPartner.DateSaleColumn);
  5074. }
  5075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5077. public void SetDateSaleNull() {
  5078. this[this.tableProductPartner.DateSaleColumn] = global::System.Convert.DBNull;
  5079. }
  5080. }
  5081. /// <summary>
  5082. ///Represents strongly named DataRow class.
  5083. ///</summary>
  5084. public partial class ProductsRow : global::System.Data.DataRow {
  5085. private ProductsDataTable tableProducts;
  5086. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5087. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5088. internal ProductsRow(global::System.Data.DataRowBuilder rb) :
  5089. base(rb) {
  5090. this.tableProducts = ((ProductsDataTable)(this.Table));
  5091. }
  5092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5094. public int idProduct {
  5095. get {
  5096. return ((int)(this[this.tableProducts.idProductColumn]));
  5097. }
  5098. set {
  5099. this[this.tableProducts.idProductColumn] = value;
  5100. }
  5101. }
  5102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5103. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5104. public int idTypeProduct {
  5105. get {
  5106. try {
  5107. return ((int)(this[this.tableProducts.idTypeProductColumn]));
  5108. }
  5109. catch (global::System.InvalidCastException e) {
  5110. throw new global::System.Data.StrongTypingException("The value for column \'idTypeProduct\' in table \'Products\' is DBNull.", e);
  5111. }
  5112. }
  5113. set {
  5114. this[this.tableProducts.idTypeProductColumn] = value;
  5115. }
  5116. }
  5117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5119. public string NameProduct {
  5120. get {
  5121. try {
  5122. return ((string)(this[this.tableProducts.NameProductColumn]));
  5123. }
  5124. catch (global::System.InvalidCastException e) {
  5125. throw new global::System.Data.StrongTypingException("The value for column \'NameProduct\' in table \'Products\' is DBNull.", e);
  5126. }
  5127. }
  5128. set {
  5129. this[this.tableProducts.NameProductColumn] = value;
  5130. }
  5131. }
  5132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5134. public int Article {
  5135. get {
  5136. try {
  5137. return ((int)(this[this.tableProducts.ArticleColumn]));
  5138. }
  5139. catch (global::System.InvalidCastException e) {
  5140. throw new global::System.Data.StrongTypingException("The value for column \'Article\' in table \'Products\' is DBNull.", e);
  5141. }
  5142. }
  5143. set {
  5144. this[this.tableProducts.ArticleColumn] = value;
  5145. }
  5146. }
  5147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5149. public decimal MinCost {
  5150. get {
  5151. try {
  5152. return ((decimal)(this[this.tableProducts.MinCostColumn]));
  5153. }
  5154. catch (global::System.InvalidCastException e) {
  5155. throw new global::System.Data.StrongTypingException("The value for column \'MinCost\' in table \'Products\' is DBNull.", e);
  5156. }
  5157. }
  5158. set {
  5159. this[this.tableProducts.MinCostColumn] = value;
  5160. }
  5161. }
  5162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5164. public TypeProductRow TypeProductRow {
  5165. get {
  5166. return ((TypeProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_Products_TypeProduct"])));
  5167. }
  5168. set {
  5169. this.SetParentRow(value, this.Table.ParentRelations["FK_Products_TypeProduct"]);
  5170. }
  5171. }
  5172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5174. public bool IsidTypeProductNull() {
  5175. return this.IsNull(this.tableProducts.idTypeProductColumn);
  5176. }
  5177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5179. public void SetidTypeProductNull() {
  5180. this[this.tableProducts.idTypeProductColumn] = global::System.Convert.DBNull;
  5181. }
  5182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5184. public bool IsNameProductNull() {
  5185. return this.IsNull(this.tableProducts.NameProductColumn);
  5186. }
  5187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5189. public void SetNameProductNull() {
  5190. this[this.tableProducts.NameProductColumn] = global::System.Convert.DBNull;
  5191. }
  5192. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5193. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5194. public bool IsArticleNull() {
  5195. return this.IsNull(this.tableProducts.ArticleColumn);
  5196. }
  5197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5199. public void SetArticleNull() {
  5200. this[this.tableProducts.ArticleColumn] = global::System.Convert.DBNull;
  5201. }
  5202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5204. public bool IsMinCostNull() {
  5205. return this.IsNull(this.tableProducts.MinCostColumn);
  5206. }
  5207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5209. public void SetMinCostNull() {
  5210. this[this.tableProducts.MinCostColumn] = global::System.Convert.DBNull;
  5211. }
  5212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5214. public ProductPartnerRow[] GetProductPartnerRows() {
  5215. if ((this.Table.ChildRelations["FK_ProductPartner_Products"] == null)) {
  5216. return new ProductPartnerRow[0];
  5217. }
  5218. else {
  5219. return ((ProductPartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPartner_Products"])));
  5220. }
  5221. }
  5222. }
  5223. /// <summary>
  5224. ///Represents strongly named DataRow class.
  5225. ///</summary>
  5226. public partial class RegionRow : global::System.Data.DataRow {
  5227. private RegionDataTable tableRegion;
  5228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5230. internal RegionRow(global::System.Data.DataRowBuilder rb) :
  5231. base(rb) {
  5232. this.tableRegion = ((RegionDataTable)(this.Table));
  5233. }
  5234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5236. public int idRegion {
  5237. get {
  5238. return ((int)(this[this.tableRegion.idRegionColumn]));
  5239. }
  5240. set {
  5241. this[this.tableRegion.idRegionColumn] = value;
  5242. }
  5243. }
  5244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5246. public string Region {
  5247. get {
  5248. try {
  5249. return ((string)(this[this.tableRegion.RegionColumn]));
  5250. }
  5251. catch (global::System.InvalidCastException e) {
  5252. throw new global::System.Data.StrongTypingException("The value for column \'Region\' in table \'Region\' is DBNull.", e);
  5253. }
  5254. }
  5255. set {
  5256. this[this.tableRegion.RegionColumn] = value;
  5257. }
  5258. }
  5259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5261. public bool IsRegionNull() {
  5262. return this.IsNull(this.tableRegion.RegionColumn);
  5263. }
  5264. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5265. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5266. public void SetRegionNull() {
  5267. this[this.tableRegion.RegionColumn] = global::System.Convert.DBNull;
  5268. }
  5269. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5270. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5271. public PartnerRow[] GetPartnerRows() {
  5272. if ((this.Table.ChildRelations["FK_Partner_Region"] == null)) {
  5273. return new PartnerRow[0];
  5274. }
  5275. else {
  5276. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_Region"])));
  5277. }
  5278. }
  5279. }
  5280. /// <summary>
  5281. ///Represents strongly named DataRow class.
  5282. ///</summary>
  5283. public partial class StreetRow : global::System.Data.DataRow {
  5284. private StreetDataTable tableStreet;
  5285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5287. internal StreetRow(global::System.Data.DataRowBuilder rb) :
  5288. base(rb) {
  5289. this.tableStreet = ((StreetDataTable)(this.Table));
  5290. }
  5291. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5292. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5293. public int idStreet {
  5294. get {
  5295. return ((int)(this[this.tableStreet.idStreetColumn]));
  5296. }
  5297. set {
  5298. this[this.tableStreet.idStreetColumn] = value;
  5299. }
  5300. }
  5301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5303. public string Street {
  5304. get {
  5305. try {
  5306. return ((string)(this[this.tableStreet.StreetColumn]));
  5307. }
  5308. catch (global::System.InvalidCastException e) {
  5309. throw new global::System.Data.StrongTypingException("The value for column \'Street\' in table \'Street\' is DBNull.", e);
  5310. }
  5311. }
  5312. set {
  5313. this[this.tableStreet.StreetColumn] = value;
  5314. }
  5315. }
  5316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5318. public bool IsStreetNull() {
  5319. return this.IsNull(this.tableStreet.StreetColumn);
  5320. }
  5321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5323. public void SetStreetNull() {
  5324. this[this.tableStreet.StreetColumn] = global::System.Convert.DBNull;
  5325. }
  5326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5328. public PartnerRow[] GetPartnerRows() {
  5329. if ((this.Table.ChildRelations["FK_Partner_Street"] == null)) {
  5330. return new PartnerRow[0];
  5331. }
  5332. else {
  5333. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_Street"])));
  5334. }
  5335. }
  5336. }
  5337. /// <summary>
  5338. ///Represents strongly named DataRow class.
  5339. ///</summary>
  5340. public partial class TypeMaterialRow : global::System.Data.DataRow {
  5341. private TypeMaterialDataTable tableTypeMaterial;
  5342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5343. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5344. internal TypeMaterialRow(global::System.Data.DataRowBuilder rb) :
  5345. base(rb) {
  5346. this.tableTypeMaterial = ((TypeMaterialDataTable)(this.Table));
  5347. }
  5348. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5349. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5350. public int idTypeMaterial {
  5351. get {
  5352. return ((int)(this[this.tableTypeMaterial.idTypeMaterialColumn]));
  5353. }
  5354. set {
  5355. this[this.tableTypeMaterial.idTypeMaterialColumn] = value;
  5356. }
  5357. }
  5358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5360. public string TypeMaterial {
  5361. get {
  5362. try {
  5363. return ((string)(this[this.tableTypeMaterial.TypeMaterialColumn]));
  5364. }
  5365. catch (global::System.InvalidCastException e) {
  5366. throw new global::System.Data.StrongTypingException("The value for column \'TypeMaterial\' in table \'TypeMaterial\' is DBNull.", e);
  5367. }
  5368. }
  5369. set {
  5370. this[this.tableTypeMaterial.TypeMaterialColumn] = value;
  5371. }
  5372. }
  5373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5375. public decimal PercentDefect {
  5376. get {
  5377. try {
  5378. return ((decimal)(this[this.tableTypeMaterial.PercentDefectColumn]));
  5379. }
  5380. catch (global::System.InvalidCastException e) {
  5381. throw new global::System.Data.StrongTypingException("The value for column \'PercentDefect\' in table \'TypeMaterial\' is DBNull.", e);
  5382. }
  5383. }
  5384. set {
  5385. this[this.tableTypeMaterial.PercentDefectColumn] = value;
  5386. }
  5387. }
  5388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5390. public bool IsTypeMaterialNull() {
  5391. return this.IsNull(this.tableTypeMaterial.TypeMaterialColumn);
  5392. }
  5393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5395. public void SetTypeMaterialNull() {
  5396. this[this.tableTypeMaterial.TypeMaterialColumn] = global::System.Convert.DBNull;
  5397. }
  5398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5400. public bool IsPercentDefectNull() {
  5401. return this.IsNull(this.tableTypeMaterial.PercentDefectColumn);
  5402. }
  5403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5405. public void SetPercentDefectNull() {
  5406. this[this.tableTypeMaterial.PercentDefectColumn] = global::System.Convert.DBNull;
  5407. }
  5408. }
  5409. /// <summary>
  5410. ///Represents strongly named DataRow class.
  5411. ///</summary>
  5412. public partial class TypePartnerRow : global::System.Data.DataRow {
  5413. private TypePartnerDataTable tableTypePartner;
  5414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5416. internal TypePartnerRow(global::System.Data.DataRowBuilder rb) :
  5417. base(rb) {
  5418. this.tableTypePartner = ((TypePartnerDataTable)(this.Table));
  5419. }
  5420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5422. public int idTypePartner {
  5423. get {
  5424. return ((int)(this[this.tableTypePartner.idTypePartnerColumn]));
  5425. }
  5426. set {
  5427. this[this.tableTypePartner.idTypePartnerColumn] = value;
  5428. }
  5429. }
  5430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5432. public string Type {
  5433. get {
  5434. try {
  5435. return ((string)(this[this.tableTypePartner.TypeColumn]));
  5436. }
  5437. catch (global::System.InvalidCastException e) {
  5438. throw new global::System.Data.StrongTypingException("The value for column \'Type\' in table \'TypePartner\' is DBNull.", e);
  5439. }
  5440. }
  5441. set {
  5442. this[this.tableTypePartner.TypeColumn] = value;
  5443. }
  5444. }
  5445. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5446. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5447. public bool IsTypeNull() {
  5448. return this.IsNull(this.tableTypePartner.TypeColumn);
  5449. }
  5450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5452. public void SetTypeNull() {
  5453. this[this.tableTypePartner.TypeColumn] = global::System.Convert.DBNull;
  5454. }
  5455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5457. public PartnerRow[] GetPartnerRows() {
  5458. if ((this.Table.ChildRelations["FK_Partner_TypePartner"] == null)) {
  5459. return new PartnerRow[0];
  5460. }
  5461. else {
  5462. return ((PartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Partner_TypePartner"])));
  5463. }
  5464. }
  5465. }
  5466. /// <summary>
  5467. ///Represents strongly named DataRow class.
  5468. ///</summary>
  5469. public partial class TypeProductRow : global::System.Data.DataRow {
  5470. private TypeProductDataTable tableTypeProduct;
  5471. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5472. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5473. internal TypeProductRow(global::System.Data.DataRowBuilder rb) :
  5474. base(rb) {
  5475. this.tableTypeProduct = ((TypeProductDataTable)(this.Table));
  5476. }
  5477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5479. public int idTypeProduct {
  5480. get {
  5481. return ((int)(this[this.tableTypeProduct.idTypeProductColumn]));
  5482. }
  5483. set {
  5484. this[this.tableTypeProduct.idTypeProductColumn] = value;
  5485. }
  5486. }
  5487. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5489. public string TypeProduct {
  5490. get {
  5491. try {
  5492. return ((string)(this[this.tableTypeProduct.TypeProductColumn]));
  5493. }
  5494. catch (global::System.InvalidCastException e) {
  5495. throw new global::System.Data.StrongTypingException("The value for column \'TypeProduct\' in table \'TypeProduct\' is DBNull.", e);
  5496. }
  5497. }
  5498. set {
  5499. this[this.tableTypeProduct.TypeProductColumn] = value;
  5500. }
  5501. }
  5502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5504. public double Coefficient {
  5505. get {
  5506. try {
  5507. return ((double)(this[this.tableTypeProduct.CoefficientColumn]));
  5508. }
  5509. catch (global::System.InvalidCastException e) {
  5510. throw new global::System.Data.StrongTypingException("The value for column \'Coefficient\' in table \'TypeProduct\' is DBNull.", e);
  5511. }
  5512. }
  5513. set {
  5514. this[this.tableTypeProduct.CoefficientColumn] = value;
  5515. }
  5516. }
  5517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5519. public bool IsTypeProductNull() {
  5520. return this.IsNull(this.tableTypeProduct.TypeProductColumn);
  5521. }
  5522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5524. public void SetTypeProductNull() {
  5525. this[this.tableTypeProduct.TypeProductColumn] = global::System.Convert.DBNull;
  5526. }
  5527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5529. public bool IsCoefficientNull() {
  5530. return this.IsNull(this.tableTypeProduct.CoefficientColumn);
  5531. }
  5532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5534. public void SetCoefficientNull() {
  5535. this[this.tableTypeProduct.CoefficientColumn] = global::System.Convert.DBNull;
  5536. }
  5537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5539. public ProductsRow[] GetProductsRows() {
  5540. if ((this.Table.ChildRelations["FK_Products_TypeProduct"] == null)) {
  5541. return new ProductsRow[0];
  5542. }
  5543. else {
  5544. return ((ProductsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Products_TypeProduct"])));
  5545. }
  5546. }
  5547. }
  5548. /// <summary>
  5549. ///Represents strongly named DataRow class.
  5550. ///</summary>
  5551. public partial class TypeForFilterRow : global::System.Data.DataRow {
  5552. private TypeForFilterDataTable tableTypeForFilter;
  5553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5555. internal TypeForFilterRow(global::System.Data.DataRowBuilder rb) :
  5556. base(rb) {
  5557. this.tableTypeForFilter = ((TypeForFilterDataTable)(this.Table));
  5558. }
  5559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5561. public string Type {
  5562. get {
  5563. try {
  5564. return ((string)(this[this.tableTypeForFilter.TypeColumn]));
  5565. }
  5566. catch (global::System.InvalidCastException e) {
  5567. throw new global::System.Data.StrongTypingException("The value for column \'Type\' in table \'TypeForFilter\' is DBNull.", e);
  5568. }
  5569. }
  5570. set {
  5571. this[this.tableTypeForFilter.TypeColumn] = value;
  5572. }
  5573. }
  5574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5576. public bool IsTypeNull() {
  5577. return this.IsNull(this.tableTypeForFilter.TypeColumn);
  5578. }
  5579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5581. public void SetTypeNull() {
  5582. this[this.tableTypeForFilter.TypeColumn] = global::System.Convert.DBNull;
  5583. }
  5584. }
  5585. /// <summary>
  5586. ///Represents strongly named DataRow class.
  5587. ///</summary>
  5588. public partial class HistorySaleRow : global::System.Data.DataRow {
  5589. private HistorySaleDataTable tableHistorySale;
  5590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5592. internal HistorySaleRow(global::System.Data.DataRowBuilder rb) :
  5593. base(rb) {
  5594. this.tableHistorySale = ((HistorySaleDataTable)(this.Table));
  5595. }
  5596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5598. public int idPartner {
  5599. get {
  5600. try {
  5601. return ((int)(this[this.tableHistorySale.idPartnerColumn]));
  5602. }
  5603. catch (global::System.InvalidCastException e) {
  5604. throw new global::System.Data.StrongTypingException("The value for column \'idPartner\' in table \'HistorySale\' is DBNull.", e);
  5605. }
  5606. }
  5607. set {
  5608. this[this.tableHistorySale.idPartnerColumn] = value;
  5609. }
  5610. }
  5611. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5612. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5613. public string NameProduct {
  5614. get {
  5615. try {
  5616. return ((string)(this[this.tableHistorySale.NameProductColumn]));
  5617. }
  5618. catch (global::System.InvalidCastException e) {
  5619. throw new global::System.Data.StrongTypingException("The value for column \'NameProduct\' in table \'HistorySale\' is DBNull.", e);
  5620. }
  5621. }
  5622. set {
  5623. this[this.tableHistorySale.NameProductColumn] = value;
  5624. }
  5625. }
  5626. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5627. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5628. public int CountProduct {
  5629. get {
  5630. try {
  5631. return ((int)(this[this.tableHistorySale.CountProductColumn]));
  5632. }
  5633. catch (global::System.InvalidCastException e) {
  5634. throw new global::System.Data.StrongTypingException("The value for column \'CountProduct\' in table \'HistorySale\' is DBNull.", e);
  5635. }
  5636. }
  5637. set {
  5638. this[this.tableHistorySale.CountProductColumn] = value;
  5639. }
  5640. }
  5641. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5642. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5643. public System.DateTime DateSale {
  5644. get {
  5645. try {
  5646. return ((global::System.DateTime)(this[this.tableHistorySale.DateSaleColumn]));
  5647. }
  5648. catch (global::System.InvalidCastException e) {
  5649. throw new global::System.Data.StrongTypingException("The value for column \'DateSale\' in table \'HistorySale\' is DBNull.", e);
  5650. }
  5651. }
  5652. set {
  5653. this[this.tableHistorySale.DateSaleColumn] = value;
  5654. }
  5655. }
  5656. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5657. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5658. public PartnerRow PartnerRow {
  5659. get {
  5660. return ((PartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPartner_Partner1"])));
  5661. }
  5662. set {
  5663. this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPartner_Partner1"]);
  5664. }
  5665. }
  5666. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5667. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5668. public bool IsidPartnerNull() {
  5669. return this.IsNull(this.tableHistorySale.idPartnerColumn);
  5670. }
  5671. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5672. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5673. public void SetidPartnerNull() {
  5674. this[this.tableHistorySale.idPartnerColumn] = global::System.Convert.DBNull;
  5675. }
  5676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5678. public bool IsNameProductNull() {
  5679. return this.IsNull(this.tableHistorySale.NameProductColumn);
  5680. }
  5681. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5682. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5683. public void SetNameProductNull() {
  5684. this[this.tableHistorySale.NameProductColumn] = global::System.Convert.DBNull;
  5685. }
  5686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5687. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5688. public bool IsCountProductNull() {
  5689. return this.IsNull(this.tableHistorySale.CountProductColumn);
  5690. }
  5691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5693. public void SetCountProductNull() {
  5694. this[this.tableHistorySale.CountProductColumn] = global::System.Convert.DBNull;
  5695. }
  5696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5698. public bool IsDateSaleNull() {
  5699. return this.IsNull(this.tableHistorySale.DateSaleColumn);
  5700. }
  5701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5703. public void SetDateSaleNull() {
  5704. this[this.tableHistorySale.DateSaleColumn] = global::System.Convert.DBNull;
  5705. }
  5706. }
  5707. /// <summary>
  5708. ///Row event argument class
  5709. ///</summary>
  5710. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5711. public class CityRowChangeEvent : global::System.EventArgs {
  5712. private CityRow eventRow;
  5713. private global::System.Data.DataRowAction eventAction;
  5714. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5715. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5716. public CityRowChangeEvent(CityRow row, global::System.Data.DataRowAction action) {
  5717. this.eventRow = row;
  5718. this.eventAction = action;
  5719. }
  5720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5722. public CityRow Row {
  5723. get {
  5724. return this.eventRow;
  5725. }
  5726. }
  5727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5729. public global::System.Data.DataRowAction Action {
  5730. get {
  5731. return this.eventAction;
  5732. }
  5733. }
  5734. }
  5735. /// <summary>
  5736. ///Row event argument class
  5737. ///</summary>
  5738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5739. public class IndexPartnerRowChangeEvent : global::System.EventArgs {
  5740. private IndexPartnerRow eventRow;
  5741. private global::System.Data.DataRowAction eventAction;
  5742. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5743. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5744. public IndexPartnerRowChangeEvent(IndexPartnerRow row, global::System.Data.DataRowAction action) {
  5745. this.eventRow = row;
  5746. this.eventAction = action;
  5747. }
  5748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5750. public IndexPartnerRow Row {
  5751. get {
  5752. return this.eventRow;
  5753. }
  5754. }
  5755. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5756. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5757. public global::System.Data.DataRowAction Action {
  5758. get {
  5759. return this.eventAction;
  5760. }
  5761. }
  5762. }
  5763. /// <summary>
  5764. ///Row event argument class
  5765. ///</summary>
  5766. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5767. public class ManagerRowChangeEvent : global::System.EventArgs {
  5768. private ManagerRow eventRow;
  5769. private global::System.Data.DataRowAction eventAction;
  5770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5772. public ManagerRowChangeEvent(ManagerRow row, global::System.Data.DataRowAction action) {
  5773. this.eventRow = row;
  5774. this.eventAction = action;
  5775. }
  5776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5778. public ManagerRow Row {
  5779. get {
  5780. return this.eventRow;
  5781. }
  5782. }
  5783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5785. public global::System.Data.DataRowAction Action {
  5786. get {
  5787. return this.eventAction;
  5788. }
  5789. }
  5790. }
  5791. /// <summary>
  5792. ///Row event argument class
  5793. ///</summary>
  5794. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5795. public class PartnerRowChangeEvent : global::System.EventArgs {
  5796. private PartnerRow eventRow;
  5797. private global::System.Data.DataRowAction eventAction;
  5798. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5799. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5800. public PartnerRowChangeEvent(PartnerRow row, global::System.Data.DataRowAction action) {
  5801. this.eventRow = row;
  5802. this.eventAction = action;
  5803. }
  5804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5806. public PartnerRow Row {
  5807. get {
  5808. return this.eventRow;
  5809. }
  5810. }
  5811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5813. public global::System.Data.DataRowAction Action {
  5814. get {
  5815. return this.eventAction;
  5816. }
  5817. }
  5818. }
  5819. /// <summary>
  5820. ///Row event argument class
  5821. ///</summary>
  5822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5823. public class ProductPartnerRowChangeEvent : global::System.EventArgs {
  5824. private ProductPartnerRow eventRow;
  5825. private global::System.Data.DataRowAction eventAction;
  5826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5828. public ProductPartnerRowChangeEvent(ProductPartnerRow row, global::System.Data.DataRowAction action) {
  5829. this.eventRow = row;
  5830. this.eventAction = action;
  5831. }
  5832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5834. public ProductPartnerRow Row {
  5835. get {
  5836. return this.eventRow;
  5837. }
  5838. }
  5839. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5840. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5841. public global::System.Data.DataRowAction Action {
  5842. get {
  5843. return this.eventAction;
  5844. }
  5845. }
  5846. }
  5847. /// <summary>
  5848. ///Row event argument class
  5849. ///</summary>
  5850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5851. public class ProductsRowChangeEvent : global::System.EventArgs {
  5852. private ProductsRow eventRow;
  5853. private global::System.Data.DataRowAction eventAction;
  5854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5856. public ProductsRowChangeEvent(ProductsRow row, global::System.Data.DataRowAction action) {
  5857. this.eventRow = row;
  5858. this.eventAction = action;
  5859. }
  5860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5862. public ProductsRow Row {
  5863. get {
  5864. return this.eventRow;
  5865. }
  5866. }
  5867. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5868. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5869. public global::System.Data.DataRowAction Action {
  5870. get {
  5871. return this.eventAction;
  5872. }
  5873. }
  5874. }
  5875. /// <summary>
  5876. ///Row event argument class
  5877. ///</summary>
  5878. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5879. public class RegionRowChangeEvent : global::System.EventArgs {
  5880. private RegionRow eventRow;
  5881. private global::System.Data.DataRowAction eventAction;
  5882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5884. public RegionRowChangeEvent(RegionRow row, global::System.Data.DataRowAction action) {
  5885. this.eventRow = row;
  5886. this.eventAction = action;
  5887. }
  5888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5890. public RegionRow Row {
  5891. get {
  5892. return this.eventRow;
  5893. }
  5894. }
  5895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5896. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5897. public global::System.Data.DataRowAction Action {
  5898. get {
  5899. return this.eventAction;
  5900. }
  5901. }
  5902. }
  5903. /// <summary>
  5904. ///Row event argument class
  5905. ///</summary>
  5906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5907. public class StreetRowChangeEvent : global::System.EventArgs {
  5908. private StreetRow eventRow;
  5909. private global::System.Data.DataRowAction eventAction;
  5910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5912. public StreetRowChangeEvent(StreetRow row, global::System.Data.DataRowAction action) {
  5913. this.eventRow = row;
  5914. this.eventAction = action;
  5915. }
  5916. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5917. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5918. public StreetRow Row {
  5919. get {
  5920. return this.eventRow;
  5921. }
  5922. }
  5923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5925. public global::System.Data.DataRowAction Action {
  5926. get {
  5927. return this.eventAction;
  5928. }
  5929. }
  5930. }
  5931. /// <summary>
  5932. ///Row event argument class
  5933. ///</summary>
  5934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5935. public class TypeMaterialRowChangeEvent : global::System.EventArgs {
  5936. private TypeMaterialRow eventRow;
  5937. private global::System.Data.DataRowAction eventAction;
  5938. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5939. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5940. public TypeMaterialRowChangeEvent(TypeMaterialRow row, global::System.Data.DataRowAction action) {
  5941. this.eventRow = row;
  5942. this.eventAction = action;
  5943. }
  5944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5946. public TypeMaterialRow Row {
  5947. get {
  5948. return this.eventRow;
  5949. }
  5950. }
  5951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5953. public global::System.Data.DataRowAction Action {
  5954. get {
  5955. return this.eventAction;
  5956. }
  5957. }
  5958. }
  5959. /// <summary>
  5960. ///Row event argument class
  5961. ///</summary>
  5962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5963. public class TypePartnerRowChangeEvent : global::System.EventArgs {
  5964. private TypePartnerRow eventRow;
  5965. private global::System.Data.DataRowAction eventAction;
  5966. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5967. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5968. public TypePartnerRowChangeEvent(TypePartnerRow row, global::System.Data.DataRowAction action) {
  5969. this.eventRow = row;
  5970. this.eventAction = action;
  5971. }
  5972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5974. public TypePartnerRow Row {
  5975. get {
  5976. return this.eventRow;
  5977. }
  5978. }
  5979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5981. public global::System.Data.DataRowAction Action {
  5982. get {
  5983. return this.eventAction;
  5984. }
  5985. }
  5986. }
  5987. /// <summary>
  5988. ///Row event argument class
  5989. ///</summary>
  5990. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5991. public class TypeProductRowChangeEvent : global::System.EventArgs {
  5992. private TypeProductRow eventRow;
  5993. private global::System.Data.DataRowAction eventAction;
  5994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  5996. public TypeProductRowChangeEvent(TypeProductRow row, global::System.Data.DataRowAction action) {
  5997. this.eventRow = row;
  5998. this.eventAction = action;
  5999. }
  6000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6001. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6002. public TypeProductRow Row {
  6003. get {
  6004. return this.eventRow;
  6005. }
  6006. }
  6007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6009. public global::System.Data.DataRowAction Action {
  6010. get {
  6011. return this.eventAction;
  6012. }
  6013. }
  6014. }
  6015. /// <summary>
  6016. ///Row event argument class
  6017. ///</summary>
  6018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6019. public class TypeForFilterRowChangeEvent : global::System.EventArgs {
  6020. private TypeForFilterRow eventRow;
  6021. private global::System.Data.DataRowAction eventAction;
  6022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6024. public TypeForFilterRowChangeEvent(TypeForFilterRow row, global::System.Data.DataRowAction action) {
  6025. this.eventRow = row;
  6026. this.eventAction = action;
  6027. }
  6028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6029. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6030. public TypeForFilterRow Row {
  6031. get {
  6032. return this.eventRow;
  6033. }
  6034. }
  6035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6037. public global::System.Data.DataRowAction Action {
  6038. get {
  6039. return this.eventAction;
  6040. }
  6041. }
  6042. }
  6043. /// <summary>
  6044. ///Row event argument class
  6045. ///</summary>
  6046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6047. public class HistorySaleRowChangeEvent : global::System.EventArgs {
  6048. private HistorySaleRow eventRow;
  6049. private global::System.Data.DataRowAction eventAction;
  6050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6052. public HistorySaleRowChangeEvent(HistorySaleRow row, global::System.Data.DataRowAction action) {
  6053. this.eventRow = row;
  6054. this.eventAction = action;
  6055. }
  6056. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6057. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6058. public HistorySaleRow Row {
  6059. get {
  6060. return this.eventRow;
  6061. }
  6062. }
  6063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6065. public global::System.Data.DataRowAction Action {
  6066. get {
  6067. return this.eventAction;
  6068. }
  6069. }
  6070. }
  6071. }
  6072. }
  6073. namespace СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters {
  6074. /// <summary>
  6075. ///Represents the connection and commands used to retrieve and save data.
  6076. ///</summary>
  6077. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6078. [global::System.ComponentModel.ToolboxItem(true)]
  6079. [global::System.ComponentModel.DataObjectAttribute(true)]
  6080. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6081. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6082. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6083. public partial class CityTableAdapter : global::System.ComponentModel.Component {
  6084. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6085. private global::System.Data.SqlClient.SqlConnection _connection;
  6086. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6087. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6088. private bool _clearBeforeFill;
  6089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6091. public CityTableAdapter() {
  6092. this.ClearBeforeFill = true;
  6093. }
  6094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6096. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6097. get {
  6098. if ((this._adapter == null)) {
  6099. this.InitAdapter();
  6100. }
  6101. return this._adapter;
  6102. }
  6103. }
  6104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6106. internal global::System.Data.SqlClient.SqlConnection Connection {
  6107. get {
  6108. if ((this._connection == null)) {
  6109. this.InitConnection();
  6110. }
  6111. return this._connection;
  6112. }
  6113. set {
  6114. this._connection = value;
  6115. if ((this.Adapter.InsertCommand != null)) {
  6116. this.Adapter.InsertCommand.Connection = value;
  6117. }
  6118. if ((this.Adapter.DeleteCommand != null)) {
  6119. this.Adapter.DeleteCommand.Connection = value;
  6120. }
  6121. if ((this.Adapter.UpdateCommand != null)) {
  6122. this.Adapter.UpdateCommand.Connection = value;
  6123. }
  6124. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6125. if ((this.CommandCollection[i] != null)) {
  6126. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6127. }
  6128. }
  6129. }
  6130. }
  6131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6133. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6134. get {
  6135. return this._transaction;
  6136. }
  6137. set {
  6138. this._transaction = value;
  6139. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6140. this.CommandCollection[i].Transaction = this._transaction;
  6141. }
  6142. if (((this.Adapter != null)
  6143. && (this.Adapter.DeleteCommand != null))) {
  6144. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6145. }
  6146. if (((this.Adapter != null)
  6147. && (this.Adapter.InsertCommand != null))) {
  6148. this.Adapter.InsertCommand.Transaction = this._transaction;
  6149. }
  6150. if (((this.Adapter != null)
  6151. && (this.Adapter.UpdateCommand != null))) {
  6152. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6153. }
  6154. }
  6155. }
  6156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6157. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6158. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6159. get {
  6160. if ((this._commandCollection == null)) {
  6161. this.InitCommandCollection();
  6162. }
  6163. return this._commandCollection;
  6164. }
  6165. }
  6166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6167. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6168. public bool ClearBeforeFill {
  6169. get {
  6170. return this._clearBeforeFill;
  6171. }
  6172. set {
  6173. this._clearBeforeFill = value;
  6174. }
  6175. }
  6176. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6177. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6178. private void InitAdapter() {
  6179. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6180. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6181. tableMapping.SourceTable = "Table";
  6182. tableMapping.DataSetTable = "City";
  6183. tableMapping.ColumnMappings.Add("idCity", "idCity");
  6184. tableMapping.ColumnMappings.Add("City", "City");
  6185. this._adapter.TableMappings.Add(tableMapping);
  6186. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6187. this._adapter.DeleteCommand.Connection = this.Connection;
  6188. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[City] WHERE (([idCity] = @Original_idCity) AND ((@IsNull_City " +
  6189. "= 1 AND [City] IS NULL) OR ([City] = @Original_City)))";
  6190. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6191. 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, "", "", ""));
  6192. 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, "", "", ""));
  6193. 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, "", "", ""));
  6194. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6195. this._adapter.InsertCommand.Connection = this.Connection;
  6196. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[City] ([City]) VALUES (@City);\r\nSELECT idCity, City FROM City " +
  6197. "WHERE (idCity = SCOPE_IDENTITY())";
  6198. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6199. 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, "", "", ""));
  6200. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6201. this._adapter.UpdateCommand.Connection = this.Connection;
  6202. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[City] SET [City] = @City WHERE (([idCity] = @Original_idCity) AND (" +
  6203. "(@IsNull_City = 1 AND [City] IS NULL) OR ([City] = @Original_City)));\r\nSELECT id" +
  6204. "City, City FROM City WHERE (idCity = @idCity)";
  6205. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6206. 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, "", "", ""));
  6207. 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, "", "", ""));
  6208. 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, "", "", ""));
  6209. 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, "", "", ""));
  6210. 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, "", "", ""));
  6211. }
  6212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6214. private void InitConnection() {
  6215. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6216. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  6217. }
  6218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6220. private void InitCommandCollection() {
  6221. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6222. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6223. this._commandCollection[0].Connection = this.Connection;
  6224. this._commandCollection[0].CommandText = "SELECT idCity, City FROM dbo.City";
  6225. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6226. }
  6227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6229. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6230. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6231. public virtual int Fill(dbAlphapolAGDataSet.CityDataTable dataTable) {
  6232. this.Adapter.SelectCommand = this.CommandCollection[0];
  6233. if ((this.ClearBeforeFill == true)) {
  6234. dataTable.Clear();
  6235. }
  6236. int returnValue = this.Adapter.Fill(dataTable);
  6237. return returnValue;
  6238. }
  6239. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6240. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6241. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6242. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6243. public virtual dbAlphapolAGDataSet.CityDataTable GetData() {
  6244. this.Adapter.SelectCommand = this.CommandCollection[0];
  6245. dbAlphapolAGDataSet.CityDataTable dataTable = new dbAlphapolAGDataSet.CityDataTable();
  6246. this.Adapter.Fill(dataTable);
  6247. return dataTable;
  6248. }
  6249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6251. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6252. public virtual int Update(dbAlphapolAGDataSet.CityDataTable dataTable) {
  6253. return this.Adapter.Update(dataTable);
  6254. }
  6255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6257. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6258. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  6259. return this.Adapter.Update(dataSet, "City");
  6260. }
  6261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6263. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6264. public virtual int Update(global::System.Data.DataRow dataRow) {
  6265. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6266. dataRow});
  6267. }
  6268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6270. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6271. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6272. return this.Adapter.Update(dataRows);
  6273. }
  6274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6276. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6277. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6278. public virtual int Delete(int Original_idCity, string Original_City) {
  6279. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idCity));
  6280. if ((Original_City == null)) {
  6281. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6282. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6283. }
  6284. else {
  6285. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6286. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_City));
  6287. }
  6288. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6289. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6290. != global::System.Data.ConnectionState.Open)) {
  6291. this.Adapter.DeleteCommand.Connection.Open();
  6292. }
  6293. try {
  6294. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6295. return returnValue;
  6296. }
  6297. finally {
  6298. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6299. this.Adapter.DeleteCommand.Connection.Close();
  6300. }
  6301. }
  6302. }
  6303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6305. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6306. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6307. public virtual int Insert(string City) {
  6308. if ((City == null)) {
  6309. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6310. }
  6311. else {
  6312. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(City));
  6313. }
  6314. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6315. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6316. != global::System.Data.ConnectionState.Open)) {
  6317. this.Adapter.InsertCommand.Connection.Open();
  6318. }
  6319. try {
  6320. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6321. return returnValue;
  6322. }
  6323. finally {
  6324. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6325. this.Adapter.InsertCommand.Connection.Close();
  6326. }
  6327. }
  6328. }
  6329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6331. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6332. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6333. public virtual int Update(string City, int Original_idCity, string Original_City, int idCity) {
  6334. if ((City == null)) {
  6335. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6336. }
  6337. else {
  6338. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(City));
  6339. }
  6340. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idCity));
  6341. if ((Original_City == null)) {
  6342. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  6343. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6344. }
  6345. else {
  6346. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  6347. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_City));
  6348. }
  6349. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idCity));
  6350. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6351. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6352. != global::System.Data.ConnectionState.Open)) {
  6353. this.Adapter.UpdateCommand.Connection.Open();
  6354. }
  6355. try {
  6356. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6357. return returnValue;
  6358. }
  6359. finally {
  6360. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6361. this.Adapter.UpdateCommand.Connection.Close();
  6362. }
  6363. }
  6364. }
  6365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6367. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6368. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6369. public virtual int Update(string City, int Original_idCity, string Original_City) {
  6370. return this.Update(City, Original_idCity, Original_City, Original_idCity);
  6371. }
  6372. }
  6373. /// <summary>
  6374. ///Represents the connection and commands used to retrieve and save data.
  6375. ///</summary>
  6376. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6377. [global::System.ComponentModel.ToolboxItem(true)]
  6378. [global::System.ComponentModel.DataObjectAttribute(true)]
  6379. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6380. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6381. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6382. public partial class IndexPartnerTableAdapter : global::System.ComponentModel.Component {
  6383. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6384. private global::System.Data.SqlClient.SqlConnection _connection;
  6385. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6386. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6387. private bool _clearBeforeFill;
  6388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6390. public IndexPartnerTableAdapter() {
  6391. this.ClearBeforeFill = true;
  6392. }
  6393. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6394. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6395. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6396. get {
  6397. if ((this._adapter == null)) {
  6398. this.InitAdapter();
  6399. }
  6400. return this._adapter;
  6401. }
  6402. }
  6403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6405. internal global::System.Data.SqlClient.SqlConnection Connection {
  6406. get {
  6407. if ((this._connection == null)) {
  6408. this.InitConnection();
  6409. }
  6410. return this._connection;
  6411. }
  6412. set {
  6413. this._connection = value;
  6414. if ((this.Adapter.InsertCommand != null)) {
  6415. this.Adapter.InsertCommand.Connection = value;
  6416. }
  6417. if ((this.Adapter.DeleteCommand != null)) {
  6418. this.Adapter.DeleteCommand.Connection = value;
  6419. }
  6420. if ((this.Adapter.UpdateCommand != null)) {
  6421. this.Adapter.UpdateCommand.Connection = value;
  6422. }
  6423. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6424. if ((this.CommandCollection[i] != null)) {
  6425. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6426. }
  6427. }
  6428. }
  6429. }
  6430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6432. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6433. get {
  6434. return this._transaction;
  6435. }
  6436. set {
  6437. this._transaction = value;
  6438. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6439. this.CommandCollection[i].Transaction = this._transaction;
  6440. }
  6441. if (((this.Adapter != null)
  6442. && (this.Adapter.DeleteCommand != null))) {
  6443. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6444. }
  6445. if (((this.Adapter != null)
  6446. && (this.Adapter.InsertCommand != null))) {
  6447. this.Adapter.InsertCommand.Transaction = this._transaction;
  6448. }
  6449. if (((this.Adapter != null)
  6450. && (this.Adapter.UpdateCommand != null))) {
  6451. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6452. }
  6453. }
  6454. }
  6455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6457. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6458. get {
  6459. if ((this._commandCollection == null)) {
  6460. this.InitCommandCollection();
  6461. }
  6462. return this._commandCollection;
  6463. }
  6464. }
  6465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6467. public bool ClearBeforeFill {
  6468. get {
  6469. return this._clearBeforeFill;
  6470. }
  6471. set {
  6472. this._clearBeforeFill = value;
  6473. }
  6474. }
  6475. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6476. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6477. private void InitAdapter() {
  6478. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6479. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6480. tableMapping.SourceTable = "Table";
  6481. tableMapping.DataSetTable = "IndexPartner";
  6482. tableMapping.ColumnMappings.Add("idIndex", "idIndex");
  6483. tableMapping.ColumnMappings.Add("CodePartner", "CodePartner");
  6484. this._adapter.TableMappings.Add(tableMapping);
  6485. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6486. this._adapter.DeleteCommand.Connection = this.Connection;
  6487. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[IndexPartner] WHERE (([idIndex] = @Original_idIndex) AND ((@Is" +
  6488. "Null_CodePartner = 1 AND [CodePartner] IS NULL) OR ([CodePartner] = @Original_Co" +
  6489. "dePartner)))";
  6490. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6491. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6492. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6493. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6494. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6495. this._adapter.InsertCommand.Connection = this.Connection;
  6496. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[IndexPartner] ([CodePartner]) VALUES (@CodePartner);\r\nSELECT i" +
  6497. "dIndex, CodePartner FROM IndexPartner WHERE (idIndex = SCOPE_IDENTITY())";
  6498. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6499. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6500. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6501. this._adapter.UpdateCommand.Connection = this.Connection;
  6502. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[IndexPartner] SET [CodePartner] = @CodePartner WHERE (([idIndex] = @Original_idIndex) AND ((@IsNull_CodePartner = 1 AND [CodePartner] IS NULL) OR ([CodePartner] = @Original_CodePartner)));
  6503. SELECT idIndex, CodePartner FROM IndexPartner WHERE (idIndex = @idIndex)";
  6504. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6505. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6506. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6507. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6508. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodePartner", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodePartner", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6509. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idIndex", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6510. }
  6511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6513. private void InitConnection() {
  6514. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6515. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  6516. }
  6517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6519. private void InitCommandCollection() {
  6520. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6521. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6522. this._commandCollection[0].Connection = this.Connection;
  6523. this._commandCollection[0].CommandText = "SELECT idIndex, CodePartner FROM dbo.IndexPartner";
  6524. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6525. }
  6526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6528. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6529. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6530. public virtual int Fill(dbAlphapolAGDataSet.IndexPartnerDataTable dataTable) {
  6531. this.Adapter.SelectCommand = this.CommandCollection[0];
  6532. if ((this.ClearBeforeFill == true)) {
  6533. dataTable.Clear();
  6534. }
  6535. int returnValue = this.Adapter.Fill(dataTable);
  6536. return returnValue;
  6537. }
  6538. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6539. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6540. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6541. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6542. public virtual dbAlphapolAGDataSet.IndexPartnerDataTable GetData() {
  6543. this.Adapter.SelectCommand = this.CommandCollection[0];
  6544. dbAlphapolAGDataSet.IndexPartnerDataTable dataTable = new dbAlphapolAGDataSet.IndexPartnerDataTable();
  6545. this.Adapter.Fill(dataTable);
  6546. return dataTable;
  6547. }
  6548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6550. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6551. public virtual int Update(dbAlphapolAGDataSet.IndexPartnerDataTable dataTable) {
  6552. return this.Adapter.Update(dataTable);
  6553. }
  6554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6556. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6557. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  6558. return this.Adapter.Update(dataSet, "IndexPartner");
  6559. }
  6560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6562. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6563. public virtual int Update(global::System.Data.DataRow dataRow) {
  6564. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6565. dataRow});
  6566. }
  6567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6569. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6570. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6571. return this.Adapter.Update(dataRows);
  6572. }
  6573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6575. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6576. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6577. public virtual int Delete(int Original_idIndex, string Original_CodePartner) {
  6578. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idIndex));
  6579. if ((Original_CodePartner == null)) {
  6580. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6581. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6582. }
  6583. else {
  6584. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6585. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CodePartner));
  6586. }
  6587. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6588. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6589. != global::System.Data.ConnectionState.Open)) {
  6590. this.Adapter.DeleteCommand.Connection.Open();
  6591. }
  6592. try {
  6593. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6594. return returnValue;
  6595. }
  6596. finally {
  6597. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6598. this.Adapter.DeleteCommand.Connection.Close();
  6599. }
  6600. }
  6601. }
  6602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6604. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6605. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6606. public virtual int Insert(string CodePartner) {
  6607. if ((CodePartner == null)) {
  6608. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6609. }
  6610. else {
  6611. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CodePartner));
  6612. }
  6613. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  6614. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6615. != global::System.Data.ConnectionState.Open)) {
  6616. this.Adapter.InsertCommand.Connection.Open();
  6617. }
  6618. try {
  6619. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  6620. return returnValue;
  6621. }
  6622. finally {
  6623. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6624. this.Adapter.InsertCommand.Connection.Close();
  6625. }
  6626. }
  6627. }
  6628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6630. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6631. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6632. public virtual int Update(string CodePartner, int Original_idIndex, string Original_CodePartner, int idIndex) {
  6633. if ((CodePartner == null)) {
  6634. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  6635. }
  6636. else {
  6637. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CodePartner));
  6638. }
  6639. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idIndex));
  6640. if ((Original_CodePartner == null)) {
  6641. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  6642. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  6643. }
  6644. else {
  6645. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  6646. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_CodePartner));
  6647. }
  6648. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idIndex));
  6649. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  6650. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6651. != global::System.Data.ConnectionState.Open)) {
  6652. this.Adapter.UpdateCommand.Connection.Open();
  6653. }
  6654. try {
  6655. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  6656. return returnValue;
  6657. }
  6658. finally {
  6659. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6660. this.Adapter.UpdateCommand.Connection.Close();
  6661. }
  6662. }
  6663. }
  6664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6666. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6667. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  6668. public virtual int Update(string CodePartner, int Original_idIndex, string Original_CodePartner) {
  6669. return this.Update(CodePartner, Original_idIndex, Original_CodePartner, Original_idIndex);
  6670. }
  6671. }
  6672. /// <summary>
  6673. ///Represents the connection and commands used to retrieve and save data.
  6674. ///</summary>
  6675. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  6676. [global::System.ComponentModel.ToolboxItem(true)]
  6677. [global::System.ComponentModel.DataObjectAttribute(true)]
  6678. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  6679. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  6680. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6681. public partial class ManagerTableAdapter : global::System.ComponentModel.Component {
  6682. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  6683. private global::System.Data.SqlClient.SqlConnection _connection;
  6684. private global::System.Data.SqlClient.SqlTransaction _transaction;
  6685. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  6686. private bool _clearBeforeFill;
  6687. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6688. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6689. public ManagerTableAdapter() {
  6690. this.ClearBeforeFill = true;
  6691. }
  6692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6694. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  6695. get {
  6696. if ((this._adapter == null)) {
  6697. this.InitAdapter();
  6698. }
  6699. return this._adapter;
  6700. }
  6701. }
  6702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6704. internal global::System.Data.SqlClient.SqlConnection Connection {
  6705. get {
  6706. if ((this._connection == null)) {
  6707. this.InitConnection();
  6708. }
  6709. return this._connection;
  6710. }
  6711. set {
  6712. this._connection = value;
  6713. if ((this.Adapter.InsertCommand != null)) {
  6714. this.Adapter.InsertCommand.Connection = value;
  6715. }
  6716. if ((this.Adapter.DeleteCommand != null)) {
  6717. this.Adapter.DeleteCommand.Connection = value;
  6718. }
  6719. if ((this.Adapter.UpdateCommand != null)) {
  6720. this.Adapter.UpdateCommand.Connection = value;
  6721. }
  6722. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6723. if ((this.CommandCollection[i] != null)) {
  6724. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  6725. }
  6726. }
  6727. }
  6728. }
  6729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6730. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6731. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  6732. get {
  6733. return this._transaction;
  6734. }
  6735. set {
  6736. this._transaction = value;
  6737. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  6738. this.CommandCollection[i].Transaction = this._transaction;
  6739. }
  6740. if (((this.Adapter != null)
  6741. && (this.Adapter.DeleteCommand != null))) {
  6742. this.Adapter.DeleteCommand.Transaction = this._transaction;
  6743. }
  6744. if (((this.Adapter != null)
  6745. && (this.Adapter.InsertCommand != null))) {
  6746. this.Adapter.InsertCommand.Transaction = this._transaction;
  6747. }
  6748. if (((this.Adapter != null)
  6749. && (this.Adapter.UpdateCommand != null))) {
  6750. this.Adapter.UpdateCommand.Transaction = this._transaction;
  6751. }
  6752. }
  6753. }
  6754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6756. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  6757. get {
  6758. if ((this._commandCollection == null)) {
  6759. this.InitCommandCollection();
  6760. }
  6761. return this._commandCollection;
  6762. }
  6763. }
  6764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6766. public bool ClearBeforeFill {
  6767. get {
  6768. return this._clearBeforeFill;
  6769. }
  6770. set {
  6771. this._clearBeforeFill = value;
  6772. }
  6773. }
  6774. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6776. private void InitAdapter() {
  6777. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  6778. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  6779. tableMapping.SourceTable = "Table";
  6780. tableMapping.DataSetTable = "Manager";
  6781. tableMapping.ColumnMappings.Add("idManager", "idManager");
  6782. tableMapping.ColumnMappings.Add("Surname", "Surname");
  6783. tableMapping.ColumnMappings.Add("Name", "Name");
  6784. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  6785. tableMapping.ColumnMappings.Add("Login", "Login");
  6786. tableMapping.ColumnMappings.Add("Password", "Password");
  6787. tableMapping.ColumnMappings.Add("Photo", "Photo");
  6788. this._adapter.TableMappings.Add(tableMapping);
  6789. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  6790. this._adapter.DeleteCommand.Connection = this.Connection;
  6791. 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_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) 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)))";
  6792. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  6793. 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, "", "", ""));
  6794. 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, "", "", ""));
  6795. 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, "", "", ""));
  6796. 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, "", "", ""));
  6797. 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, "", "", ""));
  6798. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6799. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6800. 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, "", "", ""));
  6801. 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, "", "", ""));
  6802. 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, "", "", ""));
  6803. 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, "", "", ""));
  6804. 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, "", "", ""));
  6805. 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, "", "", ""));
  6806. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  6807. this._adapter.InsertCommand.Connection = this.Connection;
  6808. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Manager] ([Surname], [Name], [Patronymic], [Login], [Password], [Photo]) VALUES (@Surname, @Name, @Patronymic, @Login, @Password, @Photo);
  6809. SELECT idManager, Surname, Name, Patronymic, Login, Password, Photo FROM Manager WHERE (idManager = SCOPE_IDENTITY())";
  6810. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  6811. 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, "", "", ""));
  6812. 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, "", "", ""));
  6813. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6814. 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, "", "", ""));
  6815. 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, "", "", ""));
  6816. 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, "", "", ""));
  6817. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  6818. this._adapter.UpdateCommand.Connection = this.Connection;
  6819. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Manager] SET [Surname] = @Surname, [Name] = @Name, [Patronymic] = @Patronymic, [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_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) 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)));
  6820. SELECT idManager, Surname, Name, Patronymic, Login, Password, Photo FROM Manager WHERE (idManager = @idManager)";
  6821. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  6822. 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, "", "", ""));
  6823. 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, "", "", ""));
  6824. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  6825. 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, "", "", ""));
  6826. 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, "", "", ""));
  6827. 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, "", "", ""));
  6828. 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, "", "", ""));
  6829. 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, "", "", ""));
  6830. 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, "", "", ""));
  6831. 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, "", "", ""));
  6832. 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, "", "", ""));
  6833. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  6834. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  6835. 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, "", "", ""));
  6836. 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, "", "", ""));
  6837. 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, "", "", ""));
  6838. 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, "", "", ""));
  6839. 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, "", "", ""));
  6840. 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, "", "", ""));
  6841. 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, "", "", ""));
  6842. }
  6843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6845. private void InitConnection() {
  6846. this._connection = new global::System.Data.SqlClient.SqlConnection();
  6847. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  6848. }
  6849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6851. private void InitCommandCollection() {
  6852. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  6853. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  6854. this._commandCollection[0].Connection = this.Connection;
  6855. this._commandCollection[0].CommandText = "SELECT idManager, Surname, Name, Patronymic, Login, Password, Photo FROM dbo.Mana" +
  6856. "ger";
  6857. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  6858. }
  6859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6861. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6862. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  6863. public virtual int Fill(dbAlphapolAGDataSet.ManagerDataTable dataTable) {
  6864. this.Adapter.SelectCommand = this.CommandCollection[0];
  6865. if ((this.ClearBeforeFill == true)) {
  6866. dataTable.Clear();
  6867. }
  6868. int returnValue = this.Adapter.Fill(dataTable);
  6869. return returnValue;
  6870. }
  6871. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6872. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6873. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6874. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  6875. public virtual dbAlphapolAGDataSet.ManagerDataTable GetData() {
  6876. this.Adapter.SelectCommand = this.CommandCollection[0];
  6877. dbAlphapolAGDataSet.ManagerDataTable dataTable = new dbAlphapolAGDataSet.ManagerDataTable();
  6878. this.Adapter.Fill(dataTable);
  6879. return dataTable;
  6880. }
  6881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6883. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6884. public virtual int Update(dbAlphapolAGDataSet.ManagerDataTable dataTable) {
  6885. return this.Adapter.Update(dataTable);
  6886. }
  6887. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6888. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6889. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6890. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  6891. return this.Adapter.Update(dataSet, "Manager");
  6892. }
  6893. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6894. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6895. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6896. public virtual int Update(global::System.Data.DataRow dataRow) {
  6897. return this.Adapter.Update(new global::System.Data.DataRow[] {
  6898. dataRow});
  6899. }
  6900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6902. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6903. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  6904. return this.Adapter.Update(dataRows);
  6905. }
  6906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6908. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6909. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  6910. public virtual int Delete(int Original_idManager, string Original_Surname, string Original_Name, string Original_Patronymic, string Original_Login, string Original_Password, string Original_Photo) {
  6911. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idManager));
  6912. if ((Original_Surname == null)) {
  6913. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  6914. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  6915. }
  6916. else {
  6917. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  6918. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Surname));
  6919. }
  6920. if ((Original_Name == null)) {
  6921. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  6922. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  6923. }
  6924. else {
  6925. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  6926. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Name));
  6927. }
  6928. if ((Original_Patronymic == null)) {
  6929. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  6930. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  6931. }
  6932. else {
  6933. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  6934. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Patronymic));
  6935. }
  6936. if ((Original_Login == null)) {
  6937. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  6938. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  6939. }
  6940. else {
  6941. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  6942. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Login));
  6943. }
  6944. if ((Original_Password == null)) {
  6945. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  6946. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  6947. }
  6948. else {
  6949. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  6950. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Password));
  6951. }
  6952. if ((Original_Photo == null)) {
  6953. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  6954. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  6955. }
  6956. else {
  6957. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  6958. this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Photo));
  6959. }
  6960. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  6961. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  6962. != global::System.Data.ConnectionState.Open)) {
  6963. this.Adapter.DeleteCommand.Connection.Open();
  6964. }
  6965. try {
  6966. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  6967. return returnValue;
  6968. }
  6969. finally {
  6970. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  6971. this.Adapter.DeleteCommand.Connection.Close();
  6972. }
  6973. }
  6974. }
  6975. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6976. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  6977. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  6978. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  6979. public virtual int Insert(string Surname, string Name, string Patronymic, string Login, string Password, string Photo) {
  6980. if ((Surname == null)) {
  6981. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  6982. }
  6983. else {
  6984. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Surname));
  6985. }
  6986. if ((Name == null)) {
  6987. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  6988. }
  6989. else {
  6990. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  6991. }
  6992. if ((Patronymic == null)) {
  6993. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  6994. }
  6995. else {
  6996. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  6997. }
  6998. if ((Login == null)) {
  6999. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7000. }
  7001. else {
  7002. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Login));
  7003. }
  7004. if ((Password == null)) {
  7005. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  7006. }
  7007. else {
  7008. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Password));
  7009. }
  7010. if ((Photo == null)) {
  7011. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  7012. }
  7013. else {
  7014. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Photo));
  7015. }
  7016. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7017. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7018. != global::System.Data.ConnectionState.Open)) {
  7019. this.Adapter.InsertCommand.Connection.Open();
  7020. }
  7021. try {
  7022. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7023. return returnValue;
  7024. }
  7025. finally {
  7026. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7027. this.Adapter.InsertCommand.Connection.Close();
  7028. }
  7029. }
  7030. }
  7031. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7032. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7033. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7034. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7035. public virtual int Update(string Surname, string Name, string Patronymic, string Login, string Password, string Photo, int Original_idManager, string Original_Surname, string Original_Name, string Original_Patronymic, string Original_Login, string Original_Password, string Original_Photo, int idManager) {
  7036. if ((Surname == null)) {
  7037. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7038. }
  7039. else {
  7040. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Surname));
  7041. }
  7042. if ((Name == null)) {
  7043. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7044. }
  7045. else {
  7046. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  7047. }
  7048. if ((Patronymic == null)) {
  7049. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7050. }
  7051. else {
  7052. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  7053. }
  7054. if ((Login == null)) {
  7055. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7056. }
  7057. else {
  7058. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Login));
  7059. }
  7060. if ((Password == null)) {
  7061. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7062. }
  7063. else {
  7064. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Password));
  7065. }
  7066. if ((Photo == null)) {
  7067. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7068. }
  7069. else {
  7070. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Photo));
  7071. }
  7072. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_idManager));
  7073. if ((Original_Surname == null)) {
  7074. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  7075. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7076. }
  7077. else {
  7078. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  7079. this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Surname));
  7080. }
  7081. if ((Original_Name == null)) {
  7082. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  7083. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7084. }
  7085. else {
  7086. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  7087. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Name));
  7088. }
  7089. if ((Original_Patronymic == null)) {
  7090. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  7091. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7092. }
  7093. else {
  7094. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  7095. this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_Patronymic));
  7096. }
  7097. if ((Original_Login == null)) {
  7098. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
  7099. this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
  7100. }
  7101. else {
  7102. this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
  7103. this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_Login));
  7104. }
  7105. if ((Original_Password == null)) {
  7106. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  7107. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  7108. }
  7109. else {
  7110. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  7111. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Password));
  7112. }
  7113. if ((Original_Photo == null)) {
  7114. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  7115. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  7116. }
  7117. else {
  7118. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  7119. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Photo));
  7120. }
  7121. this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(idManager));
  7122. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7123. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7124. != global::System.Data.ConnectionState.Open)) {
  7125. this.Adapter.UpdateCommand.Connection.Open();
  7126. }
  7127. try {
  7128. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7129. return returnValue;
  7130. }
  7131. finally {
  7132. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7133. this.Adapter.UpdateCommand.Connection.Close();
  7134. }
  7135. }
  7136. }
  7137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7139. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7140. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7141. public virtual int Update(string Surname, string Name, string Patronymic, string Login, string Password, string Photo, int Original_idManager, string Original_Surname, string Original_Name, string Original_Patronymic, string Original_Login, string Original_Password, string Original_Photo) {
  7142. return this.Update(Surname, Name, Patronymic, Login, Password, Photo, Original_idManager, Original_Surname, Original_Name, Original_Patronymic, Original_Login, Original_Password, Original_Photo, Original_idManager);
  7143. }
  7144. }
  7145. /// <summary>
  7146. ///Represents the connection and commands used to retrieve and save data.
  7147. ///</summary>
  7148. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7149. [global::System.ComponentModel.ToolboxItem(true)]
  7150. [global::System.ComponentModel.DataObjectAttribute(true)]
  7151. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7152. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7153. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7154. public partial class PartnerTableAdapter : global::System.ComponentModel.Component {
  7155. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7156. private global::System.Data.SqlClient.SqlConnection _connection;
  7157. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7158. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7159. private bool _clearBeforeFill;
  7160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7162. public PartnerTableAdapter() {
  7163. this.ClearBeforeFill = true;
  7164. }
  7165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7167. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  7168. get {
  7169. if ((this._adapter == null)) {
  7170. this.InitAdapter();
  7171. }
  7172. return this._adapter;
  7173. }
  7174. }
  7175. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7176. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7177. internal global::System.Data.SqlClient.SqlConnection Connection {
  7178. get {
  7179. if ((this._connection == null)) {
  7180. this.InitConnection();
  7181. }
  7182. return this._connection;
  7183. }
  7184. set {
  7185. this._connection = value;
  7186. if ((this.Adapter.InsertCommand != null)) {
  7187. this.Adapter.InsertCommand.Connection = value;
  7188. }
  7189. if ((this.Adapter.DeleteCommand != null)) {
  7190. this.Adapter.DeleteCommand.Connection = value;
  7191. }
  7192. if ((this.Adapter.UpdateCommand != null)) {
  7193. this.Adapter.UpdateCommand.Connection = value;
  7194. }
  7195. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7196. if ((this.CommandCollection[i] != null)) {
  7197. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  7198. }
  7199. }
  7200. }
  7201. }
  7202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7204. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  7205. get {
  7206. return this._transaction;
  7207. }
  7208. set {
  7209. this._transaction = value;
  7210. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  7211. this.CommandCollection[i].Transaction = this._transaction;
  7212. }
  7213. if (((this.Adapter != null)
  7214. && (this.Adapter.DeleteCommand != null))) {
  7215. this.Adapter.DeleteCommand.Transaction = this._transaction;
  7216. }
  7217. if (((this.Adapter != null)
  7218. && (this.Adapter.InsertCommand != null))) {
  7219. this.Adapter.InsertCommand.Transaction = this._transaction;
  7220. }
  7221. if (((this.Adapter != null)
  7222. && (this.Adapter.UpdateCommand != null))) {
  7223. this.Adapter.UpdateCommand.Transaction = this._transaction;
  7224. }
  7225. }
  7226. }
  7227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7229. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  7230. get {
  7231. if ((this._commandCollection == null)) {
  7232. this.InitCommandCollection();
  7233. }
  7234. return this._commandCollection;
  7235. }
  7236. }
  7237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7239. public bool ClearBeforeFill {
  7240. get {
  7241. return this._clearBeforeFill;
  7242. }
  7243. set {
  7244. this._clearBeforeFill = value;
  7245. }
  7246. }
  7247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7249. private void InitAdapter() {
  7250. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  7251. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  7252. tableMapping.SourceTable = "Table";
  7253. tableMapping.DataSetTable = "Partner";
  7254. tableMapping.ColumnMappings.Add("idPartner", "idPartner");
  7255. tableMapping.ColumnMappings.Add("Surname", "Surname");
  7256. tableMapping.ColumnMappings.Add("Name", "Name");
  7257. tableMapping.ColumnMappings.Add("Patronymic", "Patronymic");
  7258. tableMapping.ColumnMappings.Add("Email", "Email");
  7259. tableMapping.ColumnMappings.Add("Phone", "Phone");
  7260. tableMapping.ColumnMappings.Add("idIndex", "idIndex");
  7261. tableMapping.ColumnMappings.Add("idCity", "idCity");
  7262. tableMapping.ColumnMappings.Add("idStreet", "idStreet");
  7263. tableMapping.ColumnMappings.Add("House", "House");
  7264. tableMapping.ColumnMappings.Add("INN", "INN");
  7265. tableMapping.ColumnMappings.Add("Rating", "Rating");
  7266. tableMapping.ColumnMappings.Add("idRegion", "idRegion");
  7267. tableMapping.ColumnMappings.Add("idTypePartner", "idTypePartner");
  7268. tableMapping.ColumnMappings.Add("NamePartner", "NamePartner");
  7269. this._adapter.TableMappings.Add(tableMapping);
  7270. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  7271. this._adapter.DeleteCommand.Connection = this.Connection;
  7272. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Partner] WHERE (([idPartner] = @Original_idPartner) 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_Patronymic = 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) 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_idIndex = 1 AND [idIndex] IS NULL) OR ([idIndex] = @Original_idIndex)) 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)) AND ((@IsNull_idRegion = 1 AND [idRegion] IS NULL) OR ([idRegion] = @Original_idRegion)) AND ((@IsNull_idTypePartner = 1 AND [idTypePartner] IS NULL) OR ([idTypePartner] = @Original_idTypePartner)) AND ((@IsNull_NamePartner = 1 AND [NamePartner] IS NULL) OR ([NamePartner] = @Original_NamePartner)))";
  7273. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  7274. 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, "", "", ""));
  7275. 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, "", "", ""));
  7276. 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, "", "", ""));
  7277. 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, "", "", ""));
  7278. 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, "", "", ""));
  7279. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7280. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7281. 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, "", "", ""));
  7282. 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, "", "", ""));
  7283. 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, "", "", ""));
  7284. 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, "", "", ""));
  7285. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7286. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7287. 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, "", "", ""));
  7288. 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, "", "", ""));
  7289. 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, "", "", ""));
  7290. 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, "", "", ""));
  7291. 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, "", "", ""));
  7292. 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, "", "", ""));
  7293. 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, "", "", ""));
  7294. 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, "", "", ""));
  7295. 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, "", "", ""));
  7296. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Rating", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7297. 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, "", "", ""));
  7298. 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, "", "", ""));
  7299. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7300. 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, "", "", ""));
  7301. 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, "", "", ""));
  7302. 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, "", "", ""));
  7303. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  7304. this._adapter.InsertCommand.Connection = this.Connection;
  7305. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Partner] ([Surname], [Name], [Patronymic], [Email], [Phone], [idIndex], [idCity], [idStreet], [House], [INN], [Rating], [idRegion], [idTypePartner], [NamePartner]) VALUES (@Surname, @Name, @Patronymic, @Email, @Phone, @idIndex, @idCity, @idStreet, @House, @INN, @Rating, @idRegion, @idTypePartner, @NamePartner);
  7306. SELECT idPartner, Surname, Name, Patronymic, Email, Phone, idIndex, idCity, idStreet, House, INN, Rating, idRegion, idTypePartner, NamePartner FROM Partner WHERE (idPartner = SCOPE_IDENTITY())";
  7307. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  7308. 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, "", "", ""));
  7309. 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, "", "", ""));
  7310. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7311. 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, "", "", ""));
  7312. 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, "", "", ""));
  7313. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7314. 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, "", "", ""));
  7315. 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, "", "", ""));
  7316. 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, "", "", ""));
  7317. 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, "", "", ""));
  7318. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Rating", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7319. 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, "", "", ""));
  7320. 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, "", "", ""));
  7321. 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, "", "", ""));
  7322. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  7323. this._adapter.UpdateCommand.Connection = this.Connection;
  7324. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Partner] SET [Surname] = @Surname, [Name] = @Name, [Patronymic] = @" +
  7325. "Patronymic, [Email] = @Email, [Phone] = @Phone, [idIndex] = @idIndex, [idCity] =" +
  7326. " @idCity, [idStreet] = @idStreet, [House] = @House, [INN] = @INN, [Rating] = @Ra" +
  7327. "ting, [idRegion] = @idRegion, [idTypePartner] = @idTypePartner, [NamePartner] = " +
  7328. "@NamePartner WHERE (([idPartner] = @Original_idPartner) AND ((@IsNull_Surname = " +
  7329. "1 AND [Surname] IS NULL) OR ([Surname] = @Original_Surname)) AND ((@IsNull_Name " +
  7330. "= 1 AND [Name] IS NULL) OR ([Name] = @Original_Name)) AND ((@IsNull_Patronymic =" +
  7331. " 1 AND [Patronymic] IS NULL) OR ([Patronymic] = @Original_Patronymic)) AND ((@Is" +
  7332. "Null_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNul" +
  7333. "l_Phone = 1 AND [Phone] IS NULL) OR ([Phone] = @Original_Phone)) AND ((@IsNull_i" +
  7334. "dIndex = 1 AND [idIndex] IS NULL) OR ([idIndex] = @Original_idIndex)) AND ((@IsN" +
  7335. "ull_idCity = 1 AND [idCity] IS NULL) OR ([idCity] = @Original_idCity)) AND ((@Is" +
  7336. "Null_idStreet = 1 AND [idStreet] IS NULL) OR ([idStreet] = @Original_idStreet)) " +
  7337. "AND ((@IsNull_House = 1 AND [House] IS NULL) OR ([House] = @Original_House)) AND" +
  7338. " ((@IsNull_INN = 1 AND [INN] IS NULL) OR ([INN] = @Original_INN)) AND ((@IsNull_" +
  7339. "Rating = 1 AND [Rating] IS NULL) OR ([Rating] = @Original_Rating)) AND ((@IsNull" +
  7340. "_idRegion = 1 AND [idRegion] IS NULL) OR ([idRegion] = @Original_idRegion)) AND " +
  7341. "((@IsNull_idTypePartner = 1 AND [idTypePartner] IS NULL) OR ([idTypePartner] = @" +
  7342. "Original_idTypePartner)) AND ((@IsNull_NamePartner = 1 AND [NamePartner] IS NULL" +
  7343. ") OR ([NamePartner] = @Original_NamePartner)));\r\nSELECT idPartner, Surname, Name" +
  7344. ", Patronymic, Email, Phone, idIndex, idCity, idStreet, House, INN, Rating, idReg" +
  7345. "ion, idTypePartner, NamePartner FROM Partner WHERE (idPartner = @idPartner)";
  7346. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  7347. 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, "", "", ""));
  7348. 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, "", "", ""));
  7349. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7350. 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, "", "", ""));
  7351. 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, "", "", ""));
  7352. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7353. 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, "", "", ""));
  7354. 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, "", "", ""));
  7355. 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, "", "", ""));
  7356. 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, "", "", ""));
  7357. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Rating", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  7358. 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, "", "", ""));
  7359. 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, "", "", ""));
  7360. 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, "", "", ""));
  7361. 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, "", "", ""));
  7362. 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, "", "", ""));
  7363. 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, "", "", ""));
  7364. 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, "", "", ""));
  7365. 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, "", "", ""));
  7366. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Patronymic", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7367. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Patronymic", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Patronymic", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7368. 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, "", "", ""));
  7369. 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, "", "", ""));
  7370. 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, "", "", ""));
  7371. 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, "", "", ""));
  7372. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7373. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idIndex", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idIndex", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7374. 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, "", "", ""));
  7375. 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, "", "", ""));
  7376. 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, "", "", ""));
  7377. 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, "", "", ""));
  7378. 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, "", "", ""));
  7379. 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, "", "", ""));
  7380. 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, "", "", ""));
  7381. 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, "", "", ""));
  7382. 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, "", "", ""));
  7383. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Rating", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Rating", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  7384. 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, "", "", ""));
  7385. 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, "", "", ""));
  7386. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idTypePartner", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypePartner", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  7387. 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, "", "", ""));
  7388. 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, "", "", ""));
  7389. 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, "", "", ""));
  7390. 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, "", "", ""));
  7391. }
  7392. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7394. private void InitConnection() {
  7395. this._connection = new global::System.Data.SqlClient.SqlConnection();
  7396. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  7397. }
  7398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7399. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7400. private void InitCommandCollection() {
  7401. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  7402. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  7403. this._commandCollection[0].Connection = this.Connection;
  7404. this._commandCollection[0].CommandText = "SELECT idPartner, Surname, Name, Patronymic, Email, Phone, idIndex, idCity, idStr" +
  7405. "eet, House, INN, Rating, idRegion, idTypePartner, NamePartner FROM dbo.Partner";
  7406. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  7407. }
  7408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7410. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7411. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  7412. public virtual int Fill(dbAlphapolAGDataSet.PartnerDataTable dataTable) {
  7413. this.Adapter.SelectCommand = this.CommandCollection[0];
  7414. if ((this.ClearBeforeFill == true)) {
  7415. dataTable.Clear();
  7416. }
  7417. int returnValue = this.Adapter.Fill(dataTable);
  7418. return returnValue;
  7419. }
  7420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7422. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7423. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  7424. public virtual dbAlphapolAGDataSet.PartnerDataTable GetData() {
  7425. this.Adapter.SelectCommand = this.CommandCollection[0];
  7426. dbAlphapolAGDataSet.PartnerDataTable dataTable = new dbAlphapolAGDataSet.PartnerDataTable();
  7427. this.Adapter.Fill(dataTable);
  7428. return dataTable;
  7429. }
  7430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7432. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7433. public virtual int Update(dbAlphapolAGDataSet.PartnerDataTable dataTable) {
  7434. return this.Adapter.Update(dataTable);
  7435. }
  7436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7438. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7439. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  7440. return this.Adapter.Update(dataSet, "Partner");
  7441. }
  7442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7444. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7445. public virtual int Update(global::System.Data.DataRow dataRow) {
  7446. return this.Adapter.Update(new global::System.Data.DataRow[] {
  7447. dataRow});
  7448. }
  7449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7451. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7452. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  7453. return this.Adapter.Update(dataRows);
  7454. }
  7455. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7456. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7457. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7458. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  7459. public virtual int Delete(int Original_idPartner, string Original_Surname, string Original_Name, string Original_Patronymic, string Original_Email, string Original_Phone, global::System.Nullable<int> Original_idIndex, global::System.Nullable<int> Original_idCity, global::System.Nullable<int> Original_idStreet, global::System.Nullable<int> Original_House, string Original_INN, string Original_Rating, global::System.Nullable<int> Original_idRegion, global::System.Nullable<int> Original_idTypePartner, string Original_NamePartner) {
  7460. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idPartner));
  7461. if ((Original_Surname == null)) {
  7462. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  7463. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  7464. }
  7465. else {
  7466. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  7467. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Surname));
  7468. }
  7469. if ((Original_Name == null)) {
  7470. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  7471. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  7472. }
  7473. else {
  7474. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  7475. this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_Name));
  7476. }
  7477. if ((Original_Patronymic == null)) {
  7478. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  7479. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  7480. }
  7481. else {
  7482. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  7483. this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_Patronymic));
  7484. }
  7485. if ((Original_Email == null)) {
  7486. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  7487. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  7488. }
  7489. else {
  7490. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  7491. this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Email));
  7492. }
  7493. if ((Original_Phone == null)) {
  7494. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
  7495. this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
  7496. }
  7497. else {
  7498. this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
  7499. this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_Phone));
  7500. }
  7501. if ((Original_idIndex.HasValue == true)) {
  7502. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
  7503. this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_idIndex.Value));
  7504. }
  7505. else {
  7506. this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
  7507. this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
  7508. }
  7509. if ((Original_idCity.HasValue == true)) {
  7510. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
  7511. this.Adapter.DeleteCommand.Parameters[14].Value = ((int)(Original_idCity.Value));
  7512. }
  7513. else {
  7514. this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
  7515. this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
  7516. }
  7517. if ((Original_idStreet.HasValue == true)) {
  7518. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(0));
  7519. this.Adapter.DeleteCommand.Parameters[16].Value = ((int)(Original_idStreet.Value));
  7520. }
  7521. else {
  7522. this.Adapter.DeleteCommand.Parameters[15].Value = ((object)(1));
  7523. this.Adapter.DeleteCommand.Parameters[16].Value = global::System.DBNull.Value;
  7524. }
  7525. if ((Original_House.HasValue == true)) {
  7526. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(0));
  7527. this.Adapter.DeleteCommand.Parameters[18].Value = ((int)(Original_House.Value));
  7528. }
  7529. else {
  7530. this.Adapter.DeleteCommand.Parameters[17].Value = ((object)(1));
  7531. this.Adapter.DeleteCommand.Parameters[18].Value = global::System.DBNull.Value;
  7532. }
  7533. if ((Original_INN == null)) {
  7534. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(1));
  7535. this.Adapter.DeleteCommand.Parameters[20].Value = global::System.DBNull.Value;
  7536. }
  7537. else {
  7538. this.Adapter.DeleteCommand.Parameters[19].Value = ((object)(0));
  7539. this.Adapter.DeleteCommand.Parameters[20].Value = ((string)(Original_INN));
  7540. }
  7541. if ((Original_Rating == null)) {
  7542. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(1));
  7543. this.Adapter.DeleteCommand.Parameters[22].Value = global::System.DBNull.Value;
  7544. }
  7545. else {
  7546. this.Adapter.DeleteCommand.Parameters[21].Value = ((object)(0));
  7547. this.Adapter.DeleteCommand.Parameters[22].Value = ((string)(Original_Rating));
  7548. }
  7549. if ((Original_idRegion.HasValue == true)) {
  7550. this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(0));
  7551. this.Adapter.DeleteCommand.Parameters[24].Value = ((int)(Original_idRegion.Value));
  7552. }
  7553. else {
  7554. this.Adapter.DeleteCommand.Parameters[23].Value = ((object)(1));
  7555. this.Adapter.DeleteCommand.Parameters[24].Value = global::System.DBNull.Value;
  7556. }
  7557. if ((Original_idTypePartner.HasValue == true)) {
  7558. this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(0));
  7559. this.Adapter.DeleteCommand.Parameters[26].Value = ((int)(Original_idTypePartner.Value));
  7560. }
  7561. else {
  7562. this.Adapter.DeleteCommand.Parameters[25].Value = ((object)(1));
  7563. this.Adapter.DeleteCommand.Parameters[26].Value = global::System.DBNull.Value;
  7564. }
  7565. if ((Original_NamePartner == null)) {
  7566. this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(1));
  7567. this.Adapter.DeleteCommand.Parameters[28].Value = global::System.DBNull.Value;
  7568. }
  7569. else {
  7570. this.Adapter.DeleteCommand.Parameters[27].Value = ((object)(0));
  7571. this.Adapter.DeleteCommand.Parameters[28].Value = ((string)(Original_NamePartner));
  7572. }
  7573. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  7574. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7575. != global::System.Data.ConnectionState.Open)) {
  7576. this.Adapter.DeleteCommand.Connection.Open();
  7577. }
  7578. try {
  7579. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  7580. return returnValue;
  7581. }
  7582. finally {
  7583. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7584. this.Adapter.DeleteCommand.Connection.Close();
  7585. }
  7586. }
  7587. }
  7588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7590. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7591. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  7592. public virtual int Insert(string Surname, string Name, string Patronymic, string Email, string Phone, global::System.Nullable<int> idIndex, global::System.Nullable<int> idCity, global::System.Nullable<int> idStreet, global::System.Nullable<int> House, string INN, string Rating, global::System.Nullable<int> idRegion, global::System.Nullable<int> idTypePartner, string NamePartner) {
  7593. if ((Surname == null)) {
  7594. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  7595. }
  7596. else {
  7597. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Surname));
  7598. }
  7599. if ((Name == null)) {
  7600. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  7601. }
  7602. else {
  7603. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
  7604. }
  7605. if ((Patronymic == null)) {
  7606. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  7607. }
  7608. else {
  7609. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Patronymic));
  7610. }
  7611. if ((Email == null)) {
  7612. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  7613. }
  7614. else {
  7615. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Email));
  7616. }
  7617. if ((Phone == null)) {
  7618. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  7619. }
  7620. else {
  7621. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Phone));
  7622. }
  7623. if ((idIndex.HasValue == true)) {
  7624. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(idIndex.Value));
  7625. }
  7626. else {
  7627. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  7628. }
  7629. if ((idCity.HasValue == true)) {
  7630. this.Adapter.InsertCommand.Parameters[6].Value = ((int)(idCity.Value));
  7631. }
  7632. else {
  7633. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  7634. }
  7635. if ((idStreet.HasValue == true)) {
  7636. this.Adapter.InsertCommand.Parameters[7].Value = ((int)(idStreet.Value));
  7637. }
  7638. else {
  7639. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  7640. }
  7641. if ((House.HasValue == true)) {
  7642. this.Adapter.InsertCommand.Parameters[8].Value = ((int)(House.Value));
  7643. }
  7644. else {
  7645. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  7646. }
  7647. if ((INN == null)) {
  7648. this.Adapter.InsertCommand.Parameters[9].Value = global::System.DBNull.Value;
  7649. }
  7650. else {
  7651. this.Adapter.InsertCommand.Parameters[9].Value = ((string)(INN));
  7652. }
  7653. if ((Rating == null)) {
  7654. this.Adapter.InsertCommand.Parameters[10].Value = global::System.DBNull.Value;
  7655. }
  7656. else {
  7657. this.Adapter.InsertCommand.Parameters[10].Value = ((string)(Rating));
  7658. }
  7659. if ((idRegion.HasValue == true)) {
  7660. this.Adapter.InsertCommand.Parameters[11].Value = ((int)(idRegion.Value));
  7661. }
  7662. else {
  7663. this.Adapter.InsertCommand.Parameters[11].Value = global::System.DBNull.Value;
  7664. }
  7665. if ((idTypePartner.HasValue == true)) {
  7666. this.Adapter.InsertCommand.Parameters[12].Value = ((int)(idTypePartner.Value));
  7667. }
  7668. else {
  7669. this.Adapter.InsertCommand.Parameters[12].Value = global::System.DBNull.Value;
  7670. }
  7671. if ((NamePartner == null)) {
  7672. this.Adapter.InsertCommand.Parameters[13].Value = global::System.DBNull.Value;
  7673. }
  7674. else {
  7675. this.Adapter.InsertCommand.Parameters[13].Value = ((string)(NamePartner));
  7676. }
  7677. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  7678. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7679. != global::System.Data.ConnectionState.Open)) {
  7680. this.Adapter.InsertCommand.Connection.Open();
  7681. }
  7682. try {
  7683. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  7684. return returnValue;
  7685. }
  7686. finally {
  7687. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7688. this.Adapter.InsertCommand.Connection.Close();
  7689. }
  7690. }
  7691. }
  7692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7693. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7694. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7695. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7696. public virtual int Update(
  7697. string Surname,
  7698. string Name,
  7699. string Patronymic,
  7700. string Email,
  7701. string Phone,
  7702. global::System.Nullable<int> idIndex,
  7703. global::System.Nullable<int> idCity,
  7704. global::System.Nullable<int> idStreet,
  7705. global::System.Nullable<int> House,
  7706. string INN,
  7707. string Rating,
  7708. global::System.Nullable<int> idRegion,
  7709. global::System.Nullable<int> idTypePartner,
  7710. string NamePartner,
  7711. int Original_idPartner,
  7712. string Original_Surname,
  7713. string Original_Name,
  7714. string Original_Patronymic,
  7715. string Original_Email,
  7716. string Original_Phone,
  7717. global::System.Nullable<int> Original_idIndex,
  7718. global::System.Nullable<int> Original_idCity,
  7719. global::System.Nullable<int> Original_idStreet,
  7720. global::System.Nullable<int> Original_House,
  7721. string Original_INN,
  7722. string Original_Rating,
  7723. global::System.Nullable<int> Original_idRegion,
  7724. global::System.Nullable<int> Original_idTypePartner,
  7725. string Original_NamePartner,
  7726. int idPartner) {
  7727. if ((Surname == null)) {
  7728. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  7729. }
  7730. else {
  7731. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Surname));
  7732. }
  7733. if ((Name == null)) {
  7734. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  7735. }
  7736. else {
  7737. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
  7738. }
  7739. if ((Patronymic == null)) {
  7740. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  7741. }
  7742. else {
  7743. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Patronymic));
  7744. }
  7745. if ((Email == null)) {
  7746. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  7747. }
  7748. else {
  7749. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Email));
  7750. }
  7751. if ((Phone == null)) {
  7752. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  7753. }
  7754. else {
  7755. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Phone));
  7756. }
  7757. if ((idIndex.HasValue == true)) {
  7758. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(idIndex.Value));
  7759. }
  7760. else {
  7761. this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
  7762. }
  7763. if ((idCity.HasValue == true)) {
  7764. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(idCity.Value));
  7765. }
  7766. else {
  7767. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  7768. }
  7769. if ((idStreet.HasValue == true)) {
  7770. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(idStreet.Value));
  7771. }
  7772. else {
  7773. this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
  7774. }
  7775. if ((House.HasValue == true)) {
  7776. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(House.Value));
  7777. }
  7778. else {
  7779. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  7780. }
  7781. if ((INN == null)) {
  7782. this.Adapter.UpdateCommand.Parameters[9].Value = global::System.DBNull.Value;
  7783. }
  7784. else {
  7785. this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(INN));
  7786. }
  7787. if ((Rating == null)) {
  7788. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  7789. }
  7790. else {
  7791. this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Rating));
  7792. }
  7793. if ((idRegion.HasValue == true)) {
  7794. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(idRegion.Value));
  7795. }
  7796. else {
  7797. this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
  7798. }
  7799. if ((idTypePartner.HasValue == true)) {
  7800. this.Adapter.UpdateCommand.Parameters[12].Value = ((int)(idTypePartner.Value));
  7801. }
  7802. else {
  7803. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  7804. }
  7805. if ((NamePartner == null)) {
  7806. this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
  7807. }
  7808. else {
  7809. this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(NamePartner));
  7810. }
  7811. this.Adapter.UpdateCommand.Parameters[14].Value = ((int)(Original_idPartner));
  7812. if ((Original_Surname == null)) {
  7813. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
  7814. this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
  7815. }
  7816. else {
  7817. this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
  7818. this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Surname));
  7819. }
  7820. if ((Original_Name == null)) {
  7821. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
  7822. this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
  7823. }
  7824. else {
  7825. this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
  7826. this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Name));
  7827. }
  7828. if ((Original_Patronymic == null)) {
  7829. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
  7830. this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
  7831. }
  7832. else {
  7833. this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
  7834. this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_Patronymic));
  7835. }
  7836. if ((Original_Email == null)) {
  7837. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
  7838. this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
  7839. }
  7840. else {
  7841. this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
  7842. this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_Email));
  7843. }
  7844. if ((Original_Phone == null)) {
  7845. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(1));
  7846. this.Adapter.UpdateCommand.Parameters[24].Value = global::System.DBNull.Value;
  7847. }
  7848. else {
  7849. this.Adapter.UpdateCommand.Parameters[23].Value = ((object)(0));
  7850. this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_Phone));
  7851. }
  7852. if ((Original_idIndex.HasValue == true)) {
  7853. this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(0));
  7854. this.Adapter.UpdateCommand.Parameters[26].Value = ((int)(Original_idIndex.Value));
  7855. }
  7856. else {
  7857. this.Adapter.UpdateCommand.Parameters[25].Value = ((object)(1));
  7858. this.Adapter.UpdateCommand.Parameters[26].Value = global::System.DBNull.Value;
  7859. }
  7860. if ((Original_idCity.HasValue == true)) {
  7861. this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(0));
  7862. this.Adapter.UpdateCommand.Parameters[28].Value = ((int)(Original_idCity.Value));
  7863. }
  7864. else {
  7865. this.Adapter.UpdateCommand.Parameters[27].Value = ((object)(1));
  7866. this.Adapter.UpdateCommand.Parameters[28].Value = global::System.DBNull.Value;
  7867. }
  7868. if ((Original_idStreet.HasValue == true)) {
  7869. this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(0));
  7870. this.Adapter.UpdateCommand.Parameters[30].Value = ((int)(Original_idStreet.Value));
  7871. }
  7872. else {
  7873. this.Adapter.UpdateCommand.Parameters[29].Value = ((object)(1));
  7874. this.Adapter.UpdateCommand.Parameters[30].Value = global::System.DBNull.Value;
  7875. }
  7876. if ((Original_House.HasValue == true)) {
  7877. this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(0));
  7878. this.Adapter.UpdateCommand.Parameters[32].Value = ((int)(Original_House.Value));
  7879. }
  7880. else {
  7881. this.Adapter.UpdateCommand.Parameters[31].Value = ((object)(1));
  7882. this.Adapter.UpdateCommand.Parameters[32].Value = global::System.DBNull.Value;
  7883. }
  7884. if ((Original_INN == null)) {
  7885. this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(1));
  7886. this.Adapter.UpdateCommand.Parameters[34].Value = global::System.DBNull.Value;
  7887. }
  7888. else {
  7889. this.Adapter.UpdateCommand.Parameters[33].Value = ((object)(0));
  7890. this.Adapter.UpdateCommand.Parameters[34].Value = ((string)(Original_INN));
  7891. }
  7892. if ((Original_Rating == null)) {
  7893. this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(1));
  7894. this.Adapter.UpdateCommand.Parameters[36].Value = global::System.DBNull.Value;
  7895. }
  7896. else {
  7897. this.Adapter.UpdateCommand.Parameters[35].Value = ((object)(0));
  7898. this.Adapter.UpdateCommand.Parameters[36].Value = ((string)(Original_Rating));
  7899. }
  7900. if ((Original_idRegion.HasValue == true)) {
  7901. this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(0));
  7902. this.Adapter.UpdateCommand.Parameters[38].Value = ((int)(Original_idRegion.Value));
  7903. }
  7904. else {
  7905. this.Adapter.UpdateCommand.Parameters[37].Value = ((object)(1));
  7906. this.Adapter.UpdateCommand.Parameters[38].Value = global::System.DBNull.Value;
  7907. }
  7908. if ((Original_idTypePartner.HasValue == true)) {
  7909. this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(0));
  7910. this.Adapter.UpdateCommand.Parameters[40].Value = ((int)(Original_idTypePartner.Value));
  7911. }
  7912. else {
  7913. this.Adapter.UpdateCommand.Parameters[39].Value = ((object)(1));
  7914. this.Adapter.UpdateCommand.Parameters[40].Value = global::System.DBNull.Value;
  7915. }
  7916. if ((Original_NamePartner == null)) {
  7917. this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(1));
  7918. this.Adapter.UpdateCommand.Parameters[42].Value = global::System.DBNull.Value;
  7919. }
  7920. else {
  7921. this.Adapter.UpdateCommand.Parameters[41].Value = ((object)(0));
  7922. this.Adapter.UpdateCommand.Parameters[42].Value = ((string)(Original_NamePartner));
  7923. }
  7924. this.Adapter.UpdateCommand.Parameters[43].Value = ((int)(idPartner));
  7925. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  7926. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  7927. != global::System.Data.ConnectionState.Open)) {
  7928. this.Adapter.UpdateCommand.Connection.Open();
  7929. }
  7930. try {
  7931. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  7932. return returnValue;
  7933. }
  7934. finally {
  7935. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  7936. this.Adapter.UpdateCommand.Connection.Close();
  7937. }
  7938. }
  7939. }
  7940. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7941. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7942. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7943. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  7944. public virtual int Update(
  7945. string Surname,
  7946. string Name,
  7947. string Patronymic,
  7948. string Email,
  7949. string Phone,
  7950. global::System.Nullable<int> idIndex,
  7951. global::System.Nullable<int> idCity,
  7952. global::System.Nullable<int> idStreet,
  7953. global::System.Nullable<int> House,
  7954. string INN,
  7955. string Rating,
  7956. global::System.Nullable<int> idRegion,
  7957. global::System.Nullable<int> idTypePartner,
  7958. string NamePartner,
  7959. int Original_idPartner,
  7960. string Original_Surname,
  7961. string Original_Name,
  7962. string Original_Patronymic,
  7963. string Original_Email,
  7964. string Original_Phone,
  7965. global::System.Nullable<int> Original_idIndex,
  7966. global::System.Nullable<int> Original_idCity,
  7967. global::System.Nullable<int> Original_idStreet,
  7968. global::System.Nullable<int> Original_House,
  7969. string Original_INN,
  7970. string Original_Rating,
  7971. global::System.Nullable<int> Original_idRegion,
  7972. global::System.Nullable<int> Original_idTypePartner,
  7973. string Original_NamePartner) {
  7974. return this.Update(Surname, Name, Patronymic, Email, Phone, idIndex, idCity, idStreet, House, INN, Rating, idRegion, idTypePartner, NamePartner, Original_idPartner, Original_Surname, Original_Name, Original_Patronymic, Original_Email, Original_Phone, Original_idIndex, Original_idCity, Original_idStreet, Original_House, Original_INN, Original_Rating, Original_idRegion, Original_idTypePartner, Original_NamePartner, Original_idPartner);
  7975. }
  7976. }
  7977. /// <summary>
  7978. ///Represents the connection and commands used to retrieve and save data.
  7979. ///</summary>
  7980. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  7981. [global::System.ComponentModel.ToolboxItem(true)]
  7982. [global::System.ComponentModel.DataObjectAttribute(true)]
  7983. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  7984. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  7985. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  7986. public partial class ProductPartnerTableAdapter : global::System.ComponentModel.Component {
  7987. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  7988. private global::System.Data.SqlClient.SqlConnection _connection;
  7989. private global::System.Data.SqlClient.SqlTransaction _transaction;
  7990. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  7991. private bool _clearBeforeFill;
  7992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7993. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7994. public ProductPartnerTableAdapter() {
  7995. this.ClearBeforeFill = true;
  7996. }
  7997. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  7999. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8000. get {
  8001. if ((this._adapter == null)) {
  8002. this.InitAdapter();
  8003. }
  8004. return this._adapter;
  8005. }
  8006. }
  8007. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8008. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8009. internal global::System.Data.SqlClient.SqlConnection Connection {
  8010. get {
  8011. if ((this._connection == null)) {
  8012. this.InitConnection();
  8013. }
  8014. return this._connection;
  8015. }
  8016. set {
  8017. this._connection = value;
  8018. if ((this.Adapter.InsertCommand != null)) {
  8019. this.Adapter.InsertCommand.Connection = value;
  8020. }
  8021. if ((this.Adapter.DeleteCommand != null)) {
  8022. this.Adapter.DeleteCommand.Connection = value;
  8023. }
  8024. if ((this.Adapter.UpdateCommand != null)) {
  8025. this.Adapter.UpdateCommand.Connection = value;
  8026. }
  8027. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8028. if ((this.CommandCollection[i] != null)) {
  8029. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8030. }
  8031. }
  8032. }
  8033. }
  8034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8036. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8037. get {
  8038. return this._transaction;
  8039. }
  8040. set {
  8041. this._transaction = value;
  8042. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8043. this.CommandCollection[i].Transaction = this._transaction;
  8044. }
  8045. if (((this.Adapter != null)
  8046. && (this.Adapter.DeleteCommand != null))) {
  8047. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8048. }
  8049. if (((this.Adapter != null)
  8050. && (this.Adapter.InsertCommand != null))) {
  8051. this.Adapter.InsertCommand.Transaction = this._transaction;
  8052. }
  8053. if (((this.Adapter != null)
  8054. && (this.Adapter.UpdateCommand != null))) {
  8055. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8056. }
  8057. }
  8058. }
  8059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8061. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8062. get {
  8063. if ((this._commandCollection == null)) {
  8064. this.InitCommandCollection();
  8065. }
  8066. return this._commandCollection;
  8067. }
  8068. }
  8069. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8070. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8071. public bool ClearBeforeFill {
  8072. get {
  8073. return this._clearBeforeFill;
  8074. }
  8075. set {
  8076. this._clearBeforeFill = value;
  8077. }
  8078. }
  8079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8080. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8081. private void InitAdapter() {
  8082. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8083. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8084. tableMapping.SourceTable = "Table";
  8085. tableMapping.DataSetTable = "ProductPartner";
  8086. tableMapping.ColumnMappings.Add("idPartnerProduct", "idPartnerProduct");
  8087. tableMapping.ColumnMappings.Add("idProduct", "idProduct");
  8088. tableMapping.ColumnMappings.Add("idPartner", "idPartner");
  8089. tableMapping.ColumnMappings.Add("CountProduct", "CountProduct");
  8090. tableMapping.ColumnMappings.Add("DateSale", "DateSale");
  8091. this._adapter.TableMappings.Add(tableMapping);
  8092. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8093. this._adapter.DeleteCommand.Connection = this.Connection;
  8094. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ProductPartner] 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)))";
  8095. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8096. 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, "", "", ""));
  8097. 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, "", "", ""));
  8098. 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, "", "", ""));
  8099. 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, "", "", ""));
  8100. 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, "", "", ""));
  8101. 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, "", "", ""));
  8102. 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, "", "", ""));
  8103. 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, "", "", ""));
  8104. 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, "", "", ""));
  8105. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8106. this._adapter.InsertCommand.Connection = this.Connection;
  8107. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ProductPartner] ([idProduct], [idPartner], [CountProduct], [DateSale]) VALUES (@idProduct, @idPartner, @CountProduct, @DateSale);
  8108. SELECT idPartnerProduct, idProduct, idPartner, CountProduct, DateSale FROM ProductPartner WHERE (idPartnerProduct = SCOPE_IDENTITY())";
  8109. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8110. 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, "", "", ""));
  8111. 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, "", "", ""));
  8112. 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, "", "", ""));
  8113. 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, "", "", ""));
  8114. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8115. this._adapter.UpdateCommand.Connection = this.Connection;
  8116. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductPartner] 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)));
  8117. SELECT idPartnerProduct, idProduct, idPartner, CountProduct, DateSale FROM ProductPartner WHERE (idPartnerProduct = @idPartnerProduct)";
  8118. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8119. 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, "", "", ""));
  8120. 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, "", "", ""));
  8121. 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, "", "", ""));
  8122. 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, "", "", ""));
  8123. 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, "", "", ""));
  8124. 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, "", "", ""));
  8125. 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, "", "", ""));
  8126. 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, "", "", ""));
  8127. 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, "", "", ""));
  8128. 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, "", "", ""));
  8129. 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, "", "", ""));
  8130. 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, "", "", ""));
  8131. 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, "", "", ""));
  8132. 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, "", "", ""));
  8133. }
  8134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8136. private void InitConnection() {
  8137. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8138. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  8139. }
  8140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8142. private void InitCommandCollection() {
  8143. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8144. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8145. this._commandCollection[0].Connection = this.Connection;
  8146. this._commandCollection[0].CommandText = "SELECT idPartnerProduct, idProduct, idPartner, CountProduct, DateSale FROM dbo.Pr" +
  8147. "oductPartner";
  8148. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8149. }
  8150. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8151. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8152. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8153. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8154. public virtual int Fill(dbAlphapolAGDataSet.ProductPartnerDataTable dataTable) {
  8155. this.Adapter.SelectCommand = this.CommandCollection[0];
  8156. if ((this.ClearBeforeFill == true)) {
  8157. dataTable.Clear();
  8158. }
  8159. int returnValue = this.Adapter.Fill(dataTable);
  8160. return returnValue;
  8161. }
  8162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8164. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8165. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8166. public virtual dbAlphapolAGDataSet.ProductPartnerDataTable GetData() {
  8167. this.Adapter.SelectCommand = this.CommandCollection[0];
  8168. dbAlphapolAGDataSet.ProductPartnerDataTable dataTable = new dbAlphapolAGDataSet.ProductPartnerDataTable();
  8169. this.Adapter.Fill(dataTable);
  8170. return dataTable;
  8171. }
  8172. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8173. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8174. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8175. public virtual int Update(dbAlphapolAGDataSet.ProductPartnerDataTable dataTable) {
  8176. return this.Adapter.Update(dataTable);
  8177. }
  8178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8180. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8181. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  8182. return this.Adapter.Update(dataSet, "ProductPartner");
  8183. }
  8184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8185. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8186. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8187. public virtual int Update(global::System.Data.DataRow dataRow) {
  8188. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8189. dataRow});
  8190. }
  8191. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8192. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8193. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8194. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8195. return this.Adapter.Update(dataRows);
  8196. }
  8197. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8198. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8199. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8200. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8201. 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) {
  8202. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idPartnerProduct));
  8203. if ((Original_idProduct.HasValue == true)) {
  8204. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8205. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_idProduct.Value));
  8206. }
  8207. else {
  8208. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8209. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8210. }
  8211. if ((Original_idPartner.HasValue == true)) {
  8212. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8213. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_idPartner.Value));
  8214. }
  8215. else {
  8216. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8217. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8218. }
  8219. if ((Original_CountProduct.HasValue == true)) {
  8220. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  8221. this.Adapter.DeleteCommand.Parameters[6].Value = ((int)(Original_CountProduct.Value));
  8222. }
  8223. else {
  8224. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  8225. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  8226. }
  8227. if ((Original_DateSale.HasValue == true)) {
  8228. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
  8229. this.Adapter.DeleteCommand.Parameters[8].Value = ((System.DateTime)(Original_DateSale.Value));
  8230. }
  8231. else {
  8232. this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
  8233. this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
  8234. }
  8235. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8236. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8237. != global::System.Data.ConnectionState.Open)) {
  8238. this.Adapter.DeleteCommand.Connection.Open();
  8239. }
  8240. try {
  8241. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8242. return returnValue;
  8243. }
  8244. finally {
  8245. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8246. this.Adapter.DeleteCommand.Connection.Close();
  8247. }
  8248. }
  8249. }
  8250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8251. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8252. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8253. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8254. 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) {
  8255. if ((idProduct.HasValue == true)) {
  8256. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idProduct.Value));
  8257. }
  8258. else {
  8259. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8260. }
  8261. if ((idPartner.HasValue == true)) {
  8262. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(idPartner.Value));
  8263. }
  8264. else {
  8265. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8266. }
  8267. if ((CountProduct.HasValue == true)) {
  8268. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(CountProduct.Value));
  8269. }
  8270. else {
  8271. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8272. }
  8273. if ((DateSale.HasValue == true)) {
  8274. this.Adapter.InsertCommand.Parameters[3].Value = ((System.DateTime)(DateSale.Value));
  8275. }
  8276. else {
  8277. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8278. }
  8279. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8280. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8281. != global::System.Data.ConnectionState.Open)) {
  8282. this.Adapter.InsertCommand.Connection.Open();
  8283. }
  8284. try {
  8285. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8286. return returnValue;
  8287. }
  8288. finally {
  8289. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8290. this.Adapter.InsertCommand.Connection.Close();
  8291. }
  8292. }
  8293. }
  8294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8296. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8297. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8298. 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) {
  8299. if ((idProduct.HasValue == true)) {
  8300. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idProduct.Value));
  8301. }
  8302. else {
  8303. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8304. }
  8305. if ((idPartner.HasValue == true)) {
  8306. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(idPartner.Value));
  8307. }
  8308. else {
  8309. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8310. }
  8311. if ((CountProduct.HasValue == true)) {
  8312. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(CountProduct.Value));
  8313. }
  8314. else {
  8315. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8316. }
  8317. if ((DateSale.HasValue == true)) {
  8318. this.Adapter.UpdateCommand.Parameters[3].Value = ((System.DateTime)(DateSale.Value));
  8319. }
  8320. else {
  8321. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8322. }
  8323. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_idPartnerProduct));
  8324. if ((Original_idProduct.HasValue == true)) {
  8325. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  8326. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_idProduct.Value));
  8327. }
  8328. else {
  8329. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  8330. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8331. }
  8332. if ((Original_idPartner.HasValue == true)) {
  8333. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  8334. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_idPartner.Value));
  8335. }
  8336. else {
  8337. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  8338. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  8339. }
  8340. if ((Original_CountProduct.HasValue == true)) {
  8341. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8342. this.Adapter.UpdateCommand.Parameters[10].Value = ((int)(Original_CountProduct.Value));
  8343. }
  8344. else {
  8345. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8346. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8347. }
  8348. if ((Original_DateSale.HasValue == true)) {
  8349. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
  8350. this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(Original_DateSale.Value));
  8351. }
  8352. else {
  8353. this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
  8354. this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
  8355. }
  8356. this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(idPartnerProduct));
  8357. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8358. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8359. != global::System.Data.ConnectionState.Open)) {
  8360. this.Adapter.UpdateCommand.Connection.Open();
  8361. }
  8362. try {
  8363. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8364. return returnValue;
  8365. }
  8366. finally {
  8367. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8368. this.Adapter.UpdateCommand.Connection.Close();
  8369. }
  8370. }
  8371. }
  8372. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8373. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8374. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8375. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8376. 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) {
  8377. return this.Update(idProduct, idPartner, CountProduct, DateSale, Original_idPartnerProduct, Original_idProduct, Original_idPartner, Original_CountProduct, Original_DateSale, Original_idPartnerProduct);
  8378. }
  8379. }
  8380. /// <summary>
  8381. ///Represents the connection and commands used to retrieve and save data.
  8382. ///</summary>
  8383. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8384. [global::System.ComponentModel.ToolboxItem(true)]
  8385. [global::System.ComponentModel.DataObjectAttribute(true)]
  8386. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8387. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8388. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8389. public partial class ProductsTableAdapter : global::System.ComponentModel.Component {
  8390. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8391. private global::System.Data.SqlClient.SqlConnection _connection;
  8392. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8393. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8394. private bool _clearBeforeFill;
  8395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8397. public ProductsTableAdapter() {
  8398. this.ClearBeforeFill = true;
  8399. }
  8400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8401. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8402. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8403. get {
  8404. if ((this._adapter == null)) {
  8405. this.InitAdapter();
  8406. }
  8407. return this._adapter;
  8408. }
  8409. }
  8410. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8412. internal global::System.Data.SqlClient.SqlConnection Connection {
  8413. get {
  8414. if ((this._connection == null)) {
  8415. this.InitConnection();
  8416. }
  8417. return this._connection;
  8418. }
  8419. set {
  8420. this._connection = value;
  8421. if ((this.Adapter.InsertCommand != null)) {
  8422. this.Adapter.InsertCommand.Connection = value;
  8423. }
  8424. if ((this.Adapter.DeleteCommand != null)) {
  8425. this.Adapter.DeleteCommand.Connection = value;
  8426. }
  8427. if ((this.Adapter.UpdateCommand != null)) {
  8428. this.Adapter.UpdateCommand.Connection = value;
  8429. }
  8430. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8431. if ((this.CommandCollection[i] != null)) {
  8432. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8433. }
  8434. }
  8435. }
  8436. }
  8437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8439. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8440. get {
  8441. return this._transaction;
  8442. }
  8443. set {
  8444. this._transaction = value;
  8445. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8446. this.CommandCollection[i].Transaction = this._transaction;
  8447. }
  8448. if (((this.Adapter != null)
  8449. && (this.Adapter.DeleteCommand != null))) {
  8450. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8451. }
  8452. if (((this.Adapter != null)
  8453. && (this.Adapter.InsertCommand != null))) {
  8454. this.Adapter.InsertCommand.Transaction = this._transaction;
  8455. }
  8456. if (((this.Adapter != null)
  8457. && (this.Adapter.UpdateCommand != null))) {
  8458. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8459. }
  8460. }
  8461. }
  8462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8464. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8465. get {
  8466. if ((this._commandCollection == null)) {
  8467. this.InitCommandCollection();
  8468. }
  8469. return this._commandCollection;
  8470. }
  8471. }
  8472. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8473. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8474. public bool ClearBeforeFill {
  8475. get {
  8476. return this._clearBeforeFill;
  8477. }
  8478. set {
  8479. this._clearBeforeFill = value;
  8480. }
  8481. }
  8482. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8483. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8484. private void InitAdapter() {
  8485. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8486. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8487. tableMapping.SourceTable = "Table";
  8488. tableMapping.DataSetTable = "Products";
  8489. tableMapping.ColumnMappings.Add("idProduct", "idProduct");
  8490. tableMapping.ColumnMappings.Add("idTypeProduct", "idTypeProduct");
  8491. tableMapping.ColumnMappings.Add("NameProduct", "NameProduct");
  8492. tableMapping.ColumnMappings.Add("Article", "Article");
  8493. tableMapping.ColumnMappings.Add("MinCost", "MinCost");
  8494. this._adapter.TableMappings.Add(tableMapping);
  8495. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8496. this._adapter.DeleteCommand.Connection = this.Connection;
  8497. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Products] WHERE (([idProduct] = @Original_idProduct) AND ((@IsNull_idTypeProduct = 1 AND [idTypeProduct] IS NULL) OR ([idTypeProduct] = @Original_idTypeProduct)) AND ((@IsNull_Article = 1 AND [Article] IS NULL) OR ([Article] = @Original_Article)) AND ((@IsNull_MinCost = 1 AND [MinCost] IS NULL) OR ([MinCost] = @Original_MinCost)))";
  8498. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8499. 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, "", "", ""));
  8500. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8501. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8502. 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, "", "", ""));
  8503. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Article", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8504. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MinCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8505. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MinCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8506. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8507. this._adapter.InsertCommand.Connection = this.Connection;
  8508. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Products] ([idTypeProduct], [NameProduct], [Article], [MinCost]) VALUES (@idTypeProduct, @NameProduct, @Article, @MinCost);
  8509. SELECT idProduct, idTypeProduct, NameProduct, Article, MinCost FROM Products WHERE (idProduct = SCOPE_IDENTITY())";
  8510. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8511. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8512. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NameProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8513. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Article", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8514. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MinCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8515. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8516. this._adapter.UpdateCommand.Connection = this.Connection;
  8517. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Products] SET [idTypeProduct] = @idTypeProduct, [NameProduct] = @NameProduct, [Article] = @Article, [MinCost] = @MinCost WHERE (([idProduct] = @Original_idProduct) AND ((@IsNull_idTypeProduct = 1 AND [idTypeProduct] IS NULL) OR ([idTypeProduct] = @Original_idTypeProduct)) AND ((@IsNull_Article = 1 AND [Article] IS NULL) OR ([Article] = @Original_Article)) AND ((@IsNull_MinCost = 1 AND [MinCost] IS NULL) OR ([MinCost] = @Original_MinCost)));
  8518. SELECT idProduct, idTypeProduct, NameProduct, Article, MinCost FROM Products WHERE (idProduct = @idProduct)";
  8519. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8520. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8521. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NameProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "NameProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8522. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Article", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8523. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MinCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  8524. 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, "", "", ""));
  8525. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8526. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8527. 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, "", "", ""));
  8528. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Article", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Article", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8529. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MinCost", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  8530. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MinCost", global::System.Data.SqlDbType.Money, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MinCost", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  8531. 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, "", "", ""));
  8532. }
  8533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8535. private void InitConnection() {
  8536. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8537. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  8538. }
  8539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8541. private void InitCommandCollection() {
  8542. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8543. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8544. this._commandCollection[0].Connection = this.Connection;
  8545. this._commandCollection[0].CommandText = "SELECT idProduct, idTypeProduct, NameProduct, Article, MinCost FROM dbo.Products";
  8546. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8547. }
  8548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8550. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8551. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8552. public virtual int Fill(dbAlphapolAGDataSet.ProductsDataTable dataTable) {
  8553. this.Adapter.SelectCommand = this.CommandCollection[0];
  8554. if ((this.ClearBeforeFill == true)) {
  8555. dataTable.Clear();
  8556. }
  8557. int returnValue = this.Adapter.Fill(dataTable);
  8558. return returnValue;
  8559. }
  8560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8562. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8563. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8564. public virtual dbAlphapolAGDataSet.ProductsDataTable GetData() {
  8565. this.Adapter.SelectCommand = this.CommandCollection[0];
  8566. dbAlphapolAGDataSet.ProductsDataTable dataTable = new dbAlphapolAGDataSet.ProductsDataTable();
  8567. this.Adapter.Fill(dataTable);
  8568. return dataTable;
  8569. }
  8570. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8571. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8572. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8573. public virtual int Update(dbAlphapolAGDataSet.ProductsDataTable dataTable) {
  8574. return this.Adapter.Update(dataTable);
  8575. }
  8576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8578. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8579. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  8580. return this.Adapter.Update(dataSet, "Products");
  8581. }
  8582. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8583. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8584. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8585. public virtual int Update(global::System.Data.DataRow dataRow) {
  8586. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8587. dataRow});
  8588. }
  8589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8591. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8592. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8593. return this.Adapter.Update(dataRows);
  8594. }
  8595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8597. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8598. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8599. public virtual int Delete(int Original_idProduct, global::System.Nullable<int> Original_idTypeProduct, global::System.Nullable<int> Original_Article, global::System.Nullable<decimal> Original_MinCost) {
  8600. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idProduct));
  8601. if ((Original_idTypeProduct.HasValue == true)) {
  8602. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8603. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_idTypeProduct.Value));
  8604. }
  8605. else {
  8606. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8607. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8608. }
  8609. if ((Original_Article.HasValue == true)) {
  8610. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  8611. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Article.Value));
  8612. }
  8613. else {
  8614. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  8615. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  8616. }
  8617. if ((Original_MinCost.HasValue == true)) {
  8618. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
  8619. this.Adapter.DeleteCommand.Parameters[6].Value = ((decimal)(Original_MinCost.Value));
  8620. }
  8621. else {
  8622. this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
  8623. this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
  8624. }
  8625. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8626. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8627. != global::System.Data.ConnectionState.Open)) {
  8628. this.Adapter.DeleteCommand.Connection.Open();
  8629. }
  8630. try {
  8631. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8632. return returnValue;
  8633. }
  8634. finally {
  8635. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8636. this.Adapter.DeleteCommand.Connection.Close();
  8637. }
  8638. }
  8639. }
  8640. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8641. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8642. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8643. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8644. public virtual int Insert(global::System.Nullable<int> idTypeProduct, string NameProduct, global::System.Nullable<int> Article, global::System.Nullable<decimal> MinCost) {
  8645. if ((idTypeProduct.HasValue == true)) {
  8646. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(idTypeProduct.Value));
  8647. }
  8648. else {
  8649. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8650. }
  8651. if ((NameProduct == null)) {
  8652. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  8653. }
  8654. else {
  8655. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(NameProduct));
  8656. }
  8657. if ((Article.HasValue == true)) {
  8658. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Article.Value));
  8659. }
  8660. else {
  8661. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  8662. }
  8663. if ((MinCost.HasValue == true)) {
  8664. this.Adapter.InsertCommand.Parameters[3].Value = ((decimal)(MinCost.Value));
  8665. }
  8666. else {
  8667. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  8668. }
  8669. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  8670. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8671. != global::System.Data.ConnectionState.Open)) {
  8672. this.Adapter.InsertCommand.Connection.Open();
  8673. }
  8674. try {
  8675. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  8676. return returnValue;
  8677. }
  8678. finally {
  8679. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8680. this.Adapter.InsertCommand.Connection.Close();
  8681. }
  8682. }
  8683. }
  8684. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8685. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8686. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8687. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8688. public virtual int Update(global::System.Nullable<int> idTypeProduct, string NameProduct, global::System.Nullable<int> Article, global::System.Nullable<decimal> MinCost, int Original_idProduct, global::System.Nullable<int> Original_idTypeProduct, global::System.Nullable<int> Original_Article, global::System.Nullable<decimal> Original_MinCost, int idProduct) {
  8689. if ((idTypeProduct.HasValue == true)) {
  8690. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(idTypeProduct.Value));
  8691. }
  8692. else {
  8693. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  8694. }
  8695. if ((NameProduct == null)) {
  8696. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  8697. }
  8698. else {
  8699. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(NameProduct));
  8700. }
  8701. if ((Article.HasValue == true)) {
  8702. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Article.Value));
  8703. }
  8704. else {
  8705. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  8706. }
  8707. if ((MinCost.HasValue == true)) {
  8708. this.Adapter.UpdateCommand.Parameters[3].Value = ((decimal)(MinCost.Value));
  8709. }
  8710. else {
  8711. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  8712. }
  8713. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_idProduct));
  8714. if ((Original_idTypeProduct.HasValue == true)) {
  8715. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  8716. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_idTypeProduct.Value));
  8717. }
  8718. else {
  8719. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  8720. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  8721. }
  8722. if ((Original_Article.HasValue == true)) {
  8723. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(0));
  8724. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_Article.Value));
  8725. }
  8726. else {
  8727. this.Adapter.UpdateCommand.Parameters[7].Value = ((object)(1));
  8728. this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
  8729. }
  8730. if ((Original_MinCost.HasValue == true)) {
  8731. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
  8732. this.Adapter.UpdateCommand.Parameters[10].Value = ((decimal)(Original_MinCost.Value));
  8733. }
  8734. else {
  8735. this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
  8736. this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
  8737. }
  8738. this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(idProduct));
  8739. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  8740. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8741. != global::System.Data.ConnectionState.Open)) {
  8742. this.Adapter.UpdateCommand.Connection.Open();
  8743. }
  8744. try {
  8745. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  8746. return returnValue;
  8747. }
  8748. finally {
  8749. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8750. this.Adapter.UpdateCommand.Connection.Close();
  8751. }
  8752. }
  8753. }
  8754. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8755. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8756. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8757. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  8758. public virtual int Update(global::System.Nullable<int> idTypeProduct, string NameProduct, global::System.Nullable<int> Article, global::System.Nullable<decimal> MinCost, int Original_idProduct, global::System.Nullable<int> Original_idTypeProduct, global::System.Nullable<int> Original_Article, global::System.Nullable<decimal> Original_MinCost) {
  8759. return this.Update(idTypeProduct, NameProduct, Article, MinCost, Original_idProduct, Original_idTypeProduct, Original_Article, Original_MinCost, Original_idProduct);
  8760. }
  8761. }
  8762. /// <summary>
  8763. ///Represents the connection and commands used to retrieve and save data.
  8764. ///</summary>
  8765. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  8766. [global::System.ComponentModel.ToolboxItem(true)]
  8767. [global::System.ComponentModel.DataObjectAttribute(true)]
  8768. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  8769. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  8770. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8771. public partial class RegionTableAdapter : global::System.ComponentModel.Component {
  8772. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  8773. private global::System.Data.SqlClient.SqlConnection _connection;
  8774. private global::System.Data.SqlClient.SqlTransaction _transaction;
  8775. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  8776. private bool _clearBeforeFill;
  8777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8779. public RegionTableAdapter() {
  8780. this.ClearBeforeFill = true;
  8781. }
  8782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8784. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  8785. get {
  8786. if ((this._adapter == null)) {
  8787. this.InitAdapter();
  8788. }
  8789. return this._adapter;
  8790. }
  8791. }
  8792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8793. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8794. internal global::System.Data.SqlClient.SqlConnection Connection {
  8795. get {
  8796. if ((this._connection == null)) {
  8797. this.InitConnection();
  8798. }
  8799. return this._connection;
  8800. }
  8801. set {
  8802. this._connection = value;
  8803. if ((this.Adapter.InsertCommand != null)) {
  8804. this.Adapter.InsertCommand.Connection = value;
  8805. }
  8806. if ((this.Adapter.DeleteCommand != null)) {
  8807. this.Adapter.DeleteCommand.Connection = value;
  8808. }
  8809. if ((this.Adapter.UpdateCommand != null)) {
  8810. this.Adapter.UpdateCommand.Connection = value;
  8811. }
  8812. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8813. if ((this.CommandCollection[i] != null)) {
  8814. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  8815. }
  8816. }
  8817. }
  8818. }
  8819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8821. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  8822. get {
  8823. return this._transaction;
  8824. }
  8825. set {
  8826. this._transaction = value;
  8827. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  8828. this.CommandCollection[i].Transaction = this._transaction;
  8829. }
  8830. if (((this.Adapter != null)
  8831. && (this.Adapter.DeleteCommand != null))) {
  8832. this.Adapter.DeleteCommand.Transaction = this._transaction;
  8833. }
  8834. if (((this.Adapter != null)
  8835. && (this.Adapter.InsertCommand != null))) {
  8836. this.Adapter.InsertCommand.Transaction = this._transaction;
  8837. }
  8838. if (((this.Adapter != null)
  8839. && (this.Adapter.UpdateCommand != null))) {
  8840. this.Adapter.UpdateCommand.Transaction = this._transaction;
  8841. }
  8842. }
  8843. }
  8844. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8845. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8846. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  8847. get {
  8848. if ((this._commandCollection == null)) {
  8849. this.InitCommandCollection();
  8850. }
  8851. return this._commandCollection;
  8852. }
  8853. }
  8854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8856. public bool ClearBeforeFill {
  8857. get {
  8858. return this._clearBeforeFill;
  8859. }
  8860. set {
  8861. this._clearBeforeFill = value;
  8862. }
  8863. }
  8864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8866. private void InitAdapter() {
  8867. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  8868. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  8869. tableMapping.SourceTable = "Table";
  8870. tableMapping.DataSetTable = "Region";
  8871. tableMapping.ColumnMappings.Add("idRegion", "idRegion");
  8872. tableMapping.ColumnMappings.Add("Region", "Region");
  8873. this._adapter.TableMappings.Add(tableMapping);
  8874. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  8875. this._adapter.DeleteCommand.Connection = this.Connection;
  8876. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Region] WHERE (([idRegion] = @Original_idRegion) AND ((@IsNull" +
  8877. "_Region = 1 AND [Region] IS NULL) OR ([Region] = @Original_Region)))";
  8878. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  8879. 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, "", "", ""));
  8880. 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, "", "", ""));
  8881. 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, "", "", ""));
  8882. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  8883. this._adapter.InsertCommand.Connection = this.Connection;
  8884. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Region] ([Region]) VALUES (@Region);\r\nSELECT idRegion, Region " +
  8885. "FROM Region WHERE (idRegion = SCOPE_IDENTITY())";
  8886. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  8887. 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, "", "", ""));
  8888. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  8889. this._adapter.UpdateCommand.Connection = this.Connection;
  8890. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Region] SET [Region] = @Region WHERE (([idRegion] = @Original_idReg" +
  8891. "ion) AND ((@IsNull_Region = 1 AND [Region] IS NULL) OR ([Region] = @Original_Reg" +
  8892. "ion)));\r\nSELECT idRegion, Region FROM Region WHERE (idRegion = @idRegion)";
  8893. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  8894. 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, "", "", ""));
  8895. 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, "", "", ""));
  8896. 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, "", "", ""));
  8897. 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, "", "", ""));
  8898. 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, "", "", ""));
  8899. }
  8900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8902. private void InitConnection() {
  8903. this._connection = new global::System.Data.SqlClient.SqlConnection();
  8904. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  8905. }
  8906. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8908. private void InitCommandCollection() {
  8909. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  8910. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  8911. this._commandCollection[0].Connection = this.Connection;
  8912. this._commandCollection[0].CommandText = "SELECT idRegion, Region FROM dbo.Region";
  8913. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  8914. }
  8915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8917. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8918. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  8919. public virtual int Fill(dbAlphapolAGDataSet.RegionDataTable dataTable) {
  8920. this.Adapter.SelectCommand = this.CommandCollection[0];
  8921. if ((this.ClearBeforeFill == true)) {
  8922. dataTable.Clear();
  8923. }
  8924. int returnValue = this.Adapter.Fill(dataTable);
  8925. return returnValue;
  8926. }
  8927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8929. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8930. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  8931. public virtual dbAlphapolAGDataSet.RegionDataTable GetData() {
  8932. this.Adapter.SelectCommand = this.CommandCollection[0];
  8933. dbAlphapolAGDataSet.RegionDataTable dataTable = new dbAlphapolAGDataSet.RegionDataTable();
  8934. this.Adapter.Fill(dataTable);
  8935. return dataTable;
  8936. }
  8937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8939. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8940. public virtual int Update(dbAlphapolAGDataSet.RegionDataTable dataTable) {
  8941. return this.Adapter.Update(dataTable);
  8942. }
  8943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8945. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8946. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  8947. return this.Adapter.Update(dataSet, "Region");
  8948. }
  8949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8951. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8952. public virtual int Update(global::System.Data.DataRow dataRow) {
  8953. return this.Adapter.Update(new global::System.Data.DataRow[] {
  8954. dataRow});
  8955. }
  8956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8958. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8959. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  8960. return this.Adapter.Update(dataRows);
  8961. }
  8962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8964. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8965. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  8966. public virtual int Delete(int Original_idRegion, string Original_Region) {
  8967. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idRegion));
  8968. if ((Original_Region == null)) {
  8969. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  8970. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  8971. }
  8972. else {
  8973. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  8974. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Region));
  8975. }
  8976. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  8977. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  8978. != global::System.Data.ConnectionState.Open)) {
  8979. this.Adapter.DeleteCommand.Connection.Open();
  8980. }
  8981. try {
  8982. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  8983. return returnValue;
  8984. }
  8985. finally {
  8986. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  8987. this.Adapter.DeleteCommand.Connection.Close();
  8988. }
  8989. }
  8990. }
  8991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  8993. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  8994. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  8995. public virtual int Insert(string Region) {
  8996. if ((Region == null)) {
  8997. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  8998. }
  8999. else {
  9000. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Region));
  9001. }
  9002. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9003. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9004. != global::System.Data.ConnectionState.Open)) {
  9005. this.Adapter.InsertCommand.Connection.Open();
  9006. }
  9007. try {
  9008. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9009. return returnValue;
  9010. }
  9011. finally {
  9012. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9013. this.Adapter.InsertCommand.Connection.Close();
  9014. }
  9015. }
  9016. }
  9017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9019. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9020. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9021. public virtual int Update(string Region, int Original_idRegion, string Original_Region, int idRegion) {
  9022. if ((Region == null)) {
  9023. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9024. }
  9025. else {
  9026. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Region));
  9027. }
  9028. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idRegion));
  9029. if ((Original_Region == null)) {
  9030. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  9031. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9032. }
  9033. else {
  9034. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  9035. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Region));
  9036. }
  9037. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idRegion));
  9038. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9039. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9040. != global::System.Data.ConnectionState.Open)) {
  9041. this.Adapter.UpdateCommand.Connection.Open();
  9042. }
  9043. try {
  9044. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9045. return returnValue;
  9046. }
  9047. finally {
  9048. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9049. this.Adapter.UpdateCommand.Connection.Close();
  9050. }
  9051. }
  9052. }
  9053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9055. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9056. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9057. public virtual int Update(string Region, int Original_idRegion, string Original_Region) {
  9058. return this.Update(Region, Original_idRegion, Original_Region, Original_idRegion);
  9059. }
  9060. }
  9061. /// <summary>
  9062. ///Represents the connection and commands used to retrieve and save data.
  9063. ///</summary>
  9064. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9065. [global::System.ComponentModel.ToolboxItem(true)]
  9066. [global::System.ComponentModel.DataObjectAttribute(true)]
  9067. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9068. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9069. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9070. public partial class StreetTableAdapter : global::System.ComponentModel.Component {
  9071. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9072. private global::System.Data.SqlClient.SqlConnection _connection;
  9073. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9074. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9075. private bool _clearBeforeFill;
  9076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9078. public StreetTableAdapter() {
  9079. this.ClearBeforeFill = true;
  9080. }
  9081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9083. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9084. get {
  9085. if ((this._adapter == null)) {
  9086. this.InitAdapter();
  9087. }
  9088. return this._adapter;
  9089. }
  9090. }
  9091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9093. internal global::System.Data.SqlClient.SqlConnection Connection {
  9094. get {
  9095. if ((this._connection == null)) {
  9096. this.InitConnection();
  9097. }
  9098. return this._connection;
  9099. }
  9100. set {
  9101. this._connection = value;
  9102. if ((this.Adapter.InsertCommand != null)) {
  9103. this.Adapter.InsertCommand.Connection = value;
  9104. }
  9105. if ((this.Adapter.DeleteCommand != null)) {
  9106. this.Adapter.DeleteCommand.Connection = value;
  9107. }
  9108. if ((this.Adapter.UpdateCommand != null)) {
  9109. this.Adapter.UpdateCommand.Connection = value;
  9110. }
  9111. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9112. if ((this.CommandCollection[i] != null)) {
  9113. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9114. }
  9115. }
  9116. }
  9117. }
  9118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9120. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9121. get {
  9122. return this._transaction;
  9123. }
  9124. set {
  9125. this._transaction = value;
  9126. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9127. this.CommandCollection[i].Transaction = this._transaction;
  9128. }
  9129. if (((this.Adapter != null)
  9130. && (this.Adapter.DeleteCommand != null))) {
  9131. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9132. }
  9133. if (((this.Adapter != null)
  9134. && (this.Adapter.InsertCommand != null))) {
  9135. this.Adapter.InsertCommand.Transaction = this._transaction;
  9136. }
  9137. if (((this.Adapter != null)
  9138. && (this.Adapter.UpdateCommand != null))) {
  9139. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9140. }
  9141. }
  9142. }
  9143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9145. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9146. get {
  9147. if ((this._commandCollection == null)) {
  9148. this.InitCommandCollection();
  9149. }
  9150. return this._commandCollection;
  9151. }
  9152. }
  9153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9155. public bool ClearBeforeFill {
  9156. get {
  9157. return this._clearBeforeFill;
  9158. }
  9159. set {
  9160. this._clearBeforeFill = value;
  9161. }
  9162. }
  9163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9165. private void InitAdapter() {
  9166. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9167. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9168. tableMapping.SourceTable = "Table";
  9169. tableMapping.DataSetTable = "Street";
  9170. tableMapping.ColumnMappings.Add("idStreet", "idStreet");
  9171. tableMapping.ColumnMappings.Add("Street", "Street");
  9172. this._adapter.TableMappings.Add(tableMapping);
  9173. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9174. this._adapter.DeleteCommand.Connection = this.Connection;
  9175. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Street] WHERE (([idStreet] = @Original_idStreet) AND ((@IsNull" +
  9176. "_Street = 1 AND [Street] IS NULL) OR ([Street] = @Original_Street)))";
  9177. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9178. 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, "", "", ""));
  9179. 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, "", "", ""));
  9180. 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, "", "", ""));
  9181. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9182. this._adapter.InsertCommand.Connection = this.Connection;
  9183. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Street] ([Street]) VALUES (@Street);\r\nSELECT idStreet, Street " +
  9184. "FROM Street WHERE (idStreet = SCOPE_IDENTITY())";
  9185. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9186. 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, "", "", ""));
  9187. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9188. this._adapter.UpdateCommand.Connection = this.Connection;
  9189. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Street] SET [Street] = @Street WHERE (([idStreet] = @Original_idStr" +
  9190. "eet) AND ((@IsNull_Street = 1 AND [Street] IS NULL) OR ([Street] = @Original_Str" +
  9191. "eet)));\r\nSELECT idStreet, Street FROM Street WHERE (idStreet = @idStreet)";
  9192. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9193. 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, "", "", ""));
  9194. 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, "", "", ""));
  9195. 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, "", "", ""));
  9196. 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, "", "", ""));
  9197. 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, "", "", ""));
  9198. }
  9199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9201. private void InitConnection() {
  9202. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9203. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  9204. }
  9205. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9206. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9207. private void InitCommandCollection() {
  9208. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9209. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9210. this._commandCollection[0].Connection = this.Connection;
  9211. this._commandCollection[0].CommandText = "SELECT idStreet, Street FROM dbo.Street";
  9212. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9213. }
  9214. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9215. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9216. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9217. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9218. public virtual int Fill(dbAlphapolAGDataSet.StreetDataTable dataTable) {
  9219. this.Adapter.SelectCommand = this.CommandCollection[0];
  9220. if ((this.ClearBeforeFill == true)) {
  9221. dataTable.Clear();
  9222. }
  9223. int returnValue = this.Adapter.Fill(dataTable);
  9224. return returnValue;
  9225. }
  9226. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9228. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9229. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9230. public virtual dbAlphapolAGDataSet.StreetDataTable GetData() {
  9231. this.Adapter.SelectCommand = this.CommandCollection[0];
  9232. dbAlphapolAGDataSet.StreetDataTable dataTable = new dbAlphapolAGDataSet.StreetDataTable();
  9233. this.Adapter.Fill(dataTable);
  9234. return dataTable;
  9235. }
  9236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9238. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9239. public virtual int Update(dbAlphapolAGDataSet.StreetDataTable dataTable) {
  9240. return this.Adapter.Update(dataTable);
  9241. }
  9242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9244. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9245. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  9246. return this.Adapter.Update(dataSet, "Street");
  9247. }
  9248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9250. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9251. public virtual int Update(global::System.Data.DataRow dataRow) {
  9252. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9253. dataRow});
  9254. }
  9255. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9256. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9257. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9258. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9259. return this.Adapter.Update(dataRows);
  9260. }
  9261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9263. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9264. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9265. public virtual int Delete(int Original_idStreet, string Original_Street) {
  9266. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idStreet));
  9267. if ((Original_Street == null)) {
  9268. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9269. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9270. }
  9271. else {
  9272. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9273. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Street));
  9274. }
  9275. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9276. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9277. != global::System.Data.ConnectionState.Open)) {
  9278. this.Adapter.DeleteCommand.Connection.Open();
  9279. }
  9280. try {
  9281. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9282. return returnValue;
  9283. }
  9284. finally {
  9285. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9286. this.Adapter.DeleteCommand.Connection.Close();
  9287. }
  9288. }
  9289. }
  9290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9292. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9293. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9294. public virtual int Insert(string Street) {
  9295. if ((Street == null)) {
  9296. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9297. }
  9298. else {
  9299. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Street));
  9300. }
  9301. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9302. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9303. != global::System.Data.ConnectionState.Open)) {
  9304. this.Adapter.InsertCommand.Connection.Open();
  9305. }
  9306. try {
  9307. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9308. return returnValue;
  9309. }
  9310. finally {
  9311. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9312. this.Adapter.InsertCommand.Connection.Close();
  9313. }
  9314. }
  9315. }
  9316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9318. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9319. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9320. public virtual int Update(string Street, int Original_idStreet, string Original_Street, int idStreet) {
  9321. if ((Street == null)) {
  9322. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9323. }
  9324. else {
  9325. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Street));
  9326. }
  9327. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idStreet));
  9328. if ((Original_Street == null)) {
  9329. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  9330. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9331. }
  9332. else {
  9333. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  9334. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Street));
  9335. }
  9336. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idStreet));
  9337. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9338. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9339. != global::System.Data.ConnectionState.Open)) {
  9340. this.Adapter.UpdateCommand.Connection.Open();
  9341. }
  9342. try {
  9343. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9344. return returnValue;
  9345. }
  9346. finally {
  9347. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9348. this.Adapter.UpdateCommand.Connection.Close();
  9349. }
  9350. }
  9351. }
  9352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9354. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9355. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9356. public virtual int Update(string Street, int Original_idStreet, string Original_Street) {
  9357. return this.Update(Street, Original_idStreet, Original_Street, Original_idStreet);
  9358. }
  9359. }
  9360. /// <summary>
  9361. ///Represents the connection and commands used to retrieve and save data.
  9362. ///</summary>
  9363. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9364. [global::System.ComponentModel.ToolboxItem(true)]
  9365. [global::System.ComponentModel.DataObjectAttribute(true)]
  9366. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9367. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9368. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9369. public partial class TypeMaterialTableAdapter : global::System.ComponentModel.Component {
  9370. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9371. private global::System.Data.SqlClient.SqlConnection _connection;
  9372. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9373. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9374. private bool _clearBeforeFill;
  9375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9377. public TypeMaterialTableAdapter() {
  9378. this.ClearBeforeFill = true;
  9379. }
  9380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9382. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9383. get {
  9384. if ((this._adapter == null)) {
  9385. this.InitAdapter();
  9386. }
  9387. return this._adapter;
  9388. }
  9389. }
  9390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9392. internal global::System.Data.SqlClient.SqlConnection Connection {
  9393. get {
  9394. if ((this._connection == null)) {
  9395. this.InitConnection();
  9396. }
  9397. return this._connection;
  9398. }
  9399. set {
  9400. this._connection = value;
  9401. if ((this.Adapter.InsertCommand != null)) {
  9402. this.Adapter.InsertCommand.Connection = value;
  9403. }
  9404. if ((this.Adapter.DeleteCommand != null)) {
  9405. this.Adapter.DeleteCommand.Connection = value;
  9406. }
  9407. if ((this.Adapter.UpdateCommand != null)) {
  9408. this.Adapter.UpdateCommand.Connection = value;
  9409. }
  9410. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9411. if ((this.CommandCollection[i] != null)) {
  9412. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9413. }
  9414. }
  9415. }
  9416. }
  9417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9419. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9420. get {
  9421. return this._transaction;
  9422. }
  9423. set {
  9424. this._transaction = value;
  9425. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9426. this.CommandCollection[i].Transaction = this._transaction;
  9427. }
  9428. if (((this.Adapter != null)
  9429. && (this.Adapter.DeleteCommand != null))) {
  9430. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9431. }
  9432. if (((this.Adapter != null)
  9433. && (this.Adapter.InsertCommand != null))) {
  9434. this.Adapter.InsertCommand.Transaction = this._transaction;
  9435. }
  9436. if (((this.Adapter != null)
  9437. && (this.Adapter.UpdateCommand != null))) {
  9438. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9439. }
  9440. }
  9441. }
  9442. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9443. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9444. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9445. get {
  9446. if ((this._commandCollection == null)) {
  9447. this.InitCommandCollection();
  9448. }
  9449. return this._commandCollection;
  9450. }
  9451. }
  9452. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9453. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9454. public bool ClearBeforeFill {
  9455. get {
  9456. return this._clearBeforeFill;
  9457. }
  9458. set {
  9459. this._clearBeforeFill = value;
  9460. }
  9461. }
  9462. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9463. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9464. private void InitAdapter() {
  9465. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9466. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9467. tableMapping.SourceTable = "Table";
  9468. tableMapping.DataSetTable = "TypeMaterial";
  9469. tableMapping.ColumnMappings.Add("idTypeMaterial", "idTypeMaterial");
  9470. tableMapping.ColumnMappings.Add("TypeMaterial", "TypeMaterial");
  9471. tableMapping.ColumnMappings.Add("PercentDefect", "PercentDefect");
  9472. this._adapter.TableMappings.Add(tableMapping);
  9473. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9474. this._adapter.DeleteCommand.Connection = this.Connection;
  9475. 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_PercentDefect = 1 AND [PercentDefect] IS NULL) OR ([PercentDefect] = @Original_PercentDefect)))";
  9476. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9477. 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, "", "", ""));
  9478. 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, "", "", ""));
  9479. 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, "", "", ""));
  9480. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PercentDefect", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PercentDefect", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9481. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PercentDefect", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "PercentDefect", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9482. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9483. this._adapter.InsertCommand.Connection = this.Connection;
  9484. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypeMaterial] ([TypeMaterial], [PercentDefect]) VALUES (@TypeM" +
  9485. "aterial, @PercentDefect);\r\nSELECT idTypeMaterial, TypeMaterial, PercentDefect FR" +
  9486. "OM TypeMaterial WHERE (idTypeMaterial = SCOPE_IDENTITY())";
  9487. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9488. 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, "", "", ""));
  9489. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PercentDefect", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "PercentDefect", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9490. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9491. this._adapter.UpdateCommand.Connection = this.Connection;
  9492. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TypeMaterial] SET [TypeMaterial] = @TypeMaterial, [PercentDefect] = @PercentDefect WHERE (([idTypeMaterial] = @Original_idTypeMaterial) AND ((@IsNull_TypeMaterial = 1 AND [TypeMaterial] IS NULL) OR ([TypeMaterial] = @Original_TypeMaterial)) AND ((@IsNull_PercentDefect = 1 AND [PercentDefect] IS NULL) OR ([PercentDefect] = @Original_PercentDefect)));
  9493. SELECT idTypeMaterial, TypeMaterial, PercentDefect FROM TypeMaterial WHERE (idTypeMaterial = @idTypeMaterial)";
  9494. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9495. 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, "", "", ""));
  9496. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PercentDefect", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "PercentDefect", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9497. 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, "", "", ""));
  9498. 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, "", "", ""));
  9499. 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, "", "", ""));
  9500. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_PercentDefect", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PercentDefect", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9501. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PercentDefect", global::System.Data.SqlDbType.Decimal, 0, global::System.Data.ParameterDirection.Input, 18, 2, "PercentDefect", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9502. 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, "", "", ""));
  9503. }
  9504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9506. private void InitConnection() {
  9507. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9508. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  9509. }
  9510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9512. private void InitCommandCollection() {
  9513. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9514. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9515. this._commandCollection[0].Connection = this.Connection;
  9516. this._commandCollection[0].CommandText = "SELECT idTypeMaterial, TypeMaterial, PercentDefect FROM dbo.TypeMaterial";
  9517. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9518. }
  9519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9521. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9522. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9523. public virtual int Fill(dbAlphapolAGDataSet.TypeMaterialDataTable dataTable) {
  9524. this.Adapter.SelectCommand = this.CommandCollection[0];
  9525. if ((this.ClearBeforeFill == true)) {
  9526. dataTable.Clear();
  9527. }
  9528. int returnValue = this.Adapter.Fill(dataTable);
  9529. return returnValue;
  9530. }
  9531. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9532. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9533. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9534. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9535. public virtual dbAlphapolAGDataSet.TypeMaterialDataTable GetData() {
  9536. this.Adapter.SelectCommand = this.CommandCollection[0];
  9537. dbAlphapolAGDataSet.TypeMaterialDataTable dataTable = new dbAlphapolAGDataSet.TypeMaterialDataTable();
  9538. this.Adapter.Fill(dataTable);
  9539. return dataTable;
  9540. }
  9541. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9542. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9543. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9544. public virtual int Update(dbAlphapolAGDataSet.TypeMaterialDataTable dataTable) {
  9545. return this.Adapter.Update(dataTable);
  9546. }
  9547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9549. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9550. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  9551. return this.Adapter.Update(dataSet, "TypeMaterial");
  9552. }
  9553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9555. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9556. public virtual int Update(global::System.Data.DataRow dataRow) {
  9557. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9558. dataRow});
  9559. }
  9560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9562. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9563. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9564. return this.Adapter.Update(dataRows);
  9565. }
  9566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9568. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9569. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9570. public virtual int Delete(int Original_idTypeMaterial, string Original_TypeMaterial, global::System.Nullable<decimal> Original_PercentDefect) {
  9571. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idTypeMaterial));
  9572. if ((Original_TypeMaterial == null)) {
  9573. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9574. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9575. }
  9576. else {
  9577. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9578. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_TypeMaterial));
  9579. }
  9580. if ((Original_PercentDefect.HasValue == true)) {
  9581. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  9582. this.Adapter.DeleteCommand.Parameters[4].Value = ((decimal)(Original_PercentDefect.Value));
  9583. }
  9584. else {
  9585. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  9586. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  9587. }
  9588. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9589. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9590. != global::System.Data.ConnectionState.Open)) {
  9591. this.Adapter.DeleteCommand.Connection.Open();
  9592. }
  9593. try {
  9594. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9595. return returnValue;
  9596. }
  9597. finally {
  9598. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9599. this.Adapter.DeleteCommand.Connection.Close();
  9600. }
  9601. }
  9602. }
  9603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9605. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9606. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9607. public virtual int Insert(string TypeMaterial, global::System.Nullable<decimal> PercentDefect) {
  9608. if ((TypeMaterial == null)) {
  9609. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9610. }
  9611. else {
  9612. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TypeMaterial));
  9613. }
  9614. if ((PercentDefect.HasValue == true)) {
  9615. this.Adapter.InsertCommand.Parameters[1].Value = ((decimal)(PercentDefect.Value));
  9616. }
  9617. else {
  9618. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  9619. }
  9620. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9621. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9622. != global::System.Data.ConnectionState.Open)) {
  9623. this.Adapter.InsertCommand.Connection.Open();
  9624. }
  9625. try {
  9626. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9627. return returnValue;
  9628. }
  9629. finally {
  9630. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9631. this.Adapter.InsertCommand.Connection.Close();
  9632. }
  9633. }
  9634. }
  9635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9636. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9637. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9638. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9639. public virtual int Update(string TypeMaterial, global::System.Nullable<decimal> PercentDefect, int Original_idTypeMaterial, string Original_TypeMaterial, global::System.Nullable<decimal> Original_PercentDefect, int idTypeMaterial) {
  9640. if ((TypeMaterial == null)) {
  9641. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9642. }
  9643. else {
  9644. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TypeMaterial));
  9645. }
  9646. if ((PercentDefect.HasValue == true)) {
  9647. this.Adapter.UpdateCommand.Parameters[1].Value = ((decimal)(PercentDefect.Value));
  9648. }
  9649. else {
  9650. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  9651. }
  9652. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_idTypeMaterial));
  9653. if ((Original_TypeMaterial == null)) {
  9654. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  9655. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  9656. }
  9657. else {
  9658. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  9659. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_TypeMaterial));
  9660. }
  9661. if ((Original_PercentDefect.HasValue == true)) {
  9662. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  9663. this.Adapter.UpdateCommand.Parameters[6].Value = ((decimal)(Original_PercentDefect.Value));
  9664. }
  9665. else {
  9666. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  9667. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  9668. }
  9669. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(idTypeMaterial));
  9670. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9671. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9672. != global::System.Data.ConnectionState.Open)) {
  9673. this.Adapter.UpdateCommand.Connection.Open();
  9674. }
  9675. try {
  9676. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9677. return returnValue;
  9678. }
  9679. finally {
  9680. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9681. this.Adapter.UpdateCommand.Connection.Close();
  9682. }
  9683. }
  9684. }
  9685. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9686. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9687. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9688. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9689. public virtual int Update(string TypeMaterial, global::System.Nullable<decimal> PercentDefect, int Original_idTypeMaterial, string Original_TypeMaterial, global::System.Nullable<decimal> Original_PercentDefect) {
  9690. return this.Update(TypeMaterial, PercentDefect, Original_idTypeMaterial, Original_TypeMaterial, Original_PercentDefect, Original_idTypeMaterial);
  9691. }
  9692. }
  9693. /// <summary>
  9694. ///Represents the connection and commands used to retrieve and save data.
  9695. ///</summary>
  9696. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9697. [global::System.ComponentModel.ToolboxItem(true)]
  9698. [global::System.ComponentModel.DataObjectAttribute(true)]
  9699. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  9700. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  9701. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9702. public partial class TypePartnerTableAdapter : global::System.ComponentModel.Component {
  9703. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  9704. private global::System.Data.SqlClient.SqlConnection _connection;
  9705. private global::System.Data.SqlClient.SqlTransaction _transaction;
  9706. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  9707. private bool _clearBeforeFill;
  9708. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9709. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9710. public TypePartnerTableAdapter() {
  9711. this.ClearBeforeFill = true;
  9712. }
  9713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9715. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  9716. get {
  9717. if ((this._adapter == null)) {
  9718. this.InitAdapter();
  9719. }
  9720. return this._adapter;
  9721. }
  9722. }
  9723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9725. internal global::System.Data.SqlClient.SqlConnection Connection {
  9726. get {
  9727. if ((this._connection == null)) {
  9728. this.InitConnection();
  9729. }
  9730. return this._connection;
  9731. }
  9732. set {
  9733. this._connection = value;
  9734. if ((this.Adapter.InsertCommand != null)) {
  9735. this.Adapter.InsertCommand.Connection = value;
  9736. }
  9737. if ((this.Adapter.DeleteCommand != null)) {
  9738. this.Adapter.DeleteCommand.Connection = value;
  9739. }
  9740. if ((this.Adapter.UpdateCommand != null)) {
  9741. this.Adapter.UpdateCommand.Connection = value;
  9742. }
  9743. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9744. if ((this.CommandCollection[i] != null)) {
  9745. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  9746. }
  9747. }
  9748. }
  9749. }
  9750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9752. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  9753. get {
  9754. return this._transaction;
  9755. }
  9756. set {
  9757. this._transaction = value;
  9758. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  9759. this.CommandCollection[i].Transaction = this._transaction;
  9760. }
  9761. if (((this.Adapter != null)
  9762. && (this.Adapter.DeleteCommand != null))) {
  9763. this.Adapter.DeleteCommand.Transaction = this._transaction;
  9764. }
  9765. if (((this.Adapter != null)
  9766. && (this.Adapter.InsertCommand != null))) {
  9767. this.Adapter.InsertCommand.Transaction = this._transaction;
  9768. }
  9769. if (((this.Adapter != null)
  9770. && (this.Adapter.UpdateCommand != null))) {
  9771. this.Adapter.UpdateCommand.Transaction = this._transaction;
  9772. }
  9773. }
  9774. }
  9775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9776. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9777. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  9778. get {
  9779. if ((this._commandCollection == null)) {
  9780. this.InitCommandCollection();
  9781. }
  9782. return this._commandCollection;
  9783. }
  9784. }
  9785. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9786. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9787. public bool ClearBeforeFill {
  9788. get {
  9789. return this._clearBeforeFill;
  9790. }
  9791. set {
  9792. this._clearBeforeFill = value;
  9793. }
  9794. }
  9795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9797. private void InitAdapter() {
  9798. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  9799. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  9800. tableMapping.SourceTable = "Table";
  9801. tableMapping.DataSetTable = "TypePartner";
  9802. tableMapping.ColumnMappings.Add("idTypePartner", "idTypePartner");
  9803. tableMapping.ColumnMappings.Add("Type", "Type");
  9804. this._adapter.TableMappings.Add(tableMapping);
  9805. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  9806. this._adapter.DeleteCommand.Connection = this.Connection;
  9807. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[TypePartner] WHERE (([idTypePartner] = @Original_idTypePartner" +
  9808. ") AND ((@IsNull_Type = 1 AND [Type] IS NULL) OR ([Type] = @Original_Type)))";
  9809. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  9810. 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, "", "", ""));
  9811. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9812. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Type", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9813. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  9814. this._adapter.InsertCommand.Connection = this.Connection;
  9815. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypePartner] ([Type]) VALUES (@Type);\r\nSELECT idTypePartner, T" +
  9816. "ype FROM TypePartner WHERE (idTypePartner = SCOPE_IDENTITY())";
  9817. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  9818. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Type", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9819. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  9820. this._adapter.UpdateCommand.Connection = this.Connection;
  9821. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[TypePartner] SET [Type] = @Type WHERE (([idTypePartner] = @Original" +
  9822. "_idTypePartner) AND ((@IsNull_Type = 1 AND [Type] IS NULL) OR ([Type] = @Origina" +
  9823. "l_Type)));\r\nSELECT idTypePartner, Type FROM TypePartner WHERE (idTypePartner = @" +
  9824. "idTypePartner)";
  9825. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  9826. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Type", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  9827. 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, "", "", ""));
  9828. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Type", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  9829. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Type", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Type", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  9830. 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, "", "", ""));
  9831. }
  9832. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9833. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9834. private void InitConnection() {
  9835. this._connection = new global::System.Data.SqlClient.SqlConnection();
  9836. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  9837. }
  9838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9839. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9840. private void InitCommandCollection() {
  9841. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  9842. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  9843. this._commandCollection[0].Connection = this.Connection;
  9844. this._commandCollection[0].CommandText = "SELECT idTypePartner, Type FROM dbo.TypePartner";
  9845. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  9846. }
  9847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9849. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9850. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  9851. public virtual int Fill(dbAlphapolAGDataSet.TypePartnerDataTable dataTable) {
  9852. this.Adapter.SelectCommand = this.CommandCollection[0];
  9853. if ((this.ClearBeforeFill == true)) {
  9854. dataTable.Clear();
  9855. }
  9856. int returnValue = this.Adapter.Fill(dataTable);
  9857. return returnValue;
  9858. }
  9859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9861. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9862. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  9863. public virtual dbAlphapolAGDataSet.TypePartnerDataTable GetData() {
  9864. this.Adapter.SelectCommand = this.CommandCollection[0];
  9865. dbAlphapolAGDataSet.TypePartnerDataTable dataTable = new dbAlphapolAGDataSet.TypePartnerDataTable();
  9866. this.Adapter.Fill(dataTable);
  9867. return dataTable;
  9868. }
  9869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9871. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9872. public virtual int Update(dbAlphapolAGDataSet.TypePartnerDataTable dataTable) {
  9873. return this.Adapter.Update(dataTable);
  9874. }
  9875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9877. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9878. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  9879. return this.Adapter.Update(dataSet, "TypePartner");
  9880. }
  9881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9882. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9883. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9884. public virtual int Update(global::System.Data.DataRow dataRow) {
  9885. return this.Adapter.Update(new global::System.Data.DataRow[] {
  9886. dataRow});
  9887. }
  9888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9890. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9891. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  9892. return this.Adapter.Update(dataRows);
  9893. }
  9894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9896. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9897. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  9898. public virtual int Delete(int Original_idTypePartner, string Original_Type) {
  9899. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idTypePartner));
  9900. if ((Original_Type == null)) {
  9901. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  9902. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  9903. }
  9904. else {
  9905. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  9906. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Type));
  9907. }
  9908. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  9909. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9910. != global::System.Data.ConnectionState.Open)) {
  9911. this.Adapter.DeleteCommand.Connection.Open();
  9912. }
  9913. try {
  9914. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  9915. return returnValue;
  9916. }
  9917. finally {
  9918. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9919. this.Adapter.DeleteCommand.Connection.Close();
  9920. }
  9921. }
  9922. }
  9923. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9924. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9925. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9926. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  9927. public virtual int Insert(string Type) {
  9928. if ((Type == null)) {
  9929. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  9930. }
  9931. else {
  9932. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Type));
  9933. }
  9934. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  9935. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9936. != global::System.Data.ConnectionState.Open)) {
  9937. this.Adapter.InsertCommand.Connection.Open();
  9938. }
  9939. try {
  9940. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  9941. return returnValue;
  9942. }
  9943. finally {
  9944. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9945. this.Adapter.InsertCommand.Connection.Close();
  9946. }
  9947. }
  9948. }
  9949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9951. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9952. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9953. public virtual int Update(string Type, int Original_idTypePartner, string Original_Type, int idTypePartner) {
  9954. if ((Type == null)) {
  9955. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  9956. }
  9957. else {
  9958. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Type));
  9959. }
  9960. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_idTypePartner));
  9961. if ((Original_Type == null)) {
  9962. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  9963. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  9964. }
  9965. else {
  9966. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  9967. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_Type));
  9968. }
  9969. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(idTypePartner));
  9970. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  9971. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  9972. != global::System.Data.ConnectionState.Open)) {
  9973. this.Adapter.UpdateCommand.Connection.Open();
  9974. }
  9975. try {
  9976. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  9977. return returnValue;
  9978. }
  9979. finally {
  9980. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  9981. this.Adapter.UpdateCommand.Connection.Close();
  9982. }
  9983. }
  9984. }
  9985. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  9986. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  9987. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  9988. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  9989. public virtual int Update(string Type, int Original_idTypePartner, string Original_Type) {
  9990. return this.Update(Type, Original_idTypePartner, Original_Type, Original_idTypePartner);
  9991. }
  9992. }
  9993. /// <summary>
  9994. ///Represents the connection and commands used to retrieve and save data.
  9995. ///</summary>
  9996. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  9997. [global::System.ComponentModel.ToolboxItem(true)]
  9998. [global::System.ComponentModel.DataObjectAttribute(true)]
  9999. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10000. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10001. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10002. public partial class TypeProductTableAdapter : global::System.ComponentModel.Component {
  10003. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10004. private global::System.Data.SqlClient.SqlConnection _connection;
  10005. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10006. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10007. private bool _clearBeforeFill;
  10008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10010. public TypeProductTableAdapter() {
  10011. this.ClearBeforeFill = true;
  10012. }
  10013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10015. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10016. get {
  10017. if ((this._adapter == null)) {
  10018. this.InitAdapter();
  10019. }
  10020. return this._adapter;
  10021. }
  10022. }
  10023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10025. internal global::System.Data.SqlClient.SqlConnection Connection {
  10026. get {
  10027. if ((this._connection == null)) {
  10028. this.InitConnection();
  10029. }
  10030. return this._connection;
  10031. }
  10032. set {
  10033. this._connection = value;
  10034. if ((this.Adapter.InsertCommand != null)) {
  10035. this.Adapter.InsertCommand.Connection = value;
  10036. }
  10037. if ((this.Adapter.DeleteCommand != null)) {
  10038. this.Adapter.DeleteCommand.Connection = value;
  10039. }
  10040. if ((this.Adapter.UpdateCommand != null)) {
  10041. this.Adapter.UpdateCommand.Connection = value;
  10042. }
  10043. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10044. if ((this.CommandCollection[i] != null)) {
  10045. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10046. }
  10047. }
  10048. }
  10049. }
  10050. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10052. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10053. get {
  10054. return this._transaction;
  10055. }
  10056. set {
  10057. this._transaction = value;
  10058. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10059. this.CommandCollection[i].Transaction = this._transaction;
  10060. }
  10061. if (((this.Adapter != null)
  10062. && (this.Adapter.DeleteCommand != null))) {
  10063. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10064. }
  10065. if (((this.Adapter != null)
  10066. && (this.Adapter.InsertCommand != null))) {
  10067. this.Adapter.InsertCommand.Transaction = this._transaction;
  10068. }
  10069. if (((this.Adapter != null)
  10070. && (this.Adapter.UpdateCommand != null))) {
  10071. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10072. }
  10073. }
  10074. }
  10075. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10076. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10077. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10078. get {
  10079. if ((this._commandCollection == null)) {
  10080. this.InitCommandCollection();
  10081. }
  10082. return this._commandCollection;
  10083. }
  10084. }
  10085. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10086. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10087. public bool ClearBeforeFill {
  10088. get {
  10089. return this._clearBeforeFill;
  10090. }
  10091. set {
  10092. this._clearBeforeFill = value;
  10093. }
  10094. }
  10095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10097. private void InitAdapter() {
  10098. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10099. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10100. tableMapping.SourceTable = "Table";
  10101. tableMapping.DataSetTable = "TypeProduct";
  10102. tableMapping.ColumnMappings.Add("idTypeProduct", "idTypeProduct");
  10103. tableMapping.ColumnMappings.Add("TypeProduct", "TypeProduct");
  10104. tableMapping.ColumnMappings.Add("Coefficient", "Coefficient");
  10105. this._adapter.TableMappings.Add(tableMapping);
  10106. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  10107. this._adapter.DeleteCommand.Connection = this.Connection;
  10108. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[TypeProduct] WHERE (([idTypeProduct] = @Original_idTypeProduct) AND ((@IsNull_TypeProduct = 1 AND [TypeProduct] IS NULL) OR ([TypeProduct] = @Original_TypeProduct)) AND ((@IsNull_Coefficient = 1 AND [Coefficient] IS NULL) OR ([Coefficient] = @Original_Coefficient)))";
  10109. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  10110. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10111. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10112. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TypeProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10113. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Coefficient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10114. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Coefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10115. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  10116. this._adapter.InsertCommand.Connection = this.Connection;
  10117. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TypeProduct] ([TypeProduct], [Coefficient]) VALUES (@TypeProdu" +
  10118. "ct, @Coefficient);\r\nSELECT idTypeProduct, TypeProduct, Coefficient FROM TypeProd" +
  10119. "uct WHERE (idTypeProduct = SCOPE_IDENTITY())";
  10120. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  10121. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TypeProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10122. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Coefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10123. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  10124. this._adapter.UpdateCommand.Connection = this.Connection;
  10125. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[TypeProduct] SET [TypeProduct] = @TypeProduct, [Coefficient] = @Coefficient WHERE (([idTypeProduct] = @Original_idTypeProduct) AND ((@IsNull_TypeProduct = 1 AND [TypeProduct] IS NULL) OR ([TypeProduct] = @Original_TypeProduct)) AND ((@IsNull_Coefficient = 1 AND [Coefficient] IS NULL) OR ([Coefficient] = @Original_Coefficient)));
  10126. SELECT idTypeProduct, TypeProduct, Coefficient FROM TypeProduct WHERE (idTypeProduct = @idTypeProduct)";
  10127. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  10128. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TypeProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10129. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Coefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10130. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_idTypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10131. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_TypeProduct", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10132. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TypeProduct", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TypeProduct", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10133. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Coefficient", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  10134. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Coefficient", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Coefficient", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  10135. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idTypeProduct", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idTypeProduct", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  10136. }
  10137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10139. private void InitConnection() {
  10140. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10141. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  10142. }
  10143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10145. private void InitCommandCollection() {
  10146. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10147. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10148. this._commandCollection[0].Connection = this.Connection;
  10149. this._commandCollection[0].CommandText = "SELECT idTypeProduct, TypeProduct, Coefficient FROM dbo.TypeProduct";
  10150. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10151. }
  10152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10154. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10155. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10156. public virtual int Fill(dbAlphapolAGDataSet.TypeProductDataTable dataTable) {
  10157. this.Adapter.SelectCommand = this.CommandCollection[0];
  10158. if ((this.ClearBeforeFill == true)) {
  10159. dataTable.Clear();
  10160. }
  10161. int returnValue = this.Adapter.Fill(dataTable);
  10162. return returnValue;
  10163. }
  10164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10166. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10167. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10168. public virtual dbAlphapolAGDataSet.TypeProductDataTable GetData() {
  10169. this.Adapter.SelectCommand = this.CommandCollection[0];
  10170. dbAlphapolAGDataSet.TypeProductDataTable dataTable = new dbAlphapolAGDataSet.TypeProductDataTable();
  10171. this.Adapter.Fill(dataTable);
  10172. return dataTable;
  10173. }
  10174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10176. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10177. public virtual int Update(dbAlphapolAGDataSet.TypeProductDataTable dataTable) {
  10178. return this.Adapter.Update(dataTable);
  10179. }
  10180. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10181. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10182. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10183. public virtual int Update(dbAlphapolAGDataSet dataSet) {
  10184. return this.Adapter.Update(dataSet, "TypeProduct");
  10185. }
  10186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10188. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10189. public virtual int Update(global::System.Data.DataRow dataRow) {
  10190. return this.Adapter.Update(new global::System.Data.DataRow[] {
  10191. dataRow});
  10192. }
  10193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10195. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10196. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  10197. return this.Adapter.Update(dataRows);
  10198. }
  10199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10200. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10201. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10202. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  10203. public virtual int Delete(int Original_idTypeProduct, string Original_TypeProduct, global::System.Nullable<double> Original_Coefficient) {
  10204. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_idTypeProduct));
  10205. if ((Original_TypeProduct == null)) {
  10206. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  10207. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  10208. }
  10209. else {
  10210. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  10211. this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_TypeProduct));
  10212. }
  10213. if ((Original_Coefficient.HasValue == true)) {
  10214. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
  10215. this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_Coefficient.Value));
  10216. }
  10217. else {
  10218. this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
  10219. this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
  10220. }
  10221. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  10222. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10223. != global::System.Data.ConnectionState.Open)) {
  10224. this.Adapter.DeleteCommand.Connection.Open();
  10225. }
  10226. try {
  10227. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  10228. return returnValue;
  10229. }
  10230. finally {
  10231. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10232. this.Adapter.DeleteCommand.Connection.Close();
  10233. }
  10234. }
  10235. }
  10236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10238. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10239. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  10240. public virtual int Insert(string TypeProduct, global::System.Nullable<double> Coefficient) {
  10241. if ((TypeProduct == null)) {
  10242. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  10243. }
  10244. else {
  10245. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(TypeProduct));
  10246. }
  10247. if ((Coefficient.HasValue == true)) {
  10248. this.Adapter.InsertCommand.Parameters[1].Value = ((double)(Coefficient.Value));
  10249. }
  10250. else {
  10251. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  10252. }
  10253. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  10254. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10255. != global::System.Data.ConnectionState.Open)) {
  10256. this.Adapter.InsertCommand.Connection.Open();
  10257. }
  10258. try {
  10259. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  10260. return returnValue;
  10261. }
  10262. finally {
  10263. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10264. this.Adapter.InsertCommand.Connection.Close();
  10265. }
  10266. }
  10267. }
  10268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10269. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10270. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10271. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10272. public virtual int Update(string TypeProduct, global::System.Nullable<double> Coefficient, int Original_idTypeProduct, string Original_TypeProduct, global::System.Nullable<double> Original_Coefficient, int idTypeProduct) {
  10273. if ((TypeProduct == null)) {
  10274. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  10275. }
  10276. else {
  10277. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(TypeProduct));
  10278. }
  10279. if ((Coefficient.HasValue == true)) {
  10280. this.Adapter.UpdateCommand.Parameters[1].Value = ((double)(Coefficient.Value));
  10281. }
  10282. else {
  10283. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  10284. }
  10285. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_idTypeProduct));
  10286. if ((Original_TypeProduct == null)) {
  10287. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
  10288. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  10289. }
  10290. else {
  10291. this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
  10292. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_TypeProduct));
  10293. }
  10294. if ((Original_Coefficient.HasValue == true)) {
  10295. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
  10296. this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(Original_Coefficient.Value));
  10297. }
  10298. else {
  10299. this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
  10300. this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
  10301. }
  10302. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(idTypeProduct));
  10303. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  10304. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  10305. != global::System.Data.ConnectionState.Open)) {
  10306. this.Adapter.UpdateCommand.Connection.Open();
  10307. }
  10308. try {
  10309. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  10310. return returnValue;
  10311. }
  10312. finally {
  10313. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  10314. this.Adapter.UpdateCommand.Connection.Close();
  10315. }
  10316. }
  10317. }
  10318. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10319. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10320. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10321. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  10322. public virtual int Update(string TypeProduct, global::System.Nullable<double> Coefficient, int Original_idTypeProduct, string Original_TypeProduct, global::System.Nullable<double> Original_Coefficient) {
  10323. return this.Update(TypeProduct, Coefficient, Original_idTypeProduct, Original_TypeProduct, Original_Coefficient, Original_idTypeProduct);
  10324. }
  10325. }
  10326. /// <summary>
  10327. ///Represents the connection and commands used to retrieve and save data.
  10328. ///</summary>
  10329. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10330. [global::System.ComponentModel.ToolboxItem(true)]
  10331. [global::System.ComponentModel.DataObjectAttribute(true)]
  10332. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10333. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10334. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10335. public partial class TypeForFilterTableAdapter : global::System.ComponentModel.Component {
  10336. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10337. private global::System.Data.SqlClient.SqlConnection _connection;
  10338. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10339. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10340. private bool _clearBeforeFill;
  10341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10343. public TypeForFilterTableAdapter() {
  10344. this.ClearBeforeFill = true;
  10345. }
  10346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10348. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10349. get {
  10350. if ((this._adapter == null)) {
  10351. this.InitAdapter();
  10352. }
  10353. return this._adapter;
  10354. }
  10355. }
  10356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10358. internal global::System.Data.SqlClient.SqlConnection Connection {
  10359. get {
  10360. if ((this._connection == null)) {
  10361. this.InitConnection();
  10362. }
  10363. return this._connection;
  10364. }
  10365. set {
  10366. this._connection = value;
  10367. if ((this.Adapter.InsertCommand != null)) {
  10368. this.Adapter.InsertCommand.Connection = value;
  10369. }
  10370. if ((this.Adapter.DeleteCommand != null)) {
  10371. this.Adapter.DeleteCommand.Connection = value;
  10372. }
  10373. if ((this.Adapter.UpdateCommand != null)) {
  10374. this.Adapter.UpdateCommand.Connection = value;
  10375. }
  10376. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10377. if ((this.CommandCollection[i] != null)) {
  10378. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10379. }
  10380. }
  10381. }
  10382. }
  10383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10385. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10386. get {
  10387. return this._transaction;
  10388. }
  10389. set {
  10390. this._transaction = value;
  10391. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10392. this.CommandCollection[i].Transaction = this._transaction;
  10393. }
  10394. if (((this.Adapter != null)
  10395. && (this.Adapter.DeleteCommand != null))) {
  10396. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10397. }
  10398. if (((this.Adapter != null)
  10399. && (this.Adapter.InsertCommand != null))) {
  10400. this.Adapter.InsertCommand.Transaction = this._transaction;
  10401. }
  10402. if (((this.Adapter != null)
  10403. && (this.Adapter.UpdateCommand != null))) {
  10404. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10405. }
  10406. }
  10407. }
  10408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10410. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10411. get {
  10412. if ((this._commandCollection == null)) {
  10413. this.InitCommandCollection();
  10414. }
  10415. return this._commandCollection;
  10416. }
  10417. }
  10418. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10419. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10420. public bool ClearBeforeFill {
  10421. get {
  10422. return this._clearBeforeFill;
  10423. }
  10424. set {
  10425. this._clearBeforeFill = value;
  10426. }
  10427. }
  10428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10430. private void InitAdapter() {
  10431. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10432. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10433. tableMapping.SourceTable = "Table";
  10434. tableMapping.DataSetTable = "TypeForFilter";
  10435. tableMapping.ColumnMappings.Add("Column1", "Type");
  10436. this._adapter.TableMappings.Add(tableMapping);
  10437. }
  10438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10440. private void InitConnection() {
  10441. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10442. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  10443. }
  10444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10446. private void InitCommandCollection() {
  10447. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10448. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10449. this._commandCollection[0].Connection = this.Connection;
  10450. this._commandCollection[0].CommandText = "select \'Все типы\'\r\nunion all\r\nselect type \r\nfrom TypePartner";
  10451. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10452. }
  10453. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10454. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10455. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10456. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10457. public virtual int Fill(dbAlphapolAGDataSet.TypeForFilterDataTable dataTable) {
  10458. this.Adapter.SelectCommand = this.CommandCollection[0];
  10459. if ((this.ClearBeforeFill == true)) {
  10460. dataTable.Clear();
  10461. }
  10462. int returnValue = this.Adapter.Fill(dataTable);
  10463. return returnValue;
  10464. }
  10465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10467. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10468. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10469. public virtual dbAlphapolAGDataSet.TypeForFilterDataTable GetData() {
  10470. this.Adapter.SelectCommand = this.CommandCollection[0];
  10471. dbAlphapolAGDataSet.TypeForFilterDataTable dataTable = new dbAlphapolAGDataSet.TypeForFilterDataTable();
  10472. this.Adapter.Fill(dataTable);
  10473. return dataTable;
  10474. }
  10475. }
  10476. /// <summary>
  10477. ///Represents the connection and commands used to retrieve and save data.
  10478. ///</summary>
  10479. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10480. [global::System.ComponentModel.ToolboxItem(true)]
  10481. [global::System.ComponentModel.DataObjectAttribute(true)]
  10482. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  10483. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10484. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10485. public partial class HistorySaleTableAdapter : global::System.ComponentModel.Component {
  10486. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  10487. private global::System.Data.SqlClient.SqlConnection _connection;
  10488. private global::System.Data.SqlClient.SqlTransaction _transaction;
  10489. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  10490. private bool _clearBeforeFill;
  10491. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10493. public HistorySaleTableAdapter() {
  10494. this.ClearBeforeFill = true;
  10495. }
  10496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10498. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  10499. get {
  10500. if ((this._adapter == null)) {
  10501. this.InitAdapter();
  10502. }
  10503. return this._adapter;
  10504. }
  10505. }
  10506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10508. internal global::System.Data.SqlClient.SqlConnection Connection {
  10509. get {
  10510. if ((this._connection == null)) {
  10511. this.InitConnection();
  10512. }
  10513. return this._connection;
  10514. }
  10515. set {
  10516. this._connection = value;
  10517. if ((this.Adapter.InsertCommand != null)) {
  10518. this.Adapter.InsertCommand.Connection = value;
  10519. }
  10520. if ((this.Adapter.DeleteCommand != null)) {
  10521. this.Adapter.DeleteCommand.Connection = value;
  10522. }
  10523. if ((this.Adapter.UpdateCommand != null)) {
  10524. this.Adapter.UpdateCommand.Connection = value;
  10525. }
  10526. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10527. if ((this.CommandCollection[i] != null)) {
  10528. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  10529. }
  10530. }
  10531. }
  10532. }
  10533. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10534. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10535. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  10536. get {
  10537. return this._transaction;
  10538. }
  10539. set {
  10540. this._transaction = value;
  10541. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  10542. this.CommandCollection[i].Transaction = this._transaction;
  10543. }
  10544. if (((this.Adapter != null)
  10545. && (this.Adapter.DeleteCommand != null))) {
  10546. this.Adapter.DeleteCommand.Transaction = this._transaction;
  10547. }
  10548. if (((this.Adapter != null)
  10549. && (this.Adapter.InsertCommand != null))) {
  10550. this.Adapter.InsertCommand.Transaction = this._transaction;
  10551. }
  10552. if (((this.Adapter != null)
  10553. && (this.Adapter.UpdateCommand != null))) {
  10554. this.Adapter.UpdateCommand.Transaction = this._transaction;
  10555. }
  10556. }
  10557. }
  10558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10560. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  10561. get {
  10562. if ((this._commandCollection == null)) {
  10563. this.InitCommandCollection();
  10564. }
  10565. return this._commandCollection;
  10566. }
  10567. }
  10568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10570. public bool ClearBeforeFill {
  10571. get {
  10572. return this._clearBeforeFill;
  10573. }
  10574. set {
  10575. this._clearBeforeFill = value;
  10576. }
  10577. }
  10578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10580. private void InitAdapter() {
  10581. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  10582. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  10583. tableMapping.SourceTable = "Table";
  10584. tableMapping.DataSetTable = "HistorySale";
  10585. tableMapping.ColumnMappings.Add("idPartner", "idPartner");
  10586. tableMapping.ColumnMappings.Add("NameProduct", "NameProduct");
  10587. tableMapping.ColumnMappings.Add("CountProduct", "CountProduct");
  10588. tableMapping.ColumnMappings.Add("DateSale", "DateSale");
  10589. this._adapter.TableMappings.Add(tableMapping);
  10590. }
  10591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10593. private void InitConnection() {
  10594. this._connection = new global::System.Data.SqlClient.SqlConnection();
  10595. this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
  10596. }
  10597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10599. private void InitCommandCollection() {
  10600. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  10601. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  10602. this._commandCollection[0].Connection = this.Connection;
  10603. this._commandCollection[0].CommandText = "SELECT ProductPartner.idPartner, Products.NameProduct, ProductPartner.Coun" +
  10604. "tProduct, ProductPartner.DateSale\r\nFROM ProductPartner INNER JOIN\r\n " +
  10605. " Products ON ProductPartner.idProduct = Products.idProduct" +
  10606. "";
  10607. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  10608. }
  10609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10611. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10612. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  10613. public virtual int Fill(dbAlphapolAGDataSet.HistorySaleDataTable dataTable) {
  10614. this.Adapter.SelectCommand = this.CommandCollection[0];
  10615. if ((this.ClearBeforeFill == true)) {
  10616. dataTable.Clear();
  10617. }
  10618. int returnValue = this.Adapter.Fill(dataTable);
  10619. return returnValue;
  10620. }
  10621. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10622. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10623. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  10624. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  10625. public virtual dbAlphapolAGDataSet.HistorySaleDataTable GetData() {
  10626. this.Adapter.SelectCommand = this.CommandCollection[0];
  10627. dbAlphapolAGDataSet.HistorySaleDataTable dataTable = new dbAlphapolAGDataSet.HistorySaleDataTable();
  10628. this.Adapter.Fill(dataTable);
  10629. return dataTable;
  10630. }
  10631. }
  10632. /// <summary>
  10633. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  10634. ///</summary>
  10635. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  10636. [global::System.ComponentModel.ToolboxItem(true)]
  10637. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  10638. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  10639. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  10640. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  10641. private UpdateOrderOption _updateOrder;
  10642. private CityTableAdapter _cityTableAdapter;
  10643. private IndexPartnerTableAdapter _indexPartnerTableAdapter;
  10644. private ManagerTableAdapter _managerTableAdapter;
  10645. private PartnerTableAdapter _partnerTableAdapter;
  10646. private ProductPartnerTableAdapter _productPartnerTableAdapter;
  10647. private ProductsTableAdapter _productsTableAdapter;
  10648. private RegionTableAdapter _regionTableAdapter;
  10649. private StreetTableAdapter _streetTableAdapter;
  10650. private TypeMaterialTableAdapter _typeMaterialTableAdapter;
  10651. private TypePartnerTableAdapter _typePartnerTableAdapter;
  10652. private TypeProductTableAdapter _typeProductTableAdapter;
  10653. private bool _backupDataSetBeforeUpdate;
  10654. private global::System.Data.IDbConnection _connection;
  10655. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10656. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10657. public UpdateOrderOption UpdateOrder {
  10658. get {
  10659. return this._updateOrder;
  10660. }
  10661. set {
  10662. this._updateOrder = value;
  10663. }
  10664. }
  10665. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10666. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10667. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10668. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10669. "a", "System.Drawing.Design.UITypeEditor")]
  10670. public CityTableAdapter CityTableAdapter {
  10671. get {
  10672. return this._cityTableAdapter;
  10673. }
  10674. set {
  10675. this._cityTableAdapter = value;
  10676. }
  10677. }
  10678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10680. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10681. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10682. "a", "System.Drawing.Design.UITypeEditor")]
  10683. public IndexPartnerTableAdapter IndexPartnerTableAdapter {
  10684. get {
  10685. return this._indexPartnerTableAdapter;
  10686. }
  10687. set {
  10688. this._indexPartnerTableAdapter = value;
  10689. }
  10690. }
  10691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10693. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10694. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10695. "a", "System.Drawing.Design.UITypeEditor")]
  10696. public ManagerTableAdapter ManagerTableAdapter {
  10697. get {
  10698. return this._managerTableAdapter;
  10699. }
  10700. set {
  10701. this._managerTableAdapter = value;
  10702. }
  10703. }
  10704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10706. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10707. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10708. "a", "System.Drawing.Design.UITypeEditor")]
  10709. public PartnerTableAdapter PartnerTableAdapter {
  10710. get {
  10711. return this._partnerTableAdapter;
  10712. }
  10713. set {
  10714. this._partnerTableAdapter = value;
  10715. }
  10716. }
  10717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10719. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10720. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10721. "a", "System.Drawing.Design.UITypeEditor")]
  10722. public ProductPartnerTableAdapter ProductPartnerTableAdapter {
  10723. get {
  10724. return this._productPartnerTableAdapter;
  10725. }
  10726. set {
  10727. this._productPartnerTableAdapter = value;
  10728. }
  10729. }
  10730. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10731. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10732. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10733. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10734. "a", "System.Drawing.Design.UITypeEditor")]
  10735. public ProductsTableAdapter ProductsTableAdapter {
  10736. get {
  10737. return this._productsTableAdapter;
  10738. }
  10739. set {
  10740. this._productsTableAdapter = value;
  10741. }
  10742. }
  10743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10745. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10746. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10747. "a", "System.Drawing.Design.UITypeEditor")]
  10748. public RegionTableAdapter RegionTableAdapter {
  10749. get {
  10750. return this._regionTableAdapter;
  10751. }
  10752. set {
  10753. this._regionTableAdapter = value;
  10754. }
  10755. }
  10756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10758. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10759. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10760. "a", "System.Drawing.Design.UITypeEditor")]
  10761. public StreetTableAdapter StreetTableAdapter {
  10762. get {
  10763. return this._streetTableAdapter;
  10764. }
  10765. set {
  10766. this._streetTableAdapter = value;
  10767. }
  10768. }
  10769. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10770. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10771. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10772. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10773. "a", "System.Drawing.Design.UITypeEditor")]
  10774. public TypeMaterialTableAdapter TypeMaterialTableAdapter {
  10775. get {
  10776. return this._typeMaterialTableAdapter;
  10777. }
  10778. set {
  10779. this._typeMaterialTableAdapter = value;
  10780. }
  10781. }
  10782. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10783. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10784. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10785. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10786. "a", "System.Drawing.Design.UITypeEditor")]
  10787. public TypePartnerTableAdapter TypePartnerTableAdapter {
  10788. get {
  10789. return this._typePartnerTableAdapter;
  10790. }
  10791. set {
  10792. this._typePartnerTableAdapter = value;
  10793. }
  10794. }
  10795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10797. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  10798. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  10799. "a", "System.Drawing.Design.UITypeEditor")]
  10800. public TypeProductTableAdapter TypeProductTableAdapter {
  10801. get {
  10802. return this._typeProductTableAdapter;
  10803. }
  10804. set {
  10805. this._typeProductTableAdapter = value;
  10806. }
  10807. }
  10808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10810. public bool BackupDataSetBeforeUpdate {
  10811. get {
  10812. return this._backupDataSetBeforeUpdate;
  10813. }
  10814. set {
  10815. this._backupDataSetBeforeUpdate = value;
  10816. }
  10817. }
  10818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10820. [global::System.ComponentModel.Browsable(false)]
  10821. public global::System.Data.IDbConnection Connection {
  10822. get {
  10823. if ((this._connection != null)) {
  10824. return this._connection;
  10825. }
  10826. if (((this._cityTableAdapter != null)
  10827. && (this._cityTableAdapter.Connection != null))) {
  10828. return this._cityTableAdapter.Connection;
  10829. }
  10830. if (((this._indexPartnerTableAdapter != null)
  10831. && (this._indexPartnerTableAdapter.Connection != null))) {
  10832. return this._indexPartnerTableAdapter.Connection;
  10833. }
  10834. if (((this._managerTableAdapter != null)
  10835. && (this._managerTableAdapter.Connection != null))) {
  10836. return this._managerTableAdapter.Connection;
  10837. }
  10838. if (((this._partnerTableAdapter != null)
  10839. && (this._partnerTableAdapter.Connection != null))) {
  10840. return this._partnerTableAdapter.Connection;
  10841. }
  10842. if (((this._productPartnerTableAdapter != null)
  10843. && (this._productPartnerTableAdapter.Connection != null))) {
  10844. return this._productPartnerTableAdapter.Connection;
  10845. }
  10846. if (((this._productsTableAdapter != null)
  10847. && (this._productsTableAdapter.Connection != null))) {
  10848. return this._productsTableAdapter.Connection;
  10849. }
  10850. if (((this._regionTableAdapter != null)
  10851. && (this._regionTableAdapter.Connection != null))) {
  10852. return this._regionTableAdapter.Connection;
  10853. }
  10854. if (((this._streetTableAdapter != null)
  10855. && (this._streetTableAdapter.Connection != null))) {
  10856. return this._streetTableAdapter.Connection;
  10857. }
  10858. if (((this._typeMaterialTableAdapter != null)
  10859. && (this._typeMaterialTableAdapter.Connection != null))) {
  10860. return this._typeMaterialTableAdapter.Connection;
  10861. }
  10862. if (((this._typePartnerTableAdapter != null)
  10863. && (this._typePartnerTableAdapter.Connection != null))) {
  10864. return this._typePartnerTableAdapter.Connection;
  10865. }
  10866. if (((this._typeProductTableAdapter != null)
  10867. && (this._typeProductTableAdapter.Connection != null))) {
  10868. return this._typeProductTableAdapter.Connection;
  10869. }
  10870. return null;
  10871. }
  10872. set {
  10873. this._connection = value;
  10874. }
  10875. }
  10876. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10877. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10878. [global::System.ComponentModel.Browsable(false)]
  10879. public int TableAdapterInstanceCount {
  10880. get {
  10881. int count = 0;
  10882. if ((this._cityTableAdapter != null)) {
  10883. count = (count + 1);
  10884. }
  10885. if ((this._indexPartnerTableAdapter != null)) {
  10886. count = (count + 1);
  10887. }
  10888. if ((this._managerTableAdapter != null)) {
  10889. count = (count + 1);
  10890. }
  10891. if ((this._partnerTableAdapter != null)) {
  10892. count = (count + 1);
  10893. }
  10894. if ((this._productPartnerTableAdapter != null)) {
  10895. count = (count + 1);
  10896. }
  10897. if ((this._productsTableAdapter != null)) {
  10898. count = (count + 1);
  10899. }
  10900. if ((this._regionTableAdapter != null)) {
  10901. count = (count + 1);
  10902. }
  10903. if ((this._streetTableAdapter != null)) {
  10904. count = (count + 1);
  10905. }
  10906. if ((this._typeMaterialTableAdapter != null)) {
  10907. count = (count + 1);
  10908. }
  10909. if ((this._typePartnerTableAdapter != null)) {
  10910. count = (count + 1);
  10911. }
  10912. if ((this._typeProductTableAdapter != null)) {
  10913. count = (count + 1);
  10914. }
  10915. return count;
  10916. }
  10917. }
  10918. /// <summary>
  10919. ///Update rows in top-down order.
  10920. ///</summary>
  10921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10922. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  10923. private int UpdateUpdatedRows(dbAlphapolAGDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  10924. int result = 0;
  10925. if ((this._cityTableAdapter != null)) {
  10926. global::System.Data.DataRow[] updatedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10927. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10928. if (((updatedRows != null)
  10929. && (0 < updatedRows.Length))) {
  10930. result = (result + this._cityTableAdapter.Update(updatedRows));
  10931. allChangedRows.AddRange(updatedRows);
  10932. }
  10933. }
  10934. if ((this._indexPartnerTableAdapter != null)) {
  10935. global::System.Data.DataRow[] updatedRows = dataSet.IndexPartner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10936. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10937. if (((updatedRows != null)
  10938. && (0 < updatedRows.Length))) {
  10939. result = (result + this._indexPartnerTableAdapter.Update(updatedRows));
  10940. allChangedRows.AddRange(updatedRows);
  10941. }
  10942. }
  10943. if ((this._regionTableAdapter != null)) {
  10944. global::System.Data.DataRow[] updatedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10945. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10946. if (((updatedRows != null)
  10947. && (0 < updatedRows.Length))) {
  10948. result = (result + this._regionTableAdapter.Update(updatedRows));
  10949. allChangedRows.AddRange(updatedRows);
  10950. }
  10951. }
  10952. if ((this._streetTableAdapter != null)) {
  10953. global::System.Data.DataRow[] updatedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10954. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10955. if (((updatedRows != null)
  10956. && (0 < updatedRows.Length))) {
  10957. result = (result + this._streetTableAdapter.Update(updatedRows));
  10958. allChangedRows.AddRange(updatedRows);
  10959. }
  10960. }
  10961. if ((this._typePartnerTableAdapter != null)) {
  10962. global::System.Data.DataRow[] updatedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10963. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10964. if (((updatedRows != null)
  10965. && (0 < updatedRows.Length))) {
  10966. result = (result + this._typePartnerTableAdapter.Update(updatedRows));
  10967. allChangedRows.AddRange(updatedRows);
  10968. }
  10969. }
  10970. if ((this._typeProductTableAdapter != null)) {
  10971. global::System.Data.DataRow[] updatedRows = dataSet.TypeProduct.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10972. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10973. if (((updatedRows != null)
  10974. && (0 < updatedRows.Length))) {
  10975. result = (result + this._typeProductTableAdapter.Update(updatedRows));
  10976. allChangedRows.AddRange(updatedRows);
  10977. }
  10978. }
  10979. if ((this._partnerTableAdapter != null)) {
  10980. global::System.Data.DataRow[] updatedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10981. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10982. if (((updatedRows != null)
  10983. && (0 < updatedRows.Length))) {
  10984. result = (result + this._partnerTableAdapter.Update(updatedRows));
  10985. allChangedRows.AddRange(updatedRows);
  10986. }
  10987. }
  10988. if ((this._productsTableAdapter != null)) {
  10989. global::System.Data.DataRow[] updatedRows = dataSet.Products.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10990. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  10991. if (((updatedRows != null)
  10992. && (0 < updatedRows.Length))) {
  10993. result = (result + this._productsTableAdapter.Update(updatedRows));
  10994. allChangedRows.AddRange(updatedRows);
  10995. }
  10996. }
  10997. if ((this._managerTableAdapter != null)) {
  10998. global::System.Data.DataRow[] updatedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  10999. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11000. if (((updatedRows != null)
  11001. && (0 < updatedRows.Length))) {
  11002. result = (result + this._managerTableAdapter.Update(updatedRows));
  11003. allChangedRows.AddRange(updatedRows);
  11004. }
  11005. }
  11006. if ((this._productPartnerTableAdapter != null)) {
  11007. global::System.Data.DataRow[] updatedRows = dataSet.ProductPartner.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11008. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11009. if (((updatedRows != null)
  11010. && (0 < updatedRows.Length))) {
  11011. result = (result + this._productPartnerTableAdapter.Update(updatedRows));
  11012. allChangedRows.AddRange(updatedRows);
  11013. }
  11014. }
  11015. if ((this._typeMaterialTableAdapter != null)) {
  11016. global::System.Data.DataRow[] updatedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  11017. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  11018. if (((updatedRows != null)
  11019. && (0 < updatedRows.Length))) {
  11020. result = (result + this._typeMaterialTableAdapter.Update(updatedRows));
  11021. allChangedRows.AddRange(updatedRows);
  11022. }
  11023. }
  11024. return result;
  11025. }
  11026. /// <summary>
  11027. ///Insert rows in top-down order.
  11028. ///</summary>
  11029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11031. private int UpdateInsertedRows(dbAlphapolAGDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  11032. int result = 0;
  11033. if ((this._cityTableAdapter != null)) {
  11034. global::System.Data.DataRow[] addedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.Added);
  11035. if (((addedRows != null)
  11036. && (0 < addedRows.Length))) {
  11037. result = (result + this._cityTableAdapter.Update(addedRows));
  11038. allAddedRows.AddRange(addedRows);
  11039. }
  11040. }
  11041. if ((this._indexPartnerTableAdapter != null)) {
  11042. global::System.Data.DataRow[] addedRows = dataSet.IndexPartner.Select(null, null, global::System.Data.DataViewRowState.Added);
  11043. if (((addedRows != null)
  11044. && (0 < addedRows.Length))) {
  11045. result = (result + this._indexPartnerTableAdapter.Update(addedRows));
  11046. allAddedRows.AddRange(addedRows);
  11047. }
  11048. }
  11049. if ((this._regionTableAdapter != null)) {
  11050. global::System.Data.DataRow[] addedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.Added);
  11051. if (((addedRows != null)
  11052. && (0 < addedRows.Length))) {
  11053. result = (result + this._regionTableAdapter.Update(addedRows));
  11054. allAddedRows.AddRange(addedRows);
  11055. }
  11056. }
  11057. if ((this._streetTableAdapter != null)) {
  11058. global::System.Data.DataRow[] addedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.Added);
  11059. if (((addedRows != null)
  11060. && (0 < addedRows.Length))) {
  11061. result = (result + this._streetTableAdapter.Update(addedRows));
  11062. allAddedRows.AddRange(addedRows);
  11063. }
  11064. }
  11065. if ((this._typePartnerTableAdapter != null)) {
  11066. global::System.Data.DataRow[] addedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.Added);
  11067. if (((addedRows != null)
  11068. && (0 < addedRows.Length))) {
  11069. result = (result + this._typePartnerTableAdapter.Update(addedRows));
  11070. allAddedRows.AddRange(addedRows);
  11071. }
  11072. }
  11073. if ((this._typeProductTableAdapter != null)) {
  11074. global::System.Data.DataRow[] addedRows = dataSet.TypeProduct.Select(null, null, global::System.Data.DataViewRowState.Added);
  11075. if (((addedRows != null)
  11076. && (0 < addedRows.Length))) {
  11077. result = (result + this._typeProductTableAdapter.Update(addedRows));
  11078. allAddedRows.AddRange(addedRows);
  11079. }
  11080. }
  11081. if ((this._partnerTableAdapter != null)) {
  11082. global::System.Data.DataRow[] addedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.Added);
  11083. if (((addedRows != null)
  11084. && (0 < addedRows.Length))) {
  11085. result = (result + this._partnerTableAdapter.Update(addedRows));
  11086. allAddedRows.AddRange(addedRows);
  11087. }
  11088. }
  11089. if ((this._productsTableAdapter != null)) {
  11090. global::System.Data.DataRow[] addedRows = dataSet.Products.Select(null, null, global::System.Data.DataViewRowState.Added);
  11091. if (((addedRows != null)
  11092. && (0 < addedRows.Length))) {
  11093. result = (result + this._productsTableAdapter.Update(addedRows));
  11094. allAddedRows.AddRange(addedRows);
  11095. }
  11096. }
  11097. if ((this._managerTableAdapter != null)) {
  11098. global::System.Data.DataRow[] addedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.Added);
  11099. if (((addedRows != null)
  11100. && (0 < addedRows.Length))) {
  11101. result = (result + this._managerTableAdapter.Update(addedRows));
  11102. allAddedRows.AddRange(addedRows);
  11103. }
  11104. }
  11105. if ((this._productPartnerTableAdapter != null)) {
  11106. global::System.Data.DataRow[] addedRows = dataSet.ProductPartner.Select(null, null, global::System.Data.DataViewRowState.Added);
  11107. if (((addedRows != null)
  11108. && (0 < addedRows.Length))) {
  11109. result = (result + this._productPartnerTableAdapter.Update(addedRows));
  11110. allAddedRows.AddRange(addedRows);
  11111. }
  11112. }
  11113. if ((this._typeMaterialTableAdapter != null)) {
  11114. global::System.Data.DataRow[] addedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.Added);
  11115. if (((addedRows != null)
  11116. && (0 < addedRows.Length))) {
  11117. result = (result + this._typeMaterialTableAdapter.Update(addedRows));
  11118. allAddedRows.AddRange(addedRows);
  11119. }
  11120. }
  11121. return result;
  11122. }
  11123. /// <summary>
  11124. ///Delete rows in bottom-up order.
  11125. ///</summary>
  11126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11128. private int UpdateDeletedRows(dbAlphapolAGDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  11129. int result = 0;
  11130. if ((this._typeMaterialTableAdapter != null)) {
  11131. global::System.Data.DataRow[] deletedRows = dataSet.TypeMaterial.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11132. if (((deletedRows != null)
  11133. && (0 < deletedRows.Length))) {
  11134. result = (result + this._typeMaterialTableAdapter.Update(deletedRows));
  11135. allChangedRows.AddRange(deletedRows);
  11136. }
  11137. }
  11138. if ((this._productPartnerTableAdapter != null)) {
  11139. global::System.Data.DataRow[] deletedRows = dataSet.ProductPartner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11140. if (((deletedRows != null)
  11141. && (0 < deletedRows.Length))) {
  11142. result = (result + this._productPartnerTableAdapter.Update(deletedRows));
  11143. allChangedRows.AddRange(deletedRows);
  11144. }
  11145. }
  11146. if ((this._managerTableAdapter != null)) {
  11147. global::System.Data.DataRow[] deletedRows = dataSet.Manager.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11148. if (((deletedRows != null)
  11149. && (0 < deletedRows.Length))) {
  11150. result = (result + this._managerTableAdapter.Update(deletedRows));
  11151. allChangedRows.AddRange(deletedRows);
  11152. }
  11153. }
  11154. if ((this._productsTableAdapter != null)) {
  11155. global::System.Data.DataRow[] deletedRows = dataSet.Products.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11156. if (((deletedRows != null)
  11157. && (0 < deletedRows.Length))) {
  11158. result = (result + this._productsTableAdapter.Update(deletedRows));
  11159. allChangedRows.AddRange(deletedRows);
  11160. }
  11161. }
  11162. if ((this._partnerTableAdapter != null)) {
  11163. global::System.Data.DataRow[] deletedRows = dataSet.Partner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11164. if (((deletedRows != null)
  11165. && (0 < deletedRows.Length))) {
  11166. result = (result + this._partnerTableAdapter.Update(deletedRows));
  11167. allChangedRows.AddRange(deletedRows);
  11168. }
  11169. }
  11170. if ((this._typeProductTableAdapter != null)) {
  11171. global::System.Data.DataRow[] deletedRows = dataSet.TypeProduct.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11172. if (((deletedRows != null)
  11173. && (0 < deletedRows.Length))) {
  11174. result = (result + this._typeProductTableAdapter.Update(deletedRows));
  11175. allChangedRows.AddRange(deletedRows);
  11176. }
  11177. }
  11178. if ((this._typePartnerTableAdapter != null)) {
  11179. global::System.Data.DataRow[] deletedRows = dataSet.TypePartner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11180. if (((deletedRows != null)
  11181. && (0 < deletedRows.Length))) {
  11182. result = (result + this._typePartnerTableAdapter.Update(deletedRows));
  11183. allChangedRows.AddRange(deletedRows);
  11184. }
  11185. }
  11186. if ((this._streetTableAdapter != null)) {
  11187. global::System.Data.DataRow[] deletedRows = dataSet.Street.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11188. if (((deletedRows != null)
  11189. && (0 < deletedRows.Length))) {
  11190. result = (result + this._streetTableAdapter.Update(deletedRows));
  11191. allChangedRows.AddRange(deletedRows);
  11192. }
  11193. }
  11194. if ((this._regionTableAdapter != null)) {
  11195. global::System.Data.DataRow[] deletedRows = dataSet.Region.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11196. if (((deletedRows != null)
  11197. && (0 < deletedRows.Length))) {
  11198. result = (result + this._regionTableAdapter.Update(deletedRows));
  11199. allChangedRows.AddRange(deletedRows);
  11200. }
  11201. }
  11202. if ((this._indexPartnerTableAdapter != null)) {
  11203. global::System.Data.DataRow[] deletedRows = dataSet.IndexPartner.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11204. if (((deletedRows != null)
  11205. && (0 < deletedRows.Length))) {
  11206. result = (result + this._indexPartnerTableAdapter.Update(deletedRows));
  11207. allChangedRows.AddRange(deletedRows);
  11208. }
  11209. }
  11210. if ((this._cityTableAdapter != null)) {
  11211. global::System.Data.DataRow[] deletedRows = dataSet.City.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  11212. if (((deletedRows != null)
  11213. && (0 < deletedRows.Length))) {
  11214. result = (result + this._cityTableAdapter.Update(deletedRows));
  11215. allChangedRows.AddRange(deletedRows);
  11216. }
  11217. }
  11218. return result;
  11219. }
  11220. /// <summary>
  11221. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  11222. ///</summary>
  11223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11225. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  11226. if (((updatedRows == null)
  11227. || (updatedRows.Length < 1))) {
  11228. return updatedRows;
  11229. }
  11230. if (((allAddedRows == null)
  11231. || (allAddedRows.Count < 1))) {
  11232. return updatedRows;
  11233. }
  11234. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11235. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  11236. global::System.Data.DataRow row = updatedRows[i];
  11237. if ((allAddedRows.Contains(row) == false)) {
  11238. realUpdatedRows.Add(row);
  11239. }
  11240. }
  11241. return realUpdatedRows.ToArray();
  11242. }
  11243. /// <summary>
  11244. ///Update all changes to the dataset.
  11245. ///</summary>
  11246. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11248. public virtual int UpdateAll(dbAlphapolAGDataSet dataSet) {
  11249. if ((dataSet == null)) {
  11250. throw new global::System.ArgumentNullException("dataSet");
  11251. }
  11252. if ((dataSet.HasChanges() == false)) {
  11253. return 0;
  11254. }
  11255. if (((this._cityTableAdapter != null)
  11256. && (this.MatchTableAdapterConnection(this._cityTableAdapter.Connection) == false))) {
  11257. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11258. "tring.");
  11259. }
  11260. if (((this._indexPartnerTableAdapter != null)
  11261. && (this.MatchTableAdapterConnection(this._indexPartnerTableAdapter.Connection) == false))) {
  11262. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11263. "tring.");
  11264. }
  11265. if (((this._managerTableAdapter != null)
  11266. && (this.MatchTableAdapterConnection(this._managerTableAdapter.Connection) == false))) {
  11267. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11268. "tring.");
  11269. }
  11270. if (((this._partnerTableAdapter != null)
  11271. && (this.MatchTableAdapterConnection(this._partnerTableAdapter.Connection) == false))) {
  11272. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11273. "tring.");
  11274. }
  11275. if (((this._productPartnerTableAdapter != null)
  11276. && (this.MatchTableAdapterConnection(this._productPartnerTableAdapter.Connection) == false))) {
  11277. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11278. "tring.");
  11279. }
  11280. if (((this._productsTableAdapter != null)
  11281. && (this.MatchTableAdapterConnection(this._productsTableAdapter.Connection) == false))) {
  11282. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11283. "tring.");
  11284. }
  11285. if (((this._regionTableAdapter != null)
  11286. && (this.MatchTableAdapterConnection(this._regionTableAdapter.Connection) == false))) {
  11287. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11288. "tring.");
  11289. }
  11290. if (((this._streetTableAdapter != null)
  11291. && (this.MatchTableAdapterConnection(this._streetTableAdapter.Connection) == false))) {
  11292. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11293. "tring.");
  11294. }
  11295. if (((this._typeMaterialTableAdapter != null)
  11296. && (this.MatchTableAdapterConnection(this._typeMaterialTableAdapter.Connection) == false))) {
  11297. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11298. "tring.");
  11299. }
  11300. if (((this._typePartnerTableAdapter != null)
  11301. && (this.MatchTableAdapterConnection(this._typePartnerTableAdapter.Connection) == false))) {
  11302. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11303. "tring.");
  11304. }
  11305. if (((this._typeProductTableAdapter != null)
  11306. && (this.MatchTableAdapterConnection(this._typeProductTableAdapter.Connection) == false))) {
  11307. throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
  11308. "tring.");
  11309. }
  11310. global::System.Data.IDbConnection workConnection = this.Connection;
  11311. if ((workConnection == null)) {
  11312. throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
  11313. "ger TableAdapter property to a valid TableAdapter instance.");
  11314. }
  11315. bool workConnOpened = false;
  11316. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  11317. == global::System.Data.ConnectionState.Broken)) {
  11318. workConnection.Close();
  11319. }
  11320. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  11321. workConnection.Open();
  11322. workConnOpened = true;
  11323. }
  11324. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  11325. if ((workTransaction == null)) {
  11326. throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
  11327. "ctions or the current state is not allowing the transaction to begin.");
  11328. }
  11329. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11330. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  11331. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  11332. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  11333. int result = 0;
  11334. global::System.Data.DataSet backupDataSet = null;
  11335. if (this.BackupDataSetBeforeUpdate) {
  11336. backupDataSet = new global::System.Data.DataSet();
  11337. backupDataSet.Merge(dataSet);
  11338. }
  11339. try {
  11340. // ---- Prepare for update -----------
  11341. //
  11342. if ((this._cityTableAdapter != null)) {
  11343. revertConnections.Add(this._cityTableAdapter, this._cityTableAdapter.Connection);
  11344. this._cityTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11345. this._cityTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11346. if (this._cityTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11347. this._cityTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11348. adaptersWithAcceptChangesDuringUpdate.Add(this._cityTableAdapter.Adapter);
  11349. }
  11350. }
  11351. if ((this._indexPartnerTableAdapter != null)) {
  11352. revertConnections.Add(this._indexPartnerTableAdapter, this._indexPartnerTableAdapter.Connection);
  11353. this._indexPartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11354. this._indexPartnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11355. if (this._indexPartnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11356. this._indexPartnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11357. adaptersWithAcceptChangesDuringUpdate.Add(this._indexPartnerTableAdapter.Adapter);
  11358. }
  11359. }
  11360. if ((this._managerTableAdapter != null)) {
  11361. revertConnections.Add(this._managerTableAdapter, this._managerTableAdapter.Connection);
  11362. this._managerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11363. this._managerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11364. if (this._managerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11365. this._managerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11366. adaptersWithAcceptChangesDuringUpdate.Add(this._managerTableAdapter.Adapter);
  11367. }
  11368. }
  11369. if ((this._partnerTableAdapter != null)) {
  11370. revertConnections.Add(this._partnerTableAdapter, this._partnerTableAdapter.Connection);
  11371. this._partnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11372. this._partnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11373. if (this._partnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11374. this._partnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11375. adaptersWithAcceptChangesDuringUpdate.Add(this._partnerTableAdapter.Adapter);
  11376. }
  11377. }
  11378. if ((this._productPartnerTableAdapter != null)) {
  11379. revertConnections.Add(this._productPartnerTableAdapter, this._productPartnerTableAdapter.Connection);
  11380. this._productPartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11381. this._productPartnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11382. if (this._productPartnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11383. this._productPartnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11384. adaptersWithAcceptChangesDuringUpdate.Add(this._productPartnerTableAdapter.Adapter);
  11385. }
  11386. }
  11387. if ((this._productsTableAdapter != null)) {
  11388. revertConnections.Add(this._productsTableAdapter, this._productsTableAdapter.Connection);
  11389. this._productsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11390. this._productsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11391. if (this._productsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11392. this._productsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11393. adaptersWithAcceptChangesDuringUpdate.Add(this._productsTableAdapter.Adapter);
  11394. }
  11395. }
  11396. if ((this._regionTableAdapter != null)) {
  11397. revertConnections.Add(this._regionTableAdapter, this._regionTableAdapter.Connection);
  11398. this._regionTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11399. this._regionTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11400. if (this._regionTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11401. this._regionTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11402. adaptersWithAcceptChangesDuringUpdate.Add(this._regionTableAdapter.Adapter);
  11403. }
  11404. }
  11405. if ((this._streetTableAdapter != null)) {
  11406. revertConnections.Add(this._streetTableAdapter, this._streetTableAdapter.Connection);
  11407. this._streetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11408. this._streetTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11409. if (this._streetTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11410. this._streetTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11411. adaptersWithAcceptChangesDuringUpdate.Add(this._streetTableAdapter.Adapter);
  11412. }
  11413. }
  11414. if ((this._typeMaterialTableAdapter != null)) {
  11415. revertConnections.Add(this._typeMaterialTableAdapter, this._typeMaterialTableAdapter.Connection);
  11416. this._typeMaterialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11417. this._typeMaterialTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11418. if (this._typeMaterialTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11419. this._typeMaterialTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11420. adaptersWithAcceptChangesDuringUpdate.Add(this._typeMaterialTableAdapter.Adapter);
  11421. }
  11422. }
  11423. if ((this._typePartnerTableAdapter != null)) {
  11424. revertConnections.Add(this._typePartnerTableAdapter, this._typePartnerTableAdapter.Connection);
  11425. this._typePartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11426. this._typePartnerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11427. if (this._typePartnerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11428. this._typePartnerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11429. adaptersWithAcceptChangesDuringUpdate.Add(this._typePartnerTableAdapter.Adapter);
  11430. }
  11431. }
  11432. if ((this._typeProductTableAdapter != null)) {
  11433. revertConnections.Add(this._typeProductTableAdapter, this._typeProductTableAdapter.Connection);
  11434. this._typeProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  11435. this._typeProductTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  11436. if (this._typeProductTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  11437. this._typeProductTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  11438. adaptersWithAcceptChangesDuringUpdate.Add(this._typeProductTableAdapter.Adapter);
  11439. }
  11440. }
  11441. //
  11442. //---- Perform updates -----------
  11443. //
  11444. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  11445. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11446. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11447. }
  11448. else {
  11449. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  11450. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  11451. }
  11452. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  11453. //
  11454. //---- Commit updates -----------
  11455. //
  11456. workTransaction.Commit();
  11457. if ((0 < allAddedRows.Count)) {
  11458. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11459. allAddedRows.CopyTo(rows);
  11460. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11461. global::System.Data.DataRow row = rows[i];
  11462. row.AcceptChanges();
  11463. }
  11464. }
  11465. if ((0 < allChangedRows.Count)) {
  11466. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  11467. allChangedRows.CopyTo(rows);
  11468. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11469. global::System.Data.DataRow row = rows[i];
  11470. row.AcceptChanges();
  11471. }
  11472. }
  11473. }
  11474. catch (global::System.Exception ex) {
  11475. workTransaction.Rollback();
  11476. // ---- Restore the dataset -----------
  11477. if (this.BackupDataSetBeforeUpdate) {
  11478. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  11479. dataSet.Clear();
  11480. dataSet.Merge(backupDataSet);
  11481. }
  11482. else {
  11483. if ((0 < allAddedRows.Count)) {
  11484. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  11485. allAddedRows.CopyTo(rows);
  11486. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  11487. global::System.Data.DataRow row = rows[i];
  11488. row.AcceptChanges();
  11489. row.SetAdded();
  11490. }
  11491. }
  11492. }
  11493. throw ex;
  11494. }
  11495. finally {
  11496. if (workConnOpened) {
  11497. workConnection.Close();
  11498. }
  11499. if ((this._cityTableAdapter != null)) {
  11500. this._cityTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._cityTableAdapter]));
  11501. this._cityTableAdapter.Transaction = null;
  11502. }
  11503. if ((this._indexPartnerTableAdapter != null)) {
  11504. this._indexPartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._indexPartnerTableAdapter]));
  11505. this._indexPartnerTableAdapter.Transaction = null;
  11506. }
  11507. if ((this._managerTableAdapter != null)) {
  11508. this._managerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._managerTableAdapter]));
  11509. this._managerTableAdapter.Transaction = null;
  11510. }
  11511. if ((this._partnerTableAdapter != null)) {
  11512. this._partnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._partnerTableAdapter]));
  11513. this._partnerTableAdapter.Transaction = null;
  11514. }
  11515. if ((this._productPartnerTableAdapter != null)) {
  11516. this._productPartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productPartnerTableAdapter]));
  11517. this._productPartnerTableAdapter.Transaction = null;
  11518. }
  11519. if ((this._productsTableAdapter != null)) {
  11520. this._productsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._productsTableAdapter]));
  11521. this._productsTableAdapter.Transaction = null;
  11522. }
  11523. if ((this._regionTableAdapter != null)) {
  11524. this._regionTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._regionTableAdapter]));
  11525. this._regionTableAdapter.Transaction = null;
  11526. }
  11527. if ((this._streetTableAdapter != null)) {
  11528. this._streetTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._streetTableAdapter]));
  11529. this._streetTableAdapter.Transaction = null;
  11530. }
  11531. if ((this._typeMaterialTableAdapter != null)) {
  11532. this._typeMaterialTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typeMaterialTableAdapter]));
  11533. this._typeMaterialTableAdapter.Transaction = null;
  11534. }
  11535. if ((this._typePartnerTableAdapter != null)) {
  11536. this._typePartnerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typePartnerTableAdapter]));
  11537. this._typePartnerTableAdapter.Transaction = null;
  11538. }
  11539. if ((this._typeProductTableAdapter != null)) {
  11540. this._typeProductTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._typeProductTableAdapter]));
  11541. this._typeProductTableAdapter.Transaction = null;
  11542. }
  11543. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  11544. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  11545. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  11546. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  11547. global::System.Data.Common.DataAdapter adapter = adapters[i];
  11548. adapter.AcceptChangesDuringUpdate = true;
  11549. }
  11550. }
  11551. }
  11552. return result;
  11553. }
  11554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11556. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  11557. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  11558. }
  11559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11561. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  11562. if ((this._connection != null)) {
  11563. return true;
  11564. }
  11565. if (((this.Connection == null)
  11566. || (inputConnection == null))) {
  11567. return true;
  11568. }
  11569. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  11570. return true;
  11571. }
  11572. return false;
  11573. }
  11574. /// <summary>
  11575. ///Update Order Option
  11576. ///</summary>
  11577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11578. public enum UpdateOrderOption {
  11579. InsertUpdateDelete = 0,
  11580. UpdateInsertDelete = 1,
  11581. }
  11582. /// <summary>
  11583. ///Used to sort self-referenced table's rows
  11584. ///</summary>
  11585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11586. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  11587. private global::System.Data.DataRelation _relation;
  11588. private int _childFirst;
  11589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11591. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  11592. this._relation = relation;
  11593. if (childFirst) {
  11594. this._childFirst = -1;
  11595. }
  11596. else {
  11597. this._childFirst = 1;
  11598. }
  11599. }
  11600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11601. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11602. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  11603. global::System.Diagnostics.Debug.Assert((row != null));
  11604. global::System.Data.DataRow root = row;
  11605. distance = 0;
  11606. 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>();
  11607. traversedRows[row] = row;
  11608. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11609. for (
  11610. ; ((parent != null)
  11611. && (traversedRows.ContainsKey(parent) == false));
  11612. ) {
  11613. distance = (distance + 1);
  11614. root = parent;
  11615. traversedRows[parent] = parent;
  11616. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  11617. }
  11618. if ((distance == 0)) {
  11619. traversedRows.Clear();
  11620. traversedRows[row] = row;
  11621. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11622. for (
  11623. ; ((parent != null)
  11624. && (traversedRows.ContainsKey(parent) == false));
  11625. ) {
  11626. distance = (distance + 1);
  11627. root = parent;
  11628. traversedRows[parent] = parent;
  11629. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  11630. }
  11631. }
  11632. return root;
  11633. }
  11634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  11635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
  11636. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  11637. if (object.ReferenceEquals(row1, row2)) {
  11638. return 0;
  11639. }
  11640. if ((row1 == null)) {
  11641. return -1;
  11642. }
  11643. if ((row2 == null)) {
  11644. return 1;
  11645. }
  11646. int distance1 = 0;
  11647. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  11648. int distance2 = 0;
  11649. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  11650. if (object.ReferenceEquals(root1, root2)) {
  11651. return (this._childFirst * distance1.CompareTo(distance2));
  11652. }
  11653. else {
  11654. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  11655. && (root2.Table != null)));
  11656. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  11657. return -1;
  11658. }
  11659. else {
  11660. return 1;
  11661. }
  11662. }
  11663. }
  11664. }
  11665. }
  11666. }
  11667. #pragma warning restore 1591